stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 98 forks source link

Please add support for SEA802 and SEA801 Thermostats #486

Closed SargonofAssyria closed 3 years ago

SargonofAssyria commented 3 years ago

Device description Thermostat device

Zigbee2mqtt page https://www.zigbee2mqtt.io/devices/SEA801-Zigbee.html

MQTT message with device information PUT here the device data you receive when publish message with topic zigbee2mqtt/bridge/config/devices, as example

{"dateCode":"","description":"Thermostatic radiator valve","friendly_name":"Hobbykamer","hardwareVersion":1,"ieeeAddr":"0x5c0272fffec3c9af","lastSeen":1606738836307,"manufacturerID":4098,"manufacturerName":"_TZE200_c88teujp","model":"SEA802-zigbee","modelID":"TS0601","networkAddress":49532,"powerSource":"Battery","type":"EndDevice","vendor":"Saswell"}

info  2020-11-30 13:19:29: MQTT publish: topic 'homeassistant/sensor/0x5c0272fffec3c9af/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x5c0272fffec3c9af"],"manufacturer":"Saswell","model":"Thermostatic radiator valve (SEA802-Zigbee)","name":"Hobbykamer","sw_version":"Zigbee2MQTT 1.16.1-dev"},"icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/Hobbykamer","name":"Hobbykamer_linkquality","state_topic":"zigbee2mqtt/Hobbykamer","unique_id":"0x5c0272fffec3c9af_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'

info  2020-11-30 13:19:29: MQTT publish: topic 'homeassistant/climate/0x5c0272fffec3c9af/climate/config', payload '{"action_template":"{% set values = {'idle':'off','heat':'heating','cool':'cooling','fan only':'fan'} %}{{ values[value_json.running_state] }}","action_topic":"zigbee2mqtt/Hobbykamer","availability":[{"topic":"zigbee2mqtt/bridge/state"}],"away_mode_command_topic":"zigbee2mqtt/Hobbykamer/set/away_mode","away_mode_state_template":"{{ value_json.away_mode }}","away_mode_state_topic":"zigbee2mqtt/Hobbykamer","current_temperature_template":"{{ value_json.local_temperature }}","current_temperature_topic":"zigbee2mqtt/Hobbykamer","device":{"identifiers":["zigbee2mqtt_0x5c0272fffec3c9af"],"manufacturer":"Saswell","model":"Thermostatic radiator valve (SEA802-Zigbee)","name":"Hobbykamer","sw_version":"Zigbee2MQTT 1.16.1-dev"},"hold_command_topic":"zigbee2mqtt/Hobbykamer/set/preset","hold_modes":["Schedule"],"hold_state_template":"{{ value_json.preset }}","hold_state_topic":"zigbee2mqtt/Hobbykamer","json_attributes_topic":"zigbee2mqtt/Hobbykamer","max_temp":"30","min_temp":"5","mode_command_topic":"zigbee2mqtt/Hobbykamer/set/system_mode","mode_state_template":"{{ value_json.system_mode }}","mode_state_topic":"zigbee2mqtt/Hobbykamer","modes":["off","heat"],"name":"Hobbykamer","temp_step":0.5,"temperature_command_topic":"zigbee2mqtt/Hobbykamer/set/current_heating_setpoint","temperature_state_template":"{{ value_json.current_heating_setpoint }}","temperature_state_topic":"zigbee2mqtt/Hobbykamer","temperature_unit":"C","unique_id":"0x5c0272fffec3c9af_climate_zigbee2mqtt"}'

info  2020-11-30 13:19:29: MQTT publish: topic 'homeassistant/binary_sensor/0x5c0272fffec3c9af/battery_low/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x5c0272fffec3c9af"],"manufacturer":"Saswell","model":"Thermostatic radiator valve (SEA802-Zigbee)","name":"Hobbykamer","sw_version":"Zigbee2MQTT 1.16.1-dev"},"device_class":"battery","json_attributes_topic":"zigbee2mqtt/Hobbykamer","name":"Hobbykamer_battery_low","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/Hobbykamer","unique_id":"0x5c0272fffec3c9af_battery_low_zigbee2mqtt","value_template":"{{ value_json.battery_low }}"}'

