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

Add Heiman HS80S-TY - Tuya _TZ6210_duv6fhwt #3688

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

prairiesnpr
Copy link
Contributor

@prairiesnpr prairiesnpr commented Jan 8, 2025

Proposed change

Adds Heiman HS80S-TY (_TZ6210_duv6fhwt)

Additional information

Closes: #3599

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.85%. Comparing base (8124411) to head (2ba9c1b).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #3688   +/-   ##
=======================================
  Coverage   89.85%   89.85%           
=======================================
  Files         322      322           
  Lines       10379    10382    +3     
=======================================
+ Hits         9326     9329    +3     
  Misses       1053     1053           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Vaarinvaliliha
Copy link

Hi, thanks for this!

Tried for several hours now and don't know how to proceed anymore :(

"quirk_applied": false,
image

image

image

@Vaarinvaliliha
Copy link

Hi, thanks for this!

Tried for several hours now and don't know how to proceed anymore :(

"quirk_applied": false, image

image

image

image

@prairiesnpr
Copy link
Contributor Author

Please ensure you are on the latest version of Home Assistant and that in your custom quirk, you delete lines 71-312.

Also, do you have other custom quirks that do work?

@Vaarinvaliliha
Copy link

This is the 1st that I'm trying to make work.

HA is the newest version.

These lines do not need to be anywhere?
image

@prairiesnpr
Copy link
Contributor Author

No, you don't need those.

@petr-dolin
Copy link

Hello, thanks for the tip to try this trick - it works.
I bought the Heimen HS80S-TY sensor because it also has the ability to measure light intensity and is also supposed to provide information about motion detection and notifications in real time. Would it be possible to add these other entities as well? Thank you

@prairiesnpr
Copy link
Contributor Author

Would it be possible to add these other entities as well?

I missed a line, please add .adds(TuyaIlluminanceCluster) above skip_configuration().

For the rest, we need the rest of the Data Points, so really need someone to join it to a Tuya hub and capture the rest.

@petr-dolin
Copy link

I missed a line, please add .adds(TuyaIlluminanceCluster) above skip_configuration().
For the rest, we need the rest of the Data Points, so really need someone to join it to a Tuya hub and capture the rest.

Thank's a lot, now it measures light intensity!
I have a question about 2 things:

  1. What does the distance switch entity do (should do)?
  2. How exactly does the Presence entity work? It seems to me that it detects that someone is present, but then it no longer detects that the person has left - the entity does not change state.
    Or is there a description of the individual entities and settings?

The light intensity measurement works perfectly, just move the sensor closer and further away from the light and the value changes immediately.

Anyway, thank you - great work.

@Vaarinvaliliha
Copy link

Any help with these?

image

image

@prairiesnpr
Copy link
Contributor Author

@Vaarinvaliliha that's exactly what we need, please run the script at https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html and post the results

@Vaarinvaliliha
Copy link

{"1":"Induction state","101":"Illuminance Value","102":"Indicator","103":"Tamper Alarm","104":"Motionless Detection Sensitivity","105":"Presence Time"}

@prairiesnpr
Copy link
Contributor Author

Interesting, so the same as what we have, thought we were missing some. Thanks for checking.

@prairiesnpr
Copy link
Contributor Author

prairiesnpr commented Jan 9, 2025

  • What does the distance switch entity do (should do)?
    I didn't add a distance switch, just a find switch, which should turn on an LED.
  • How exactly does the Presence entity work? It seems to me that it detects that someone is present, but then it no longer detects that the person has left - the entity does not change state.

I updated the two number entities based on @Vaarinvaliliha screenshots. I would take Presence time to set how long it holds the presence value, 1-30 minutes. And motion detection is likely used to limit false positives from fans and similar. You will need to find documentation or experimentally determine to be sure, I don't have any of these devices.

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 this pull request may close these issues.

Heiman HS80S motion sensor
3 participants