[SOLVED] Command send via mqtt is reverted

I try to change the setpoint of my thermostats.

i have to send following message

{
	"current_heating_setpoint" : 16
}

my mqtt things and channels

Bridge  mqtt:broker:mosquitto "Mosquitto" [ host="192.168.178.63", secure=false, clientID="openHAB2Docker"  ]
{
    Thing topic WoziThermosLeft "Thermostat Wohnzimmer Links" @ "Wohnzimmer"
    {
        Channels:
            Type number : WoZiLeSetpoint [stateTopic="zigbee2mqtt/WoZiLinks", comandTopic="zigbee2mqtt/WoZiLinks/set", transformationPattern="JSONPATH:$.current_heating_setpoint", formatBeforePublish="JS:setTempThermostat.js"]//
    } 
}   

the js code

(function(x) {
    var result;
    result = "{ \"current_heating_setpoint\": " + input + " }";
    return result;
})(input)

the Linked Item

Number ThermosLi_Setpoint "Solltemperatur am Thermostat links [%.0f °C]" <temp> {channel="mqtt:topic:mosquitto:WoziThermosLeft:WoZiLeSetpoint"}

If i try to change the Setpoint following log message Appears.

2019-11-03 10:36:00.068 [ome.event.ItemCommandEvent] - Item 'ThermosLi_Setpoint' received command 24
2019-11-03 10:36:00.069 [nt.ItemStatePredictedEvent] - ThermosLi_Setpoint predicted to become 24
2019-11-03 10:36:00.070 [vent.ItemStateChangedEvent] - ThermosLi_Setpoint changed from 18 to 24
2019-11-03 10:36:00.071 [vent.ItemStateChangedEvent] - ThermosLi_Setpoint changed from 24 to 18
2019-11-03 10:37:56.746 [vent.ItemStateChangedEvent] - IsttemperaturRaum changed from 22.5 °C to 23.

I found similar problems here but no one seems to fit to my problem :frowning: sorry if i missed something

:edit in my zigbee2mqtt the send message doesn’t appears so it seems the message never goes out if send the message via MQTT.fx

[32m  zigbee2mqtt:infoe[39m 11/3/2019, 10:46:43 AM Zigbee publish to device 'WoZiLinks', hvacThermostat - write - [{"attrId":16387,"dataType":41,"attrData":1600}] - {"manufSpec":1,"manufCode":4151} - 1
e[32m  zigbee2mqtt:infoe[39m 11/3/2019, 10:46:48 AM MQTT publish: topic 'zigbee2mqtt/WoZiLinks', payload '{"local_temperature":19.02,"occupied_heating_setpoint":21,"unoccupied_heating_setpoint":16,"pi_heating_demand":2,"eurotronic_system_mode":1,"current_heating_setpoint":16,"eurotronic_error_status":0,"battery":100,"linkquality":55}'
            Type number : WoZiLeSetpoint [stateTopic="zigbee2mqtt/WoZiLinks", comandTopic="zigbee2mqtt/WoZiLinks/set", transformationPattern="JSONPATH:$.current_heating_setpoint", formatBeforePublish="JS:setTempThermostat.js"]//

commandTopic

1 Like

thank you so much :grinning: that was a dump mistake