-
Notifications
You must be signed in to change notification settings - Fork 12
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
Integration does not support Phyn setups with Phyn Water Sensors #11
Comments
Also pasting what I wrote in #5: I don't think this integration works at all with a Phyn setup where it's more than just the Phyn Plus, that is, when the setup also includes Phyn water sensors. async_add_entities(entities) tries to add the same set of attributes in sensor.py and switch.py regardless of the device being a pp1/2 (the Phyn Plus) vs. a pw1 (water sensor). And here are the attributes taken from my logs: For a water sensor (PW1)
For the Phyn Plus itself (pp1 or pp2, example taken from pp1)
This probably means #5 and #11 (this issue) will need to be fixed together. |
Created #12 to fix this. I'll stack further changes in future to add the Water Sensors (pw1) to HA. |
Not sure if this repo is still actively maintained so I created a fork https://github.com/opq8/homeassistant-phyn/tree/development with this fix. Happy to merge everything back into here as needed. |
FYI, it looks like jordanruthe has the most active fork(s) so might want to submit PR there to if wish to collaborate and consolidate: https://github.com/jordanruthe/homeassistant-phyn -> https://github.com/jordanruthe/homeassistant-phyn/commits/dev/ https://github.com/jordanruthe/aiophyn -> https://github.com/jordanruthe/aiophyn/commits/dev/ |
After working around the issue in #10, I now hit an issue where I don't get my switches from the Integration.
Would anyone be able to help me out as to why it doesn't like _device_state["sov_status"] or _device_state["flow"]?
Is anyone else testing against a Phyn Plus 1st gen (pp1)? Or does everyone here have 2nd gens (pp2)? Could this also be the same issue I reported to @rsocko in #5 where having water sensors (pw1)'s is interfering with logic since the structure is different?
Error while setting up phyn platform for switch
Error adding entities for domain sensor with platform phyn
Error while setting up phyn platform for sensor
The text was updated successfully, but these errors were encountered: