Trigger rule on empty MQTT message?


  • Hardware Contributor

    Is anyone aware of any way at all to trigger a rule to execute if openHAB receives a blank message via MQTT?

    At the moment the below code works but only if the message contained a value, i need it to trigger if the message is blank.

    rule "solve"
            when
                    Item monitor1 received update
            then
                    V_VAR1send.postUpdate(V_VAR1.state)
    end
    

    I have a open question on the openHAB forum but wondered if anyone around here has done something similar?


Log in to reply
 

Suggested Topics

  • 22
  • 3
  • 10
  • 132
  • 4
  • 7

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts