I’ve got a fairly fresh install of openHAB 2.4 and MQTT 2.4.
I’m in the process of setting up my Yamaha Amp to be controlled via MQTT from a touch panel in my kitchen and have come across a small issue with two of the channels - Radio Preset and Volume.
Using MQTT I am able to perform the following on the Amp:
Turn Power Off/On
Turn Mute Off/On
Select the input - TUNER / CD
But, I cannot do these:
Set the Volume
Set the Radio Preset
Using MQTT.fx I can publish the setting to the topic and the logs show it received. My BasicUI sitemap updates with the new setting, but once the Yamaha thing refreshes in openHAB it resets to the previous setting. So the new published MQTT setting is not actually set on the Amp.
I think it’s something to do with publishing a number to the MQTT topic…but I’m just not sure.
When I use the BasicUI sitemap to make the changes it does it correctly on the Amp and publishes the updated setting to the MQTT topic also, and I can see the numbers correctly in the topic on MQTT.fx
Any ideas on where to start? Is it a transform of some sort?
The behaviour is the same using PaperUI control, or the BasicUI sitemap.
Both of those will control the Amp correctly and send the messages to the MQTT Topic.
But, trying to publish from MQTT back into openHAB doesn’t work for just the Preset Station and Volume.
Could the paperUI be extended for other channels types to include the postCommand parameter, please?
@mikebl
In the mean time you will have to use proxy items:
One item with the yamaha binding
One item with the MQTT binding
And a rule to pass the updated value on MQTT as a command to the Yamaha:
I am not running snapshots until it gets more stable. The ESH changes broke my system.
Can anyone confirm that the “is command” parameter is available for all channel types in the paperUI with the new snapshots before I submit an issue. Thanks