- Platform information:
- Hardware: Corei5 / 8Gb / 18Tb_
- OS: Windows10
- Java Runtime Environment: 1.8.0_202-b08
- openHAB version: 2.4
- Mosquitto mqqt server
Hi everyone. OpenHAB beginner here
I am trying to use a map transformation to switch a heatpump on and off, but cannot get it to work. I’m using mqqt.fx to monitor mqqt traffic.
i have created a mqqt generic thing named “Test AC” and then a switch channel named “Power” linked to a Switch item.
I have also installed the map transformation addon and, under conf\transform, created the file HPPower.map:
ON={“power”:“ON”}
OFF={“power”:“OFF”}
I can get the heatpump to turn on and off with the following configuration in paperUI:
Outgoing value format: empty
On/Open Value: {“power”:“ON”}
Off/Closed value: {“power”:“OFF”}
MQQT.fx shows that the proper {“power”:“ON”} / {“power”:“OFF”} is published on the appropriate command topic when i set it to on or off respectively and the heatpump responds appropriately
I am however trying to get it to use my defined map transformation instead with the following configuration:
Outgoing value format: MAP:HPPower.map
On/Open Value: empty
Off/Closed value: empty
when using this configuration, MQQT.fx shows that MAP:HPPower.map is published on the command topic, whenever i set the channel to on or off.
Is this a syntax issue? If so, what is the appropriate Outgoing value format syntax?
Thanks for the help