Romanmir / nws_custom_component

National Weather Service custom component for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nws_custom_component

National Weather Service custom component for Home Assistant

This should be placed in your configuration folder:

For HA .87 and lower

<config directory>/custom_components/sensor/nws_alerts.py

For HA .88 and higher (rename nws_alerts.py to sensor.py)

<config directory>/custom_components/nws_alerts/sensor.py

For HA .92 and higher (add an empty file named init.py to the folder nws_alerts)

<config directory>/custom_components/nws_alerts/__init__.py

To create an sensor instance add to your sensor definitions:

- platform: nws_alerts
  zone_id: 'PAC049'

or comma separated values

- platform: nws_alerts
  zone_id: 'PAC049,WVC031'

About

National Weather Service custom component for Home Assistant


Languages

Language:Python 100.0%