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