Page 1 of 1

activate or deactivate rules over mqtt

Posted: 12 Jul 2019, 13:25
by elminjo
is it possible to toggle a rule over mqtt?
basically to activate and deactivate a rule over mqtt?

i tried to toggle a Dummy Device, but was not able to change the value
Topic: SubscribeTopic/DeviceName/DummyValue

EDIT: I oversaw Generic - MQTT Import, I try this one first

Edit2: The solution:

Code: Select all

on bell#switch do
  if [bell_armed#active] = 1
    Pulse,12,0,500
  endif
endon
bell_armed#active is a Generic - MQTT Import with the name bell_armed and value active