Jon123
(Jon)
December 3, 2020, 12:57am
1
I’m having a hard time finding info on this…
I’d like to set an automation up to run only if triggered by the physical switch.
For example:
Trigger: Switch On
Condition: “it wasn’t done by home assistant or another automation” OR “it WAS done by the physical device”
The specific switch I’m looking at is an inovelli NZW31 (black), using ozw beta (so it’s using MQTT). Any pointers would be appreciated, thanks!
I answered an almost identical question to this 3 days ago…
Create an input_boolean to monitor whether the switch was turned on by the automation…
input_boolean:
automated_light:
Turn it on with the switch in the automation…
alias: Licht Gallerie bei Bewegung
description: Licht in Gallerie einschalten wenn Cover Strasse geschlossen ist
trigger:
platform: state
entity_id: binary_sensor.deconz_pir_gallerie_rechts
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.deconz_pir_gallerie_rechts_lux
below: 10
- condition: sta…
Jon123
(Jon)
December 3, 2020, 4:13pm
3
@anon43302295 Thanks! I was hoping there was another way to accomplish it. I thought there was data provided by the trigger/event that could be checked in a template to see how the automation initiated.