Fix github automation

This commit is contained in:
2020-05-10 02:09:24 +03:00
parent a781d98534
commit fd4613d346
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -37,7 +37,6 @@ automation:
entity_id: entity_id:
- light.bedside - light.bedside
- light.living_room_ambient_main - light.living_room_ambient_main
- delay: 00:00:01 - delay: 00:00:01
# Store color after power on # Store color after power on
- service: scene.create - service: scene.create
@@ -52,15 +51,16 @@ automation:
- light.living_room_ambient_main - light.living_room_ambient_main
data: data:
rgb_color: [0, 255, 63] rgb_color: [0, 255, 63]
brightness_pct: 100
- service: script.say - service: script.say
data_template: data_template:
message: >- message: >-
{% if trigger %} {% if trigger %}
{% set diff = trigger.to_state.state - trigger.from_state.state %} {% set diff = trigger.to_state.state|int - trigger.from_state.state|int %}
Hey, {% if diff > 1 %}{{diff}} people{% else %}1 person{% endif%} just downloaded Hey, {% if diff > 1 %}{{diff}} people{% else %}1 person{% endif%} just downloaded
{% if tigger.entity_id == 'sensor.folder_card_downloads' %} folder card {% if trigger.entity_id == 'sensor.folder_card_downloads' %} folder card
{% elif trigger.entity_id == 'sensor.time_picker_card_downloads' %} time picker card {% elif trigger.entity_id == 'sensor.time_picker_card_downloads' %} time picker card
{% else %} something, but I don't know what. This should never happen! {% else %} something, but I don't know what. This should never happen!
{% endif %} {% endif %}
+1 -1
View File
@@ -105,4 +105,4 @@ tuya_password: pass
twitch_client_id: client-id twitch_client_id: client-id
github_access_token: token github_access_token: Basic token