mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Remove github automations
This commit is contained in:
@@ -24,7 +24,6 @@ cards:
|
|||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- automation.titanium_turn_off_when_idle
|
- automation.titanium_turn_off_when_idle
|
||||||
- automation.github_download
|
|
||||||
- automation.speech_enable_when_meeting_is_over
|
- automation.speech_enable_when_meeting_is_over
|
||||||
- automation.speech_disable_when_meeting_starts
|
- automation.speech_disable_when_meeting_starts
|
||||||
|
|
||||||
|
|||||||
@@ -38,74 +38,3 @@ sensor:
|
|||||||
hours: 1
|
hours: 1
|
||||||
headers:
|
headers:
|
||||||
Authorization: !secret github_access_token
|
Authorization: !secret github_access_token
|
||||||
|
|
||||||
|
|
||||||
automation:
|
|
||||||
- alias: Github Download
|
|
||||||
trigger:
|
|
||||||
platform: state
|
|
||||||
entity_id:
|
|
||||||
- sensor.time_picker_card_downloads
|
|
||||||
- sensor.folder_card_downloads
|
|
||||||
condition:
|
|
||||||
condition: not
|
|
||||||
conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: input_select.house_mode
|
|
||||||
state: 'night'
|
|
||||||
action:
|
|
||||||
- service: script.say
|
|
||||||
data_template:
|
|
||||||
message: >-
|
|
||||||
|
|
||||||
{% if trigger %}
|
|
||||||
{% set diff = trigger.to_state.state|int - trigger.from_state.state|int %}
|
|
||||||
Hey, {% if diff > 1 %}{{diff}} people{% else %}1 person{% endif%} downloaded
|
|
||||||
{% if trigger.entity_id == 'sensor.folder_card_downloads' %} folder card in the last hour
|
|
||||||
{% elif trigger.entity_id == 'sensor.time_picker_card_downloads' %} time picker card in the last hour
|
|
||||||
{% else %} something, but I don't know what. This should never happen!
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
Just testing
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
- condition: state
|
|
||||||
entity_id: input_boolean.georgi_home
|
|
||||||
state: "on"
|
|
||||||
# Here be scene hacks
|
|
||||||
# Store powered state
|
|
||||||
- service: scene.create
|
|
||||||
data:
|
|
||||||
scene_id: pre_github_notify_1
|
|
||||||
snapshot_entities:
|
|
||||||
- light.bedside
|
|
||||||
- light.living_room_ambient_main
|
|
||||||
- light.light_avatar_small_2
|
|
||||||
- service: light.turn_on
|
|
||||||
entity_id:
|
|
||||||
- light.bedside
|
|
||||||
- light.living_room_ambient_main
|
|
||||||
- light.light_avatar_small_2
|
|
||||||
- delay: 00:00:01
|
|
||||||
# Store color after power on
|
|
||||||
- service: scene.create
|
|
||||||
data:
|
|
||||||
scene_id: pre_github_notify_2
|
|
||||||
snapshot_entities:
|
|
||||||
- light.bedside
|
|
||||||
- light.living_room_ambient_main
|
|
||||||
- light.light_avatar_small_2
|
|
||||||
- service: light.turn_on
|
|
||||||
entity_id:
|
|
||||||
- light.bedside
|
|
||||||
- light.living_room_ambient_main
|
|
||||||
- light.light_avatar_small_2
|
|
||||||
data:
|
|
||||||
rgb_color: [0, 255, 63]
|
|
||||||
brightness_pct: 100
|
|
||||||
|
|
||||||
- delay: 00:00:06
|
|
||||||
- service: scene.turn_on
|
|
||||||
entity_id: scene.pre_github_notify_2
|
|
||||||
- service: scene.turn_on
|
|
||||||
entity_id: scene.pre_github_notify_1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user