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
  • 2
  • 1
  • 19
  • 3
  • 7

1
Online

11.4k
Users

11.1k
Topics

112.7k
Posts