Zwavejs automation trigger on node event

Hello,

I did find a workaround. I now have “idle” and “heating” state for all the thermostats, including the heatit TF016 units:
image

Basically the TF016 climate entities does not have the “hvac_action” attribute as they dont know the relay state.
I found a script that sets the attributes of a entity based on other entities. This is off course not the best way. however it does the job:

I use automation to set input_booleans based on the number entities, this is because the number entities change between ‘0’, ‘99’ and ‘255’, don’t know why ‘99’.

## Stue 
- alias: Ovens on stue
  trigger:
    entity_id: number.stue_basic
    platform: numeric_state
    above: '200'
  action:
    service: input_boolean.turn_on
    target:
      entity_id: input_boolean.heating_stue
  id: b2481b651f2d4e22a53dbf787ba61dd9

- alias: Ovens off stue
  trigger:
    entity_id: number.stue_basic
    platform: numeric_state
    below: '10'
  action:
    service: input_boolean.turn_off
    target:
      entity_id: input_boolean.heating_stue
  id: f1f928cac90a4573878d5344a0de716f

The based on the state of the input Booleans I use below automation that rely on the above mentioned python script:

## Heating_stue
- id: set attribute thermostat stue
  alias: 'set attribute thermostat stue'
  trigger:
    platform: state
    entity_id:
      - climate.stue
      - input_boolean.heating_stue
  condition:
    condition: template
    value_template: >-
      {% if state_attr('climate.stue', 'hvac_action') == none %}
         true
      {% elif "input_boolean" in trigger.entity_id %}
         true
      {% else %}
         false
      {% endif %}

  action:
    service: python_script.set_state
    data_template:
      entity_id: 'climate.stue'
      hvac_action: >- 
        {% if is_state('input_boolean.heating_stue', 'on') %}heating{% else %}idle{% endif %}