HI,
I have set a switch to a smart bulb to turn on/off. I recently installed a PIR sensor with rule
on switch6#state=1 do publish BedRoom/PIR/state YES endon on switch6#state=0 do publish BedRoom/PIR/state NO endon
and created a binary sensor in HA and created automation to turn full brightness at motion detection and dim the light to 15% when no motion triggered for 30 seconds.
- id: '2470561851163'
alias: Bedroom PIR High
trigger:
- entity_id: binary_sensor.bedroom_pir
from: 'off'
platform: state
to: 'on'
condition:
- after: '17:30:00'
before: 06:00:00
condition: time
action:
- data:
brightness: 255
entity_id: light.bedroom_bulb
service: light.turn_on
- id: '2179531861664'
alias: Bedroom PIR Low
trigger:
- entity_id: binary_sensor.bedroom_pir
for: 00:00:30
from: 'on'
platform: state
to: 'off'
condition:
- after: '17:30:00'
before: 06:00:00
condition: time
action:
- data:
brightness: 40
entity_id: light.bedroom_bulb
service: light.turn_on
Now wanted to enable/disable that automation with same/different switch on another tasmota device with switchmode 5 (HOLD) function and created a rule
on switch5#state=3 do publish BedRoom/AutoLight/state TOGGLE
but the HOLD command is not showing in console. Where did I make the mistake?