info  2020-11-30 13:19:29: MQTT publish: topic 'homeassistant/switch/0x5c0272fffec3c9af/window_detection/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"command_topic":"zigbee2mqtt/Hobbykamer/set/window_detection","device":{"identifiers":["zigbee2mqtt_0x5c0272fffec3c9af"],"manufacturer":"Saswell","model":"Thermostatic radiator valve (SEA802-Zigbee)","name":"Hobbykamer","sw_version":"Zigbee2MQTT 1.16.1-dev"},"icon":"mdi:window-open-variant","json_attributes_topic":"zigbee2mqtt/Hobbykamer","name":"Hobbykamer_window_detection","payload_off":"OFF","payload_on":"ON","state_off":"OFF","state_on":"ON","state_topic":"zigbee2mqtt/Hobbykamer","unique_id":"0x5c0272fffec3c9af_window_detection_zigbee2mqtt","value_template":"{{ value_json.window_detection }}"}'

info  2020-11-30 13:19:29: MQTT publish: topic 'homeassistant/lock/0x5c0272fffec3c9af/child_lock/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"}],"command_topic":"zigbee2mqtt/Hobbykamer/set/child_lock","device":{"identifiers":["zigbee2mqtt_0x5c0272fffec3c9af"],"manufacturer":"Saswell","model":"Thermostatic radiator valve (SEA802-Zigbee)","name":"Hobbykamer","sw_version":"Zigbee2MQTT 1.16.1-dev"},"json_attributes_topic":"zigbee2mqtt/Hobbykamer","name":"Hobbykamer_child_lock","payload_lock":"LOCK","payload_unlock":"UNLOCK","state_locked":"LOCKED","state_topic":"zigbee2mqtt/Hobbykamer","state_unlocked":"UNLOCKED","unique_id":"0x5c0272fffec3c9af_child_lock_zigbee2mqtt","value_template":"{{ value_json.child_lock }}"}'

MQTT messages from device Put here examples of MQTT messages with different states you've received from device, as example

info  2020-11-30 13:36:49: MQTT publish: topic 'zigbee2mqtt/Hobbykamer', payload '{"anti_scaling":"ON","away_mode":"OFF","battery_low":"false","child_lock":"LOCKED","current_heating_setpoint":"16.0","frost_detection":"ON","last_seen":"2020-11-30T13:36:49+01:00","linkquality":111,"local_temperature":"21.8","local_temperature_calibration":0,"preset_mode":"Schedule","system_mode":"heat","window_detection":"ON"}'

MQTT state change commands If device supports state change put MQTT topics + payload examples to change device state here

stas-demydiuk commented 3 years ago

@SargonofAssyria, could you please check what is supported by the latest plugin version and report here what's missing.

SargonofAssyria commented 3 years ago

I checked, and the only thing that is missing is: 2021-01-18 09:49:42.390 Error: (Zigbee) Hobbykamer: can not process numeric item "local_temperature_calibration" 2021-01-18_09-57-20 It is not mentioned here: https://www.zigbee2mqtt.io/devices/SEA801-Zigbee_SEA802-Zigbee.html#saswell-sea801-zigbee%252Fsea802-zigbee

Log: info 2021-01-18 09:49:41: MQTT publish: topic 'zigbee2mqtt/Hobbykamer', payload '{"anti_scaling":"ON","away_mode":"OFF","battery_low":false,"child_lock":"LOCKED","current_heating_setpoint":"19.0","frost_detection":"ON","last_seen":"2021-01-18T09:44:00+01:00","local_temperature":"17.7","local_temperature_calibration":0,"preset_mode":"none","system_mode":"heat","window_detection":"ON"}'

stas-demydiuk commented 3 years ago

Awesome, we already have a ticket for that #541, so closing this one