-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Tuya CO2 sensor _TZE200_3ejwxpmu
#3023
Conversation
Link to Amazon (German): https://www.amazon.de/-/en/Detector-Quality-Detects-Temperature-Humidity/dp/B0BN66C263/ref=sr_1_15?crid=3MUBZEIE60NO2&dib=eyJ2IjoiMSJ9.6d4lrKBQtHphFxK7zUt3DdTm_Ubeway0SCqBwe3N9VmOUbwtfoUaBY7EYIElgGet79JXVL4wZKnuB53bVBUxGPxwkw_SHIpzcpDgPUO3sJFhExDSRXtiOsjVjk4eeAYlb7U_HJCzSO7Kl7OL_VvA7oEOXMynBcX72RLMVhJYtWoErYZEe5z_QZAwyscwo_tGkJWOC_X7iFUsyQRgApKy3uk3MruyIwKLgHaCWWEF5Dg.qOA81PqXb7m3qyBNe2kMmhalpioOETFOnR-BQut724g&dib_tag=se&keywords=Tuya+Smart+Zigbee+CO2+Detector+Air+Quality&qid=1709683021&s=diy&sprefix=tuya+smart+zigbee+co2+detector+air+quality%2Cdiy%2C136&sr=1-15 As the existing class TuyaNDIRCO2SensorGPP worked but did not have all sensors, I copied the entire class and added Temperature and Humidity sensors, and pasted the signature. Issues I have: - I am unsure about the device version and `SizePrefixedSimpleDescriptor` as I could not find it in the signature or the diagnostic information. I left it as is. - I do not know how to name this properly; hence suffix of `2` This fixes zigpy#2303
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3023 +/- ##
=======================================
Coverage 87.85% 87.86%
=======================================
Files 301 301
Lines 9217 9220 +3
=======================================
+ Hits 8098 8101 +3
Misses 1119 1119 ☔ View full report in Codecov by Sentry. |
Yeah, it's still from the time when this info was grabbed via logs, as ZHA couldn't show the signature in the UI back then. It doesn't really matter. |
_TZE200_3ejwxpmu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thank you! |
Link to Amazon (German):
https://www.amazon.de/-/en/Detector-Quality-Detects-Temperature-Humidity/dp/B0BN66C263/ref=sr_1_15?crid=3MUBZEIE60NO2&dib=eyJ2IjoiMSJ9.6d4lrKBQtHphFxK7zUt3DdTm_Ubeway0SCqBwe3N9VmOUbwtfoUaBY7EYIElgGet79JXVL4wZKnuB53bVBUxGPxwkw_SHIpzcpDgPUO3sJFhExDSRXtiOsjVjk4eeAYlb7U_HJCzSO7Kl7OL_VvA7oEOXMynBcX72RLMVhJYtWoErYZEe5z_QZAwyscwo_tGkJWOC_X7iFUsyQRgApKy3uk3MruyIwKLgHaCWWEF5Dg.qOA81PqXb7m3qyBNe2kMmhalpioOETFOnR-BQut724g&dib_tag=se&keywords=Tuya+Smart+Zigbee+CO2+Detector+Air+Quality&qid=1709683021&s=diy&sprefix=tuya+smart+zigbee+co2+detector+air+quality%2Cdiy%2C136&sr=1-15
As the existing class TuyaNDIRCO2SensorGPP worked but did not have all
sensors, I copied the entire class and added Temperature and Humidity
sensors, and pasted the signature.
Issues I have:
SizePrefixedSimpleDescriptor
as I could not find it in the signatureor the diagnostic information. I left it as is.
2
This fixes #2303
Device signature
Diagnostic information