zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Zen Zen-01-W lacks cool / cooling

Open JasonSwindle opened this issue 6 years ago • 34 comments

Bug Report

What happened

Device can support Heat / Cool, but mqtt (and HASS) can only support heat

What did you expect to happen

The device to be able to do more than heat.

How to reproduce it (minimal and precise)

Docs and HASS MQTT discover both only have HEAT mode.

Debug Info

Zigbee2MQTT version: 1.14.4 Adapter hardware: LAUNCHXL CC1352P-2 Adapter firmware version: Z-Stack_3.x.0 (commit f4a0d30302b4757771f01420272b6ced89001dbc)

JasonSwindle avatar Sep 09 '20 16:09 JasonSwindle

Is there something more I can provide to help move this forward? :)

JasonSwindle avatar Sep 12 '20 18:09 JasonSwindle

@brubaked do you still have this device? Could you help with this issue?

Koenkk avatar Sep 14 '20 06:09 Koenkk

Alright, my setup since I switched to back from smartthings to Zigbee2MQTT only has heating, so I hadn't noticed this before. I can confirm that when the thermostat is configured to support cooling (page 19 of this document) the auto discovery only exposes the heating mode. If I manually configure the thermostat in the configuration.yaml file, the heating and cooling functions work as expected.

climate:
  - platform: "mqtt"
    name: "Zen Thermostat"
    availability_topic: "zigbee2mqtt/bridge/state"
    temperature_unit: "C"
    min_temp: "10"
    max_temp: "30"
    mode_state_topic: "zigbee2mqtt/<FriendlyName>"
    mode_state_template: "{{ value_json.system_mode }}"
    mode_command_topic: "zigbee2mqtt/<FriendlyName>"
    current_temperature_topic: "zigbee2mqtt/<FriendlyName>"
    current_temperature_template: "{{ value_json.local_temperature }}"
    temp_step: 0.5
    action_topic: "zigbee2mqtt/<FriendlyName>"
    action_template: "{% set values = {'idle':'off','heat':'heating','cool':'cooling','fan only':'fan'} %}{{ values[value_json.running_state] }}"
    modes: 
      - "off"
      - "heat"
      - "cool"
      - "fan only"
    temperature_state_topic: "zigbee2mqtt/<FriendlyName>"
    temperature_state_template: "{{ value_json.occupied_heating_setpoint }}"
    temperature_command_topic: "zigbee2mqtt/<FriendlyName>/set/occupied_heating_setpoint"

The debug log during pairing when the thermostat is configured for heating and cooling is below:

