Add interval recovery
This commit is contained in:
parent
eb1842657d
commit
68dfd8529e
@ -194,6 +194,22 @@ script:
|
|||||||
id(supersensor_occupancy).publish_state(false);
|
id(supersensor_occupancy).publish_state(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interval:
|
||||||
|
- interval: 1s
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
api.connected:
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
and:
|
||||||
|
- switch.is_on: use_wake_word
|
||||||
|
- not:
|
||||||
|
- voice_assistant.is_running
|
||||||
|
then:
|
||||||
|
- voice_assistant.start_continuous:
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
level: DEBUG
|
level: DEBUG
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
@ -428,7 +444,6 @@ binary_sensor:
|
|||||||
has_target:
|
has_target:
|
||||||
name: "LD2410C Presence"
|
name: "LD2410C Presence"
|
||||||
id: radar_presence
|
id: radar_presence
|
||||||
icon: mdi:motion-sensor
|
|
||||||
device_class: motion
|
device_class: motion
|
||||||
on_press:
|
on_press:
|
||||||
- script.execute: occupancy_detect_handler
|
- script.execute: occupancy_detect_handler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user