Updated for correct templating of trigger_id

This commit is contained in:
ccostan 2020-08-19 20:26:45 -04:00
parent f69a552da9
commit e903e2f778
4 changed files with 8 additions and 8 deletions

View File

@ -26,8 +26,8 @@
- thu
- fri
action:
# - wait_template: >-
# {{ is_state('group.garage_doors', 'open') }}
# - delay: 00:03:00
- wait_template: "{{ is_state('group.garage_doors', 'open') }}"
timeout: '00:45:00'
- delay: 00:03:00
- service: light.turn_off
entity_id: all

View File

@ -19,7 +19,7 @@
- condition: template
value_template: >
{% set month=states("sensor.date").split('-')[1] | int %}
{%- if month == 4 or month == 5 or month == 6 or month == 7 or month == 8 -%}
{%- if month == 4 or month == 5 or month == 6 or month == 7 -%}
true
{%- endif -%}

View File

@ -16,7 +16,7 @@ automation:
entity_id:
- sensor.carlo_xsmax_steps
- sensor.paige_6s_steps
- sensor.steps_3
- sensor.stacey_6s_steps
above: 5000
action:
@ -24,9 +24,9 @@ automation:
data_template:
tweet: >
{{ [
"Somebody just hit {{ states('trigger.entity_id') }} steps on the #Fitbit!",
"Keep on moving. Somebody just hit {{ states('trigger.entity_id') }} #Fitbit steps.",
"#Fitness Tracking at home BY the home. Somebody just hit {{ states('trigger.entity_id') }} #Fitbit steps"
"Somebody just hit {{ trigger.entity_id }} steps on the #Fitbit!",
"Keep on moving. Somebody just hit {{ trigger.entity_id }} #Fitbit steps.",
"#Fitness Tracking at home BY the home. Somebody just hit {{ trigger.entity_id }}} #Fitbit steps"
] | random + " #Self #Data"}}
image: >-
{{ [

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 36 KiB