Local Control Active - hcpy2-0/hcpy GitHub Wiki
Some devices will report a LocalControlActive. This triggers when a user presses a physical button and instructs the app not to send any commands for ~15s as they will be rejected.
For example, in my automation for my Hood I check to see if the fan is turned on, and if so I turn on the worklight and the decorative light. If this is triggered by an automation then there is no problem, but if I manually turn on the fan the automation has to wait to before triggering the lights.
In automations the following can be used to detect if LocalControl is active, and wait for it to be disabled before continuing:
if:
- condition: state
entity_id: binary_sensor.hood_bsh_common_status_localcontrolactive
state: "on"
then:
- wait_for_trigger:
- entity_id:
- binary_sensor.hood_bsh_common_status_localcontrolactive
to: "off"
trigger: state
timeout:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
enabled: true