Open pete1019 opened 1 year ago
Can you share the full code of your quirk?
Which quirk have you tried?
This one: class TuyaTempHumiditySensorVar03(CustomDevice)
This has Humidity, Temperature and Battery but UNKNOWN values. No Time and no Date.
Can you try this?
You added this everywhere: should only be there once, huh? ("_TZE200_cirvgep4", "TS0601"),
Correct but only to see which quirk was getting used by the device. Once I knew which quirk was used, I removed the others.
Good but think you only got lucky and it always uses the last entry.
ZHA is reading the quirks from top to bottom and if its match one device class its stopping and using that class.
ZHA is reading the quirks from top to bottom and if its match one device class its stopping and using that class.
thanks, still everything UNKNOWN. And no Time and Date update. What can i do?
You did a restart of HA? As it still reads the old quirk? Or am I mistaken?
I tried yours but there was nothing but VOC Sensor which i dont have.
Enable the debug logs (with the quirk applied) and attach them. Usually the logs after putting battery on the device gives most of the relevant info.
Enable the debug logs (with the quirk applied) and attach them. Usually the logs after putting battery on the device gives most of the relevant info.
Here is the log:
We need the logs just after these, once device is initialized, it would send a status report with values. I also would expect the time synchronization command. Maybe this device needs some Tuya magic.
@javicalle Where I see and save the debug log now for you? Thanks!
Diagnostics file here:
Sorry, the links has expired. Can you post the logs here like you have done with the diagnostic info?
@javicalle File was too big.
here it is: home-assistant (3) (1).log
I can't see any report from device. Have you tried to remove the device, wait a couple of minutes and pair the device again? Check in the logs for logs like this ones:
[zigpy.zcl] [0xE518:1:0xef00] Received ZCL frame:
That ones will be Tuya reports from your device. Any information from that reports will be relevant.
I have this same device, how can I help to implement it?
So far I have seen this https://github.com/Koenkk/zigbee2mqtt/issues/17008
I can confirm that the following quirk works for me for the device _TZE200_cirvgep4 : https://github.com/zigpy/zha-device-handlers/files/10940201/ts0601_temperature.zip The device identification must be added to the file TS0601, _TZE200_cirvgep4
Temperature and humidity are displayed correctly. Battery not available. After connecting, you need to wait a few minutes - then the date and time will be updated and the temperature and humidity will begin to be transmitted. The transfer lasts until you press the backlight button. Then the signal symbol starts flashing and the transmission is interrupted.
It would be great if someone could solve this problem.
I can confirm this, including the problem with the button being pressed. It is quite tricky to connect the cirvgep4, but once running the connection is stable - until the button is pressed. As soon as this is done, the connection is broken, and you need to remove/re-add the device again. So yes, this problem really needs to be solved. I do not quite understand how this works with other Zigbee devices - presumably the device needs to KNOW it is already paired, and not enter in another 'searching' state again.
I can confirm that the following quirk works for me for the device _TZE200_cirvgep4 : https://github.com/zigpy/zha-device-handlers/files/10940201/ts0601_temperature.zip The device identification must be added to the file TS0601, _TZE200_cirvgep4
Temperature and humidity are displayed correctly. Battery not available. After connecting, you need to wait a few minutes - then the date and time will be updated and the temperature and humidity will begin to be transmitted. The transfer lasts until you press the backlight button. Then the signal symbol starts flashing and the transmission is interrupted.
It would be great if someone could solve this problem.
Hi, can you please help me setting that custom quirk, it's the first time I do it.
I have added to config.yaml
zha:
enable_quirks: true
custom_quirks_path: /mnt/dietpi_userdata/homeassistant/config/custom_zha_quirks/
Then I added the file you attached to that new created folder, and then I restarted HA, but nothing happen. I re-add the sensor again, but no reporting, or update.
I don`t know where to do what you say here:
The device identification must be added to the file TS0601, _TZE200cirvgep4 EDIT: Ok, found it!
If it helps to others:
Replace line 157 with this.
MODELS_INFO: [("_TZE200_locansqn", "TS0601"), ("_TZE200_cirvgep4", "TS0601")],
Thank you!
I can confirm that the following quirk works for me for the device _TZE200_cirvgep4 : https://github.com/zigpy/zha-device-handlers/files/10940201/ts0601_temperature.zip The device identification must be added to the file TS0601, _TZE200_cirvgep4
Temperature and humidity are displayed correctly. Battery not available. After connecting, you need to wait a few minutes - then the date and time will be updated and the temperature and humidity will begin to be transmitted. The transfer lasts until you press the backlight button. Then the signal symbol starts flashing and the transmission is interrupted.
It would be great if someone could solve this problem.
Thanks! That quirk works after device identification is added to the file, but it seems like the clock is set to UTC time. Is this a Home Assistant issue?
I feel like a total noob, but I just got this device delivered by the mail, I've got the official Home Assistant USB Zigbee stick, what can I do to add this device in my instance? Any help would be appreciated. Thanks.
I feel like a total noob, but I just got this device delivered by the mail, I've got the official Home Assistant USB Zigbee stick, what can I do to add this device in my instance? Any help would be appreciated. Thanks.
Don't worry, it's the whole system that's not really user-friendly. Honestly, you could use a custom quirk to make this device appear in HA but in all the months that I have had, it never quite worked fine. Most of the time it misbehaves, loses connection with ZHA, stops reporting a value, or simply won't pair at all. I ended up using it as an overpriced paperweight, a testament to reminding myself to never assume "it will work with HA" and in general with Zigbee accessories, whether they are cheap or not.
This quirk is only partially functional. The battery level display does not work for me. I have no idea how it will behave after pressing the button and I have no idea if the time will be adjusted correctly. But still, great job! Thanks
After three months of use, I can confirm that the temperature and humidity are transmitted correctly, the date and time are kept accurately. I haven't had a single signal outage since the first connection. It is necessary to avoid pressing the button, which will cause the connection to be disconnected. I have two of these thermometers.
After three months of use, I can confirm that the temperature and humidity are transmitted correctly, the date and time are kept accurately. I haven't had a single signal outage since the first connection. It is necessary to avoid pressing the button, which will cause the connection to be disconnected. I have two of these thermometers.
Can you point me to some step-by-step guide how to include these "quirks" or whatever is that you use in order to integrate the sensor to my HA instance? I don't know where to start from really.
After three months of use, I can confirm that the temperature and humidity are transmitted correctly, the date and time are kept accurately. I haven't had a single signal outage since the first connection. It is necessary to avoid pressing the button, which will cause the connection to be disconnected. I have two of these thermometers.
Can you point me to some step-by-step guide how to include these "quirks" or whatever is that you use in order to integrate the sensor to my HA instance? I don't know where to start from really.
After three months of use, I can confirm that the temperature and humidity are transmitted correctly, the date and time are kept accurately. I haven't had a single signal outage since the first connection. It is necessary to avoid pressing the button, which will cause the connection to be disconnected. I have two of these thermometers.
Can you point me to some step-by-step guide how to include these "quirks" or whatever is that you use in order to integrate the sensor to my HA instance? I don't know where to start from really.
1. On HA create directory like /config/custom_zha_quirks/ 2. Download this zip file https://github.com/zigpy/zha-device-handlers/files/10940201/ts0601_temperature.zip 3. Unzip and edit file ts0601_temperature.py Replace line 157 with this. MODELS_INFO: [("_TZE200_locansqn", "TS0601"), ("_TZE200_cirvgep4", "TS0601")], 4. Copy edited ts0601_temperature.py into HA in directory/config/custom_zha_quirks/ 5. Add this lines into Configuration.yaml file: zha: enable_quirks: true custom_quirks_path: /config/custom_zha_quirks/ 6. Restart HA 7. Pair thermometer in the usual way 8. After connecting, you need to wait a few minutes - then the date and time will be updated and the temperature and humidity will begin to be transmitted. 9. Avoid pressing the button on thermometer!
Someone should frame this post, thank you so much!
The quirk worked like a charm - data & time synced in under 10 seconds from pairing the device.
After three months of use, I can confirm that the temperature and humidity are transmitted correctly, the date and time are kept accurately. I haven't had a single signal outage since the first connection. It is necessary to avoid pressing the button, which will cause the connection to be disconnected. I have two of these thermometers.
Can you point me to some step-by-step guide how to include these "quirks" or whatever is that you use in order to integrate the sensor to my HA instance? I don't know where to start from really.
- On HA create directory like /config/custom_zha_quirks/
- Download this zip file https://github.com/zigpy/zha-device-handlers/files/10940201/ts0601_temperature.zip
- Unzip and edit file ts0601_temperature.py Replace line 157 with this. MODELS_INFO: [("_TZE200_locansqn", "TS0601"), ("_TZE200_cirvgep4", "TS0601")],
- Copy edited ts0601_temperature.py into HA in directory/config/custom_zha_quirks/
- Add this lines into Configuration.yaml file: zha: enable_quirks: true custom_quirks_path: /config/custom_zha_quirks/
- Restart HA
- Pair thermometer in the usual way
- After connecting, you need to wait a few minutes - then the date and time will be updated and the temperature and humidity will begin to be transmitted.
- Avoid pressing the button on thermometer!
Thanks, it also works for me. However, any idea how I can set the timezone for the device? My HA do have timezone configured to local tz, but my linux server tz is set to UTC. The device now shows UTC.
Update: Actually, only time sync works for me. Temp and Humidity report not available, even though every 30 minutes, the device does check-in successfully.
Got this device as a present and going to try this quirk today. But I already saw the temperature is 0,5 degrees too high, compared to 2 other thermometers. Can this be adjusted?
I'm testing the PR: https://github.com/zigpy/zha-device-handlers/pull/3036
There is also this repository but there are some issues with the battery and the firmware version : https://github.com/jojo01fr/TS0601-by-_TZE200_cirvgep4-Quirk/tree/main
is there something new? up to now i got all my devices working with zha. but this never sends data.
after hours of searching i found a working sollution: https://github.com/jacekk015/zha_quirks/blob/main/ts0601_temphumid.py no battery but temp, huminity, clock and date in seconds!
On my side, I decided to switch to Z2M but it's not linked to this issue, it's mainly for OTA update of the device firmware.
after hours of searching i found a working sollution: https://github.com/jacekk015/zha_quirks/blob/main/ts0601_temphumid.py no battery but temp, huminity, clock and date in seconds!
This quirk works here too. But, it took a while for it to sync up or so, after that, date/time were displayed and temp/humidity values received regularly.
TS0601 by _TZE200_cirvgep4
No Humidity, Temperature or Battery Time and Date not updating either.
This had Humidity, Temperature or Battery but UNKNOWN value: https://github.com/zigpy/zha-device-handlers/issues/1944#issuecomment-1486634014
Signature 1 before:
Diagnostic information
```yaml { "node_descriptor": "NodeDescriptor(logical_type=Signature 2 after:
Diagnostic information
```yaml { "node_descriptor": "NodeDescriptor(logical_type=