Heatit thermostate - able to change setpoint, but not mode

This code changes the setpoint on my Heatit thermostate to 5 degrees when I send 3 as the trigger payload for MQTT (3 being the node ID of course):

- alias: Termostater til 5 grader
  action:
    data_template:
      node_id: '{{ trigger.payload }}'
      parameter: 10
      value: 50
    service: zwave.set_config_parameter
  condition: []
  id: '1524675052575'
  trigger:
    platform: mqtt
    topic: ZWaveTermostatAv

That works nicely. But I can’t change the mode. I have tried this code:

- alias: Termostater modus av
  action:
    data_template:
      node_id: '{{ trigger.payload }}'
      parameter: 1
      value: off
    service: zwave.set_config_parameter
  condition: []
  id: '152406878952579'
  trigger:
    platform: mqtt
    topic: ZWaveTermostatModusAv

I have tried Off, and I have tried ‘Off’ and ‘off’, but nothing takes. When I look at {{state_attr(‘climate.termostat_8_heating’, ‘operation_mode’)}} I see off and heat, and I see in the node config options that operation mode is number 1. Does anybody have a clue what I’m doing wrong? It works flawlessly setting the operation mode from the GUI, but that doesn’t help me much.

Hi @Mastiff,

Any chance that you finally succeeded change the option values ?

I’m also stuck with the new Z-TRM2FX thermostat, where I cannot change any parameters. The new value doesn’t get saved.

Node086, Value::Set - COMMAND_CLASS_CONFIGURATION - DIFF l. Temperature control Hysteresis - 4 - 1 - 5
2018-12-24 14:55:39.708 Info, Node086, Configuration::Set - Parameter=4, Value=5 Size=2
2018-12-24 14:55:39.708 Detail, Node086, Queuing (Send) ConfigurationCmd_Set (Node=86): 0x01, 0x0d, 0x00, 0x13, 0x56, 0x06, 0x70, 0x04, 0x04, 0x02, 0x00, 0x05, 0x25, 0xdb, 0x38
2018-12-24 14:55:39.708 Detail, Node086, Queuing (Send) ConfigurationCmd_Get (Node=86): 0x01, 0x0a, 0x00, 0x13, 0x56, 0x03, 0x70, 0x05, 0x04, 0x25, 0xdc, 0x3b
2018-12-24 14:55:39.708 Detail,
2018-12-24 14:55:39.708 Info, Node086, Sending (Send) message (Callback ID=0xdb, Expected Reply=0x13) - ConfigurationCmd_Set (Node=86): 0x01, 0x0d, 0x00, 0x13, 0x56, 0x06, 0x70, 0x04, 0x04, 0x02, 0x00, 0x05, 0x25, 0xdb, 0x38
2018-12-24 14:55:39.717 Detail, Node086,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-12-24 14:55:39.717 Detail, Node086,   ZW_SEND_DATA delivered to Z-Wave stack
2018-12-24 14:55:39.735 Detail, Node086,   Received: 0x01, 0x07, 0x00, 0x13, 0xdb, 0x00, 0x00, 0x02, 0x32
2018-12-24 14:55:39.735 Detail, Node086,   ZW_SEND_DATA Request with callback ID 0xdb received (expected 0xdb)
2018-12-24 14:55:39.735 Info, Node086, Request RTT 26 Average Request RTT 25
2018-12-24 14:55:39.735 Detail,   Expected callbackId was received
2018-12-24 14:55:39.735 Detail,   Expected reply was received
2018-12-24 14:55:39.735 Detail,   Message transaction complete
2018-12-24 14:55:39.735 Detail,
2018-12-24 14:55:39.735 Detail, Node086, Removing current message
2018-12-24 14:55:39.735 Detail,
2018-12-24 14:55:39.735 Info, Node086, Sending (Send) message (Callback ID=0xdc, Expected Reply=0x04) - ConfigurationCmd_Get (Node=86): 0x01, 0x0a, 0x00, 0x13, 0x56, 0x03, 0x70, 0x05, 0x04, 0x25, 0xdc, 0x3b
2018-12-24 14:55:39.745 Detail, Node086,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2018-12-24 14:55:39.745 Detail, Node086,   ZW_SEND_DATA delivered to Z-Wave stack
2018-12-24 14:55:39.761 Detail, Node086,   Received: 0x01, 0x07, 0x00, 0x13, 0xdc, 0x00, 0x00, 0x02, 0x35
2018-12-24 14:55:39.761 Detail, Node086,   ZW_SEND_DATA Request with callback ID 0xdc received (expected 0xdc)
2018-12-24 14:55:39.761 Info, Node086, Request RTT 25 Average Request RTT 25
2018-12-24 14:55:39.761 Detail,   Expected callbackId was received
2018-12-24 14:55:39.777 Detail, Node086,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x56, 0x05, 0x70, 0x06, 0x04, 0x01, 0x03, 0xd3
2018-12-24 14:55:39.778 Detail,
2018-12-24 14:55:39.778 Info, Node086, Response RTT 41 Average Response RTT 41
2018-12-24 14:55:39.778 Detail, Node086, Refreshed Value: old value=3, new value=3, type=short
2018-12-24 14:55:39.778 Detail, Node086, Changes to this value are not verified
2018-12-24 14:55:39.778 Info, Node086, Received Configuration report: Parameter=4, Value=3
2018-12-24 14:55:39.778 Detail, Node086,   Expected reply and command class was received
2018-12-24 14:55:39.778 Detail, Node086,   Message transaction complete
2018-12-24 14:55:39.778 Detail,
2018-12-24 14:55:39.778 Detail, Node086, Removing current message
2018-12-24 14:55:39.778 Detail, Node086, Notification: ValueChanged

Strangely, the response of the device indicates new_value=3 instead of 5 “successfully” requested and sent.

This is what worked for me:

- alias: Termostat power reg 20 percent
  action:
    data_template:
      node_id: '{{ trigger.payload }}'
      parameter: 2
      value: 300
    service: zwave.set_config_parameter
  condition: []
  id: '1524674038'
  trigger:
    platform: mqtt
    topic: ZWaveTermostatPowerRegOn