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
|
title: Automations
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
|
- automation.titanium_turn_off_when_idle
|
||||||
|
- type: divider
|
||||||
# Presence
|
# Presence
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
@@ -173,6 +175,7 @@ cards:
|
|||||||
|
|
||||||
- type: divider
|
- type: divider
|
||||||
|
|
||||||
|
# Purifier
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
type: custom:dummy-entity-row
|
type: custom:dummy-entity-row
|
||||||
|
|||||||
@@ -74,8 +74,12 @@
|
|||||||
- value: 'idle'
|
- value: 'idle'
|
||||||
styles: *on_styles
|
styles: *on_styles
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template:
|
||||||
|
- default
|
||||||
|
- with_state_indicator
|
||||||
entity: switch.titanium
|
entity: switch.titanium
|
||||||
|
variables:
|
||||||
|
state_indicator_id: automation.titanium_turn_off_when_idle
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: media_with_controls
|
template: media_with_controls
|
||||||
|
|||||||
@@ -72,8 +72,12 @@
|
|||||||
- value: 'idle'
|
- value: 'idle'
|
||||||
styles: *on_styles
|
styles: *on_styles
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template:
|
||||||
|
- default
|
||||||
|
- with_state_indicator
|
||||||
entity: switch.titanium
|
entity: switch.titanium
|
||||||
|
variables:
|
||||||
|
state_indicator_id: automation.titanium_turn_off_when_idle
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: sensor.synology_type_volume_1
|
entity: sensor.synology_type_volume_1
|
||||||
|
|||||||
@@ -92,8 +92,12 @@
|
|||||||
styles: *on_styles
|
styles: *on_styles
|
||||||
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template:
|
||||||
|
- default
|
||||||
|
- with_state_indicator
|
||||||
entity: switch.titanium
|
entity: switch.titanium
|
||||||
|
variables:
|
||||||
|
state_indicator_id: automation.titanium_turn_off_when_idle
|
||||||
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
|
|||||||
@@ -234,3 +234,15 @@ script:
|
|||||||
data:
|
data:
|
||||||
topic: "iotlink/workgroup/titanium/refresh"
|
topic: "iotlink/workgroup/titanium/refresh"
|
||||||
payload: ""
|
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