tilpasset
This commit is contained in:
@@ -7,17 +7,13 @@
|
|||||||
entity_id: binary_sensor.family_presence
|
entity_id: binary_sensor.family_presence
|
||||||
to: "off"
|
to: "off"
|
||||||
|
|
||||||
condition:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ trigger.from_state.state != 'unavailable' }}"
|
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
target:
|
target:
|
||||||
entity_id: input_datetime.house_became_empty
|
entity_id: input_datetime.house_became_empty
|
||||||
data:
|
data:
|
||||||
timestamp: "{{ now().timestamp() }}"
|
timestamp: "{{ now().timestamp() }}"
|
||||||
|
|
||||||
- id: roborock_reset_daily_counter
|
- id: roborock_reset_daily_counter
|
||||||
alias: Roborock Reset Daily Counter
|
alias: Roborock Reset Daily Counter
|
||||||
trigger:
|
trigger:
|
||||||
@@ -57,10 +53,10 @@
|
|||||||
value_template: >
|
value_template: >
|
||||||
{{ states('vacuum.roborock_s8_pro_ultra') in ['docked','idle','charging'] }}
|
{{ states('vacuum.roborock_s8_pro_ultra') in ['docked','idle','charging'] }}
|
||||||
|
|
||||||
- condition: numeric_state
|
- condition: template
|
||||||
entity_id: vacuum.roborock_s8_pro_ultra
|
value_template: >
|
||||||
attribute: battery_level
|
{% set b = state_attr('vacuum.roborock_s8_pro_ultra','battery_level') %}
|
||||||
above: 20
|
{{ b is number and b > 20 }}
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- variables:
|
- variables:
|
||||||
|
|||||||
Reference in New Issue
Block a user