mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Add titanium automation
This commit is contained in:
@@ -22,6 +22,8 @@ cards:
|
||||
title: Automations
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- automation.titanium_turn_off_when_idle
|
||||
- type: divider
|
||||
# Presence
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
@@ -173,6 +175,7 @@ cards:
|
||||
|
||||
- type: divider
|
||||
|
||||
# Purifier
|
||||
- type: custom:fold-entity-row
|
||||
head:
|
||||
type: custom:dummy-entity-row
|
||||
|
||||
@@ -74,8 +74,12 @@
|
||||
- value: 'idle'
|
||||
styles: *on_styles
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: switch.titanium
|
||||
variables:
|
||||
state_indicator_id: automation.titanium_turn_off_when_idle
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: media_with_controls
|
||||
|
||||
@@ -72,8 +72,12 @@
|
||||
- value: 'idle'
|
||||
styles: *on_styles
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: switch.titanium
|
||||
variables:
|
||||
state_indicator_id: automation.titanium_turn_off_when_idle
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
entity: sensor.synology_type_volume_1
|
||||
|
||||
@@ -92,8 +92,12 @@
|
||||
styles: *on_styles
|
||||
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
template:
|
||||
- default
|
||||
- with_state_indicator
|
||||
entity: switch.titanium
|
||||
variables:
|
||||
state_indicator_id: automation.titanium_turn_off_when_idle
|
||||
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
|
||||
@@ -234,3 +234,15 @@ script:
|
||||
data:
|
||||
topic: "iotlink/workgroup/titanium/refresh"
|
||||
payload: ""
|
||||
|
||||
automation:
|
||||
- alias: Titanium · Turn off when idle
|
||||
trigger:
|
||||
platform: numeric_state
|
||||
entity_id: sensor.titanium_idle_time
|
||||
above: 180
|
||||
action:
|
||||
- service: script.titanium_shutdown
|
||||
- service: script.say
|
||||
data:
|
||||
message: "Hey, I'm turning Titanium off. It's been idling for 3 hours."
|
||||
|
||||
Reference in New Issue
Block a user