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

  • 10
  • 1
  • 4
  • 2
  • 6
  • 22
  • 3
  • 5

281
Online

9.8k
Users

10.3k
Topics

106.8k
Posts