Thermostat Refresh

Is this a format issue? I get this error “No action defined, please define an ‘action:’ key” when pasting this into the action tab under developer tools:

- id: "T6 thermostat Poll Temperatures"
  alias: T6 thermostat Poll Temperatures 90
  description: "Workaround issue with T6 not always reporting temperatures"
  mode: single
  max_exceeded: silent
  trigger:
    - platform: time_pattern
      minutes: "/10"
    - platform: homeassistant
      event: start
  action:
    - delay: 90
    - action: zwave_js.refresh_value
      continue_on_error: true
      data:
        entity_id: sensor.t6_pro_z_wave_programmable_thermostat_with_smartstart_air_temperature
        refresh_all_values: false
    - delay:
        seconds: 2
    - action: zwave_js.invoke_cc_api
      continue_on_error: true
      data:
        entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
        command_class: "66"
        endpoint: "0"
        method_name: get
        parameters: []
    - delay:
        seconds: 2
    - action: zwave_js.invoke_cc_api
      continue_on_error: true
      data:
        entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
        command_class: "67"
        endpoint: "0"
        method_name: get
        parameters:
          - 1
    - delay:
        seconds: 2
    - action: zwave_js.invoke_cc_api
      continue_on_error: true
      data:
        entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
        command_class: "64"
        endpoint: "0"
        method_name: get
        parameters: []

The Actions tool runs individual actions not complete automations.

An example of an individual action from what you posted would be:

action: zwave_js.refresh_value
continue_on_error: true
data:
  entity_id: sensor.t6_pro_z_wave_programmable_thermostat_with_smartstart_air_temperature
  refresh_all_values: false

Where do I test this? Is this supposed to go into the card?

Can you describe where this came from… it looks like you copied an automation out of your automations.yaml file. If that’s the case you can just run the automation from the Automations dashboard by finding it in the list, then clicking “Run Actions” in its expansion menu:

This came from @PeteRage who has it running for his two thermostats. I am trying to use it for my single thermostat.

Then you need to create a new automation, go up to the three-dots to open the expansion menu and click “Edit in YAML”.

The format you have shared it in is a little different than what is expected in the Automation editor, which is as follows:

alias: T6 thermostat Poll Temperatures 90
description: "Workaround issue with T6 not always reporting temperatures"
mode: single
max_exceeded: silent
trigger:
  - platform: time_pattern
    minutes: "/10"
  - platform: homeassistant
    event: start
action:
  - delay: 90
  - action: zwave_js.refresh_value
    continue_on_error: true
    data:
      entity_id: sensor.t6_pro_z_wave_programmable_thermostat_with_smartstart_air_temperature
      refresh_all_values: false
  - delay:
      seconds: 2
  - action: zwave_js.invoke_cc_api
    continue_on_error: true
    data:
      entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
      command_class: "66"
      endpoint: "0"
      method_name: get
      parameters: []
  - delay:
      seconds: 2
  - action: zwave_js.invoke_cc_api
    continue_on_error: true
    data:
      entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
      command_class: "67"
      endpoint: "0"
      method_name: get
      parameters:
        - 1
  - delay:
      seconds: 2
  - action: zwave_js.invoke_cc_api
    continue_on_error: true
    data:
      entity_id: climate.t6_pro_z_wave_programmable_thermostat_with_smartstart
      command_class: "64"
      endpoint: "0"
      method_name: get
      parameters: []

Once you’ve pasted that and saved the automation (making sure that the entity IDs match what your thermostat uses), you can run the action sequence by clicking “Run actions” in the expansion menu:

1 Like

I am getting this error.

image

Double check that the leading dash is removed and everything is indented as it is in my previous post.

1 Like

@Paddy707, do you understand what those commands are doing and how the one command is duplicating another? And that they are not related to any setting on your T6 to make it report the mode when you push the physical button?

What do you suggest?

Unfortunately, nothing new.

I understand you are just trying to have the T6 report its mode when you push the physical button on the T6 to update in HA. It’s frustrating, I’m sure.

You didn’t answer before: Do you need to push the button on the T6? Why not just change the temp settings and ignore the mode?

It’s been four months that you have been debugging this. I would either quit using the mode button and just set the temp or dig into a logical approach to debugging it. I forgot, did you try another T6?


There’s been a lot of suggestions, from many people, starting back in January (and here, and this thread) and how to debug, specifically to see if when you push the mode button on the T6 does the controller see the message sent from the T6.

The reason to debug like this is to see if when you push the button:
a) Z-Wave JS NEVER logs the mode change being received from the T6
b) Z-Wave JS only sometimes logs the message
c) always logs it.

The “a” option would make me think an issue with the T6, and “b” makes me wonder about the T6 or your network (or the wiring of the thermostat) – which then you can confirm using the refresh value. Right? Because refresh value is sending a message to the T6 asking it to report its mode state w/o the state changing (state changed caused by pressing the button).

IF the refresh always returns the mode, but pressing the button doesn’t than I would again suspect the T6 (because clearly the network is working).

And if “c” then you start logging the websocket and see if it’s getting there.

Essentially, you are trying to find where in the chain it’s broken, and only you can do that because you have the T6 there and I haven’t seen others with the newer T6 report the same issue.

And again, there is something very odd with the image in your post where it says heating and off at the same time. I have not been able to replicate that on my T6 or with a test climate entity. If I were you I’d check the T6’s wiring again.

1 Like

yeah, I did the debugging with Al calzone and another ZWA – two and setting it up as a sniffer. Sometimes the T6 sends the proper command and sometimes it doesn’t so I’ve reported it to Honeywell. They’re probably not gonna do anything so I was just going back to using the refresh commands that Pete suggested I’m gonna end this thread at this point but thanks for your help. I don’t wanna set up my thermostat the way you have it set up but appreciate your suggestions. Take care.