Removed WWLLN...I'm not bitter...

This commit is contained in:
Jeffrey Stone 2020-05-28 14:57:02 -04:00
parent 837e2a9024
commit 05350be8e1
2 changed files with 60 additions and 56 deletions

View File

@ -28,9 +28,9 @@ input_boolean:
weather_alert_texts: weather_alert_texts:
name: Weather Alert Texts name: Weather Alert Texts
icon: mdi:telegram icon: mdi:telegram
lightning_warning: # lightning_warning:
name: Lightning Warning # name: Lightning Warning
icon: mdi:flash-alert # icon: mdi:flash-alert
### You first need to find either your NWS Zone ID or County ID. Im not sure which is better but I used my Zone ID here. ### You first need to find either your NWS Zone ID or County ID. Im not sure which is better but I used my Zone ID here.
### You can find your Zone ID by going to https://alerts.weather.gov/ 7, scroll down to your state and click on the “zone list” then look for the entry for your county. ### You can find your Zone ID by going to https://alerts.weather.gov/ 7, scroll down to your state and click on the “zone list” then look for the entry for your county.
@ -305,32 +305,27 @@ automation:
title: "Tornado Warning!" title: "Tornado Warning!"
message: "The National Weather Service Has issued a Tornado Warning for our area." message: "The National Weather Service Has issued a Tornado Warning for our area."
- alias: Lightning Detected # - alias: Lightning Detected
initial_state: 'on' # initial_state: 'on'
trigger: # trigger:
- platform: geo_location # - platform: state
source: wwlln # entity_id: binary_sensor.lightning_active
zone: zone.lightning_warning # to: 'on'
event: enter # action:
action: # - service: script.text_notify
# - service: input_boolean.turn_on # data_template:
# entity_id: input_boolean.lightning_warning # who: "jeff"
- service: script.text_notify # title: "Lightning Detected!"
data_template: # message: "Lightning has been detected within 15 miles of Anchorage House"
who: "jeff" # - service: script.lightning_warning_audible
title: "Lightning Detected!"
message: "Lightning has been detected within 50 miles of Anchorage House"
# - service: script.lightning_warning_audible
# - alias: Lightning Warning Off # - alias: Lightning Warning Off
# initial_state: 'on' # initial_state: 'on'
# trigger: # trigger:
# - platform: numeric_state # - platform: state
# entity_id: sensor.lightning_strike_count # entity_id: binary_sensor.lightning_active
# below: 1 # to: 'off'
# action: # action:
# - service: input_boolean.turn_off
# entity_id: input_boolean.lightning_warning
# - service: script.text_notify # - service: script.text_notify
# data_template: # data_template:
# who: "jeff" # who: "jeff"
@ -338,6 +333,16 @@ automation:
# message: "No more Lightning Strikes detected." # message: "No more Lightning Strikes detected."
# - service: script.lightning_clear_audible # - service: script.lightning_clear_audible
# - alias: 'lightning_update'
# initial_state: 'on'
# trigger:
# - platform: time_pattern
# minutes: '/5'
# action:
# - service: homeassistant.update_entity
# entity_id: sensor.lightning_strike_count
# - service: homeassistant.update_entity
# entity_id: binary_sensor.lightning_active
- alias: NWS Freeze Warning - alias: NWS Freeze Warning
initial_state: 'on' initial_state: 'on'
@ -451,34 +456,34 @@ script:
media_content_id: http://192.168.7.40/audio/tornado_alarm.mp3 media_content_id: http://192.168.7.40/audio/tornado_alarm.mp3
media_content_type: "music" media_content_type: "music"
lighning_warning_audible: # lighning_warning_audible:
sequence: # sequence:
- condition: state # - condition: state
entity_id: binary_sensor.day # entity_id: binary_sensor.day
state: 'on' # state: 'on'
- service: script.twitter_notify_image # - service: script.twitter_notify_image
data_template: # data_template:
tweet: '{{ [ "Did you see that flash? I did. Letting everyone know there is lightning nearby.", # tweet: '{{ [ "Did you see that flash? I did. Letting everyone know there is lightning nearby.",
"When Lightning is near I notify the residents of Anchorage House to keep them safe.", # "When Lightning is near I notify the residents of Anchorage House to keep them safe.",
"If the residents of Anchorage House didnt hear the thunder I just gave them a heads up.", # "If the residents of Anchorage House didnt hear the thunder I just gave them a heads up.",
"Everyone inside! If you are near Anchorage House that is. Lightning is near." ] | random }}' # "Everyone inside! If you are near Anchorage House that is. Lightning is near." ] | random }}'
image: >- # image: >-
{{ [ "/config/www/tweet_images/lightning.jpg", # {{ [ "/config/www/tweet_images/lightning.jpg",
"/config/www/tweet_images/lightning-bolt.jpg"] | random }} # "/config/www/tweet_images/lightning-bolt.jpg"] | random }}
- service: script.ah_report # - service: script.ah_report
data: # data:
call_interuption: 1 # call_interuption: 1
call_lightning_alert: 1 # call_lightning_alert: 1
lighning_clear_audible: # lighning_clear_audible:
sequence: # sequence:
- condition: state # - condition: state
entity_id: binary_sensor.day # entity_id: binary_sensor.day
state: 'on' # state: 'on'
- service: script.ah_report # - service: script.ah_report
data: # data:
call_interuption: 1 # call_interuption: 1
call_lightning_clear: 1 # call_lightning_clear: 1
refresh_weather_alert_sensors: refresh_weather_alert_sensors:
sequence: sequence:

View File

@ -191,8 +191,7 @@
friendly_name: "Current Inside Humidity" friendly_name: "Current Inside Humidity"
unit_of_measurement: '%' unit_of_measurement: '%'
value_template: "{{ states.climate.home.attributes.current_humidity }}" value_template: "{{ states.climate.home.attributes.current_humidity }}"
lightning_strike_count: # lightning_strike_count:
friendly_name: 'Lightning Strike Count' # friendly_name: 'Lightning Strike Count'
entity_id: [] # value_template: >
value_template: >- # {{ states.geo_location|selectattr('attributes.source','eq','wwlln') and states.geo_location|selectattr('state','lessthan','15')|list|count }}
{{ states.geo_location | list | count }}