Skip to content
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

[BUG] Smoke detector TZE284_0zaf1cr8 battery_level and battery_low #3749

Closed
toms001 opened this issue Jan 22, 2025 · 5 comments · Fixed by #3768
Closed

[BUG] Smoke detector TZE284_0zaf1cr8 battery_level and battery_low #3749

toms001 opened this issue Jan 22, 2025 · 5 comments · Fixed by #3768

Comments

@toms001
Copy link

toms001 commented Jan 22, 2025

Bug description

The Nous E8 smoke detector TZE284_0zaf1cr8 can also output the battery level and the battery_level_low status.
https://nous.technology/share/uploads/source/E8/TZE284_0zaf1cr8.txt
So far, none of this has been recorded.

Steps to reproduce

.

Expected behavior

.

Screenshots/Video

Screenshots/Video

[Paste/upload your media here]

Device signature

Device signature
[Paste the device signature here]

Diagnostic information

Diagnostic information
[Paste the diagnostic information here]

Logs

Logs
[Paste the logs here]

Additional information

No response

@prairiesnpr
Copy link
Collaborator

prairiesnpr commented Jan 22, 2025

It's not currently exposed

.applies_to("_TZE284_0zaf1cr8", "TS0601")
If you can find the datapoints exposing them would be trivial.

@toms001
Copy link
Author

toms001 commented Jan 22, 2025

I may not know enough, but you can find the following in my link (nous-website):

       tuyaDatapoints: [
            [1, 'smoke', tuya.valueConverter.trueFalse0],  // Датчик дыма
            [14, 'battery_low', tuya.valueConverter.trueFalse0],  // �изкий зар�д батареи
            [15, 'battery', tuya.valueConverter.raw]  // Уровень зар�да батареи
        ],

@prairiesnpr
Copy link
Collaborator

What size and quantity of battery?

@prairiesnpr
Copy link
Collaborator

prairiesnpr commented Jan 22, 2025

What size and quantity of battery?

It should look like this, just use existing quirk and add this.

.tuya_binary_sensor(
        dp_id=14,
        attribute_name="battery_low",
        translation_key="battery_low",
        fallback_name="Battery low",
    )
.tuya_battery(dp_id=15, battery_type=BatterySize.CR123A, battery_qty=1)

@toms001
Copy link
Author

toms001 commented Jan 22, 2025

What size and quantity of battery?

1x CR123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants