arteck / ioBroker.zigbee2mqtt

Adapter for Zigbee2MQTT integration
MIT License
25 stars 14 forks source link

[Device problem]: Device joined Z2M but is not available in IOBROKER #342

Closed HaggardFFM closed 4 months ago

HaggardFFM commented 5 months ago

Link

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

Adapter version

2.13.7 Z2M Version 1.37.0

What is missing or not working

I got an error when I try to join a Saswell SEA801 Thermostitic radiator valve to z2m. In z2m it is correctly displayed, but not in Iobroker. Error: Cannot check file existence of "cfg.f.zigbee2mqtt.0$%$w7cahqs.png$%$data": Error Cannot check file existence of "/opt/iobroker/iobroker-data/files/zigbee2mqtt.0/w7cahqs.png": The argument 'path' must be a string or Uint8Array without null bytes. Received '/opt/iobroker/iobroker-data/files/zigbee2mqtt.0/w7cahqs\x00.png'

Warn: Cannot 0x60a423fffeb5ba3e create Device from Exposes!

Device exposes

-->>> fromZ2M -> 0x60a423fffeb5ba3e exposes: {"date_code":"20180727","definition":{"description":"Thermostatic radiator valve","exposes":[{"access":1,"category":"diagnostic","description":"Indicates if the battery of this device is almost empty","label":"Battery low","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"features":[{"access":3,"description":"Enables/disables window detection on the device","label":"State","name":"state","property":"window_detection","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"}],"label":"Window detection","type":"switch"},{"features":[{"access":3,"description":"Enables/disables physical input on the device","label":"State","name":"state","property":"child_lock","type":"binary","value_off":"UNLOCK","value_on":"LOCK"}],"label":"Child lock","type":"lock"},{"features":[{"access":3,"description":"Enable/disable away mode","label":"State","name":"state","property":"away_mode","type":"binary","value_off":"OFF","value_on":"ON"}],"label":"Away mode","type":"switch"},{"access":1,"description":"Device valve is open or closed (heating or not)","label":"Heating","name":"heating","property":"heating","type":"binary","value_off":"OFF","value_on":"ON"},{"features":[{"access":3,"description":"Temperature setpoint","label":"Current heating setpoint","name":"current_heating_setpoint","property":"current_heating_setpoint","type":"numeric","unit":"°C","value_max":30,"value_min":5,"value_step":0.5},{"access":1,"description":"Current temperature measured on the device","label":"Local temperature","name":"local_temperature","property":"local_temperature","type":"numeric","unit":"°C"},{"access":3,"description":"Mode of this device","label":"System mode","name":"system_mode","property":"system_mode","type":"enum","values":["off","heat","auto"]},{"access":3,"description":"Offset to add/subtract to the local temperature","label":"Local temperature calibration","name":"local_temperature_calibration","property":"local_temperature_calibration","type":"numeric","unit":"°C","value_max":6,"value_min":-6,"value_step":1}],"type":"climate"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"SEA801-Zigbee/SEA802-Zigbee","options":[{"access":2,"description":"Set to false to disable the legacy integration (highly recommended), will change structure of the published payload (default true).","label":"Legacy","name":"legacy","property":"legacy","type":"binary","value_off":false,"value_on":true}],"supports_ota":false,"vendor":"Saswell"},"disabled":false,"endpoints":{"1":{"bindings":[{"cluster":"genBasic","target":{"endpoint":1,"ieee_address":"0x00124b002a926276","type":"endpoint"}}],"clusters":{"input":["genBasic","genIdentify"],"output":["genIdentify","genOta"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"0x60a423fffeb5ba3e","ieee_address":"0x60a423fffeb5ba3e","interview_completed":true,"interviewing":false,"manufacturer":"_TYST11_yw7cahqs","model_id":"w7cahqs\u0000","network_address":3950,"power_source":"Battery","supported":true,"type":"EndDevice"}
HaggardFFM commented 5 months ago

Device will join correctly if the Device Images are not downloaded from Zigbee2MQTT. I think there is an error in the adapter for getting the right images. Thanks

arteck commented 4 months ago

check now with GIT version

HaggardFFM commented 4 months ago

I tested it in my debug enviroment,. now it works. Thanks for your help.