Zigbee2MQTT:info  2020-09-14 08:03:41: Device '<FriendlyName>' joined
Zigbee2MQTT:info  2020-09-14 08:03:41: Starting interview of '<FriendlyName>'
Zigbee2MQTT:info  2020-09-14 08:03:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"<FriendlyName>"},"type":"device_connected"}'
Zigbee2MQTT:info  2020-09-14 08:03:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"<FriendlyName>"},"type":"pairing"}'
Zigbee2MQTT:debug 2020-09-14 08:03:41: Device '<FriendlyName>' announced itself
Zigbee2MQTT:info  2020-09-14 08:03:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"<FriendlyName>"},"type":"device_announced"}'
Zigbee2MQTT:debug 2020-09-14 08:03:55: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{"modelId":"Zen-01"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:55: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{"modelId":"Zen-01"}'
Zigbee2MQTT:info  2020-09-14 08:03:55: MQTT publish: topic 'homeassistant/climate/<FriendlyName>/climate/config', payload '{"action_template":"{% set values = {'idle':'off','heat':'heating','cool':'cooling','fan only':'fan'} %}{{ values[value_json.running_state] }}","action_topic":"zigbee2mqtt/<FriendlyName>","availability_topic":"zigbee2mqtt/bridge/state","current_temperature_template":"{{ value_json.local_temperature }}","current_temperature_topic":"zigbee2mqtt/<FriendlyName>","device":{"identifiers":["zigbee2mqtt_<FriendlyName>"],"manufacturer":"Zen","model":"Thermostat (Zen-01-W)","name":"<FriendlyName>","sw_version":"Zigbee2MQTT 1.14.4"},"json_attributes_topic":"zigbee2mqtt/<FriendlyName>","max_temp":"30","min_temp":"10","mode_command_topic":"zigbee2mqtt/<FriendlyName>/set/system_mode","mode_state_template":"{{ value_json.system_mode }}","mode_state_topic":"zigbee2mqtt/<FriendlyName>","modes":["off","auto","heat"],"name":"<FriendlyName>_climate","temp_step":0.5,"temperature_command_topic":"zigbee2mqtt/<FriendlyName>/set/occupied_heating_setpoint","temperature_state_template":"{{ value_json.occupied_heating_setpoint }}","temperature_state_topic":"zigbee2mqtt/<FriendlyName>","temperature_unit":"C","unique_id":"<FriendlyName>_climate_zigbee2mqtt"}'
Zigbee2MQTT:info  2020-09-14 08:03:55: MQTT publish: topic 'homeassistant/sensor/<FriendlyName>/linkquality/config', payload '{"availability_topic":"zigbee2mqtt/bridge/state","device":{"identifiers":["zigbee2mqtt_<FriendlyName>"],"manufacturer":"Zen","model":"Thermostat (Zen-01-W)","name":"<FriendlyName>","sw_version":"Zigbee2MQTT 1.14.4"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/<FriendlyName>","name":"<FriendlyName>_linkquality","state_topic":"zigbee2mqtt/<FriendlyName>","unique_id":"<FriendlyName>_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
Zigbee2MQTT:debug 2020-09-14 08:03:55: Received MQTT message on 'homeassistant/climate/<FriendlyName>/climate/config' with data '{"action_template":"{% set values = {'idle':'off','heat':'heating','cool':'cooling','fan only':'fan'} %}{{ values[value_json.running_state] }}","action_topic":"zigbee2mqtt/<FriendlyName>","availability_topic":"zigbee2mqtt/bridge/state","current_temperature_template":"{{ value_json.local_temperature }}","current_temperature_topic":"zigbee2mqtt/<FriendlyName>","device":{"identifiers":["zigbee2mqtt_<FriendlyName>"],"manufacturer":"Zen","model":"Thermostat (Zen-01-W)","name":"<FriendlyName>","sw_version":"Zigbee2MQTT 1.14.4"},"json_attributes_topic":"zigbee2mqtt/<FriendlyName>","max_temp":"30","min_temp":"10","mode_command_topic":"zigbee2mqtt/<FriendlyName>/set/system_mode","mode_state_template":"{{ value_json.system_mode }}","mode_state_topic":"zigbee2mqtt/<FriendlyName>","modes":["off","auto","heat"],"name":"<FriendlyName>_climate","temp_step":0.5,"temperature_command_topic":"zigbee2mqtt/<FriendlyName>/set/occupied_heating_setpoint","temperature_state_template":"{{ value_json.occupied_heating_setpoint }}","temperature_state_topic":"zigbee2mqtt/<FriendlyName>","temperature_unit":"C","unique_id":"<FriendlyName>_climate_zigbee2mqtt"}'
Zigbee2MQTT:debug 2020-09-14 08:03:55: Received MQTT message on 'homeassistant/sensor/<FriendlyName>/linkquality/config' with data '{"availability_topic":"zigbee2mqtt/bridge/state","device":{"identifiers":["zigbee2mqtt_<FriendlyName>"],"manufacturer":"Zen","model":"Thermostat (Zen-01-W)","name":"<FriendlyName>","sw_version":"Zigbee2MQTT 1.14.4"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/<FriendlyName>","name":"<FriendlyName>_linkquality","state_topic":"zigbee2mqtt/<FriendlyName>","unique_id":"<FriendlyName>_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
Zigbee2MQTT:debug 2020-09-14 08:03:55: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"Zen Within"}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:55: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{"manufacturerName":"Zen Within"}'
Zigbee2MQTT:debug 2020-09-14 08:03:55: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{"powerSource":129}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:55: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{"powerSource":129}'
Zigbee2MQTT:debug 2020-09-14 08:03:56: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{"zclVersion":1}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:56: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{"zclVersion":1}'
Zigbee2MQTT:debug 2020-09-14 08:03:56: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{"appVersion":23}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:56: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{"appVersion":23}'
Zigbee2MQTT:debug 2020-09-14 08:03:56: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{"stackVersion":2}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:56: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{"stackVersion":2}'
Zigbee2MQTT:debug 2020-09-14 08:03:56: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{"hwVersion":2}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:56: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{"hwVersion":2}'
Zigbee2MQTT:debug 2020-09-14 08:03:56: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:56: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{}'
Zigbee2MQTT:debug 2020-09-14 08:03:56: Received Zigbee message from '<FriendlyName>', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-14 08:03:56: No converter available for 'Zen-01-W' with cluster 'genBasic' and type 'readResponse' and data '{}'
Zigbee2MQTT:info  2020-09-14 08:03:56: Successfully interviewed '<FriendlyName>', device has successfully been paired
Zigbee2MQTT:info  2020-09-14 08:03:56: Device '<FriendlyName>' is supported, identified as: Zen Thermostat (Zen-01-W)
Zigbee2MQTT:info  2020-09-14 08:03:56: Configuring '<FriendlyName>'
Zigbee2MQTT:info  2020-09-14 08:03:56: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Thermostat","friendly_name":"<FriendlyName>","model":"Zen-01-W","supported":true,"vendor":"Zen"},"type":"pairing"}'
Zigbee2MQTT:info  2020-09-14 08:04:08: Successfully configured '<FriendlyName>'
Zigbee2MQTT:debug 2020-09-14 08:04:58: Received Zigbee message from '<FriendlyName>', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":1,"fileVersion":544,"imageType":2,"manufacturerCode":4440}' from endpoint 1 with groupID 0

