I’ve created a simple Contact item which listens on mqtt inbound messages. The switch works fine/as expected however I keep getting (every x seconds) an error message in my logs saying the following.
2018-02-22 00:14:38.025 [WARN ] [.c.i.events.EventPublisherImpl] - given new state is NULL, couldn't post update for 'foobar'
Thanks for that hint! I’ve adapted my transform map to
‘’‘
opened=OPEN
closed=CLOSED
’’’
Additionally I removed a periodically ping message I’ve sent from my sensor (the application that sends the messages to the mqtt broker). What I have done now is having the sensor send only openened and closed to one topic and the ping messages to another seperate topic which is not monitored by openhab.