I have been receiving feedback and requests for more MQTT-Support in OpenNetHome. After some discussions and feedback rounds I have ended up with two new Items:
This is item has four command-actions and when an action is triggered a corresponding MQTT-Message is sent to a configured topic.
The MqttLamp behaves like a standard lamp, and controls a lamp/switch via MQTT. You configure the topic of the device you want to control and the messages used to turn the device on or off. The MqttLamp will also listen on that topic for those messages to update the state if it is changed from another source.
These Items makes it possible to include devices controlled via MQTT as Home Items.
As usual, the Items are available in the nightly build