It seems like the thermostat is indeed only reporting that it has off, auto and heat modes available:

"modes":["off","auto","heat"]

brubaked avatar Sep 14 '20 15:09 brubaked

So does this mean it needs to be fixed at zigbee-herdsman level? Or a flaw with the device?

JasonSwindle avatar Sep 18 '20 16:09 JasonSwindle

@Koenkk @brubaked Following up on this. I hate having to poke people. Thank you for the help. :)

JasonSwindle avatar Sep 30 '20 15:09 JasonSwindle

@JasonSwindle Sorry! I haven't had time to dive into this deeper and figure out where the lack of feature autodetection lies. In the meantime, using the YAML code I posted above should give you access to cooling control in Home Assistant.

brubaked avatar Oct 01 '20 02:10 brubaked

Howdy,

I will give this a test. By configuration.yaml do you mean Zigbee2MQTT or HASS? They both have a configuration.yaml file, but I figure it goes into HASS, as it looks like a config for it.

** EDIT **

Testing the supplied override now. Seems to be working. Thank you @brubaked

JasonSwindle avatar Oct 03 '20 17:10 JasonSwindle

I'm not sure if this is the dev version, or something else, but I can update MQTT but the device never gets the update. I'm seeing this in the log:

ERROR: Publish 'set' 'occupied_heating_setpoint' to 'zen-thermostat' failed: 'Error: Write 0x00244600000eaea7/1 hvacThermostat({"occupiedHeatingSetpoint":1600}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Timeout - 56085 - 1 - 10 - 513 - 4 after 10000ms)'

JasonSwindle avatar Oct 07 '20 21:10 JasonSwindle

@brubaked Using your setup, I can see MQTT is updated, but the unit never updates to the correct temp. Any advice?

JasonSwindle avatar Oct 21 '20 00:10 JasonSwindle

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Nov 21 '20 00:11 github-actions[bot]

Not stale, but cannot get movement. Bump.

JasonSwindle avatar Nov 21 '20 14:11 JasonSwindle

I.have problem with integration also. Thermostat reporting temp and heating/idle status correctly, but set_temp works only 1 of 5 times and very laggy...I used deconz soft before and it works better with setting occupied temp.

stegno avatar Dec 30 '20 00:12 stegno

Bring this back, as this is still not working correctly.

JasonSwindle avatar Apr 17 '21 01:04 JasonSwindle

Having this same issue as well

gunnarsundberg avatar May 28 '21 13:05 gunnarsundberg

@Koenkk Can we get this re-opened? The device still not work correctly.

JasonSwindle avatar Jun 16 '21 19:06 JasonSwindle

Hey all! I submitted a fix for this to zigbee-herdsman-converters and it was merged, so you should be able to use cool mode now. I'm also working on getting a cooling setpoint added.

gunnarsundberg avatar Nov 11 '21 22:11 gunnarsundberg

Thank you so much @gunnarsundberg !

JasonSwindle avatar Nov 12 '21 14:11 JasonSwindle

I'm unfortunately having this issue with a Zen stat. Current version of Zigbee2MQTT and experiencing the exact same issues as OP.

ctjameson avatar Jun 04 '22 20:06 ctjameson

@ctjameson the problem is in zigbee-herdsman-converters. There's no cooling setpoint for the Zen thermostat. I am running a custom version that adds a cooling setpoint. I'll submit a PR when I get the chance

gunnarsundberg avatar Jun 05 '22 00:06 gunnarsundberg

Thanks @gunnarsundberg. How complicated is it for me to do the same until it's been integrated? Would you be willing to assist me with that? If not, that's fine as well. I can just wait.

ctjameson avatar Jun 05 '22 00:06 ctjameson