HVAC + Z-Wave + 0.21.1

Continuing the discussion from Hvac zwave:

I have an Aeotec ZW090 Z-Stick Gen5 and ZXT-120 currently installed. I have been able to get it configured where these devices are recognized by Home Assistant:
hvac.remotec_unknown_type0100_id8377_fan_mode_2
sensor.remotec_unknown_type0100_id8377_temperature_2

I simply want a switch to turn the unit off and on. The current attributes are:
{
“battery_level”: 100,
“current_temperature”: 82,
“fan_list”: [
“Auto Low”,
“Unknown 4”,
“Unknown 5”,
“On Low”,
“On High”,
“Auto High”
],
“fan_mode”: “On Low”,
“friendly_name”: “Remotec Unknown: type=0100, id=8377 Fan Mode”,
“max_temp”: 86,
“min_temp”: 66,
“node_id”: 2,
“operation_list”: [
“Resume”,
“Dry Air”,
“Heat”,
“Auto Changeover”,
“Off”,
“Fan Only”,
“Cool”
],
“operation_mode”: “Cool”,
“temperature”: 77,
“unit_of_measurement”: “°C”
}

Any suggestions?

Damn, came here to ask the same question. Did you end up figuring out how to do this?

I’m guessing it would be something similar to the way lights with attributes work using the service light/turn_on etc.

For example

- service: light.turn_on
      entity_id: light.phils_lamp
      data:
        brightness: 100

So, I’m assuming there would be a service hvac.turn_on which you can parse attributes to. The question is, what are those attributes?

From looking at the code on GitHub, it looks like there’s a few services exposed.

  • hvac.set_away_mode
  • hvac.set_aux_heat
  • hvac.set_temperature
  • hvac.set_fan_mode
  • hvac.set_operation_mode
  • hvac.set_swing_mode
  • hvac.set_humidity

Looking in the UI, it seems those services are available. Looking over the code some more, I can’t seem to see any shortcut methods to use data attributes like the light component.

So, in an automation, to turn on the heat, I’m guessing one would have to do the following

- alias: Turn on heater
  trigger:
    - platform: state
      entity_id: input_boolean.test_switch
      to: 'on'
  action:
    - service: hvac.set_operation_mode
      entity_id: hvac.remotec_zxt120_fan_mode_39
      data:
        operation_mode: Heat
    - service: hvac.set_temperature
      entity_id: hvac.remotec_zxt120_fan_mode_39
      data:
        temperature: 26

To turn the airconditioner on and set the swing mode, one would do

- alias: Turn on aircon
  trigger:
    - platform: state
      entity_id: input_boolean.test_switch
      to: 'on'
  action:
    - service: hvac.set_operation_mode
      entity_id: hvac.remotec_zxt120_fan_mode_39
      data:
        operation_mode: Cool
    - service: hvac.set_temperature
      entity_id: hvac.remotec_zxt120_fan_mode_39
      data:
        temperature: 21

I’ll have a play and see how I go. If that works, I’ll put a pull request in to fix up the docs.

Edit: That seems to work!