-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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 wallswitch support to enocean #86461
Conversation
I propose a modification of the sensor.py file in order to add the recognition of PTM 210 or PTM 535 type sensors from enocean. I just tested on my raspberry pi 3 with the latest official Home assistant image https://community.home-assistant.io/t/enocean-rocker-switch-visible-in-log-but-cant-use-entity/492622
Hi Nivek-domo It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
Hey there @bdurrer, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
I propose a modification of the sensor.py file in order to add the recognition of PTM 210 or PTM 535 type sensors from enocean. I just tested on my raspberry pi 3 with the latest official Home assistant image https://community.home-assistant.io/t/enocean-rocker-switch-visible-in-log-but-cant-use-entity/492622 |
"""Update the internal state of the sensor.""" | ||
action = packet.data[1] | ||
|
||
if action == 0xF0: |
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.
This integration has existing code with protocol details that belong in a 3rd party library. We won't allow changes or additions that add more protocol details to the integration. The details need to be extracted to a 3rd party library published on PyPI first.
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.
Why the windows handle are integrate like this but not the wall switch??? they are in the same family (rorg f6). I am not the first user how would like to see it in the dashboard.
So i don't understand your answers.
i am new user of HA, so what is Pypi?
i just not understand your answer
Best regards
EnOcean_Equipment_Profiles_EEP_V2.6.2_public.pdf
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.
I tried to explain this above:
This integration has existing code with protocol details that belong in a 3rd party library. We won't allow changes or additions that add more protocol details to the integration.
The existing code is eg the window sensors you mention.
I'll close here now as a different approach is needed. Thanks for your willingness to contribute! |
Ah yes my apologies, again sorry I am a noob on HA and in python I had made this code in order to validate and I did not remove the codes for the windows. It was for the test. so if i write the end like this
` I think it's better like this I insist because one of our customers who buys our products works under HA. best regards |
No, all Enocean protocol details need to be extracted to a 3rd party library published in PyPI. Example: The integration should not need to know what The library should abstract the details into human readable objects and attributes. |
I propose a modification of the sensor.py file in order to add the recognition of PTM 210 or PTM 535 type sensors from enocean. I just tested on my raspberry pi 3 with the latest official Home assistant image https://community.home-assistant.io/t/enocean-rocker-switch-visible-in-log-but-cant-use-entity/492622
Breaking change
Proposed change
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: