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

Lgo44 hub v2 2024 07 updated 2024 09 #486

Open
wants to merge 30 commits into
base: dev
Choose a base branch
from

Conversation

LGO44
Copy link
Contributor

@LGO44 LGO44 commented Jul 8, 2024

add new features available with wiser Hub V2

@LGO44
Copy link
Contributor Author

LGO44 commented Jul 9, 2024

notes about the new features provided by the PR478 and 486
PR486.pdf

Add equipment attribute for smartplugs, heating actuators and Powertags
Add LTS for the smoke alrm devices
Issue 485 fix
Service Led Indicator not usefull
Create binary_sensor
Issue 461 : modification in helpers.py and sensor.py

Binary sensor: add binary sensor for equipment ( smartplugs, powertags)
@msp1974 msp1974 changed the base branch from master to dev September 7, 2024 11:17
V3.5.0 and V3.5.1
The binary_sensor.py is directly base on the switch.py, this allows to create easily binary sensors

In sensor.py update the zigbee data and the device _id for all the devices

Trys to create windowDoorSensor  an issue with the aioWiserHeatAPI
@LGO44 LGO44 changed the title Lgo44 hub v2 2024 07 Lgo44 hub v2 2024 07 updated 2024 09 Sep 10, 2024
@LGO44
Copy link
Contributor Author

LGO44 commented Sep 10, 2024

@msp1974 here are the last enhancement in my PR.
I have an issue in aioWiserHeatAIP wher I want to create WidowDoorsensor, If you have an idea it will be nice

I have created a binary_sensor.py file directly derived from your switch.py because it's very easy to add binary_sensors.

I hope that it's clear enough, if not feel free ta ask some more informations.

Wiser hub V2 2024 09.pdf

config_entry-wiser-04b54a69ee02ea23d613b96cb315965b (5).json

config_entry-wiser-01J42RWFRZPZCJ6R8ATHQBMXMW.json

@msp1974
Copy link
Collaborator

msp1974 commented Sep 11, 2024

This is great. I see it has some conflicts with current code, so let me look at this over the next week or so. Can you tell me more about your issue with windowdoor sensors. Is it because they dont seem to have a device type entry like all other devices?

Edit: oh, sorry see that they are binarysensor in the config as device type. Tell me more your issue.

@LGO44
Copy link
Contributor Author

LGO44 commented Sep 11, 2024

This is great. I see it has some conflicts with current code, so let me look at this over the next week or so. Can you tell me more about your issue with windowdoor sensors. Is it because they dont seem to have a device type entry like all other devices?

Edit: oh, sorry see that they are binarysensor in the config as device type. Tell me more your issue.

Thanks a lot to spend time to look at my code.

The issue on windowdoorsensor happen when I want to create these device by calling the code by "WindowDoorSensor": {..
or BinarySensor{..
the Wiser platform cannot be initialized an error in the coordinator.py is raised...

devices.py
"WindowDoor": {
"class": _WiserWindowDoor,
"collection": _WiserWindowDoorCollection,
"endpoint": WISERWINDOWDOOR,
"device_id_field": "DeviceId",
},
"BinarySensor": {
"class": _WiserBinarySensor,
"collection": _WiserBinarySensorCollection,
"endpoint": WISERBINARYSENSOR,
"device_id_field": "DeviceId",
},

@msp1974
Copy link
Collaborator

msp1974 commented Sep 11, 2024

Yes, been having a look and see the issue. Think I have it resolved but need to do some more testing.

Basic issue is that I think you are looking at it as a DoorWindow sensor and not a BinarySensor of type windowdoor. Think it needs to be like how we have OnOffLights and DimmableLights, ie they are both Lights but with different types.

I'll push this into the repo when happy with it and you can then try it out.

@LGO44
Copy link
Contributor Author

LGO44 commented Sep 11, 2024

@msp1974 Thanks for your help! I think I was temporally blind (paralympics games in Paris maybe).
Once more you win!

I have tested the dev branch of the aioWiserHeatAPI, I got immediately a windowdoorsensor
image

I adjust the attributes:

image

I will push the modifications in a PR

@msp1974
Copy link
Collaborator

msp1974 commented Oct 19, 2024

Hi Christian, so I have worked my way through this PR and added most of it to the current dev branch. Things not added yet/won't be added.

  1. I have not added the equipment sensors. I agree they need to be there but need more time to work through this.
  2. I have not added attributes to sensors where this information already exists on other entities.
  3. I have not added your fix for issue 461 because I think that is not the fix for this issue. Only deals with 1 entity and not the others. I will look into this with more time.

I intend to release the dev version tomorrow as it has some fixes in it people have been waiting for but also wanted to get some progress on this PR as you have also been waiting some time.

If you agree, I will then close this PR, but open issues for the outstanding pieces - eg Equipment sensors and you can log any issues you find in this next update.

@LGO44
Copy link
Contributor Author

LGO44 commented Oct 20, 2024

@msp1974 Thank you so much Mark.
My PR is a there to help you, of course I accept all your positive remarks.
I' ll test your dev branch and will restart my test based on the dev branch.

@msp1974 Hi Mark, thank you to take in account this PR
This PR is a proposition and of course all your remarks are welcome.
I agree that you close this PR.
I'm working on the capability off the hub to configure notification that can be enabled or not

  •      window or door
    
  •     over or under power notification for smartplugs and PTE
    

What should be the best way to work , create a new PR or create issue on the GitHub or anything else, it's just to find the best way for efficiency and ease of use?

The point 1 for me is a major enhancement of the Wiser offer.
The point 2 , feel free for that. Sometime I duplicate attributes because it seems to me that it precise the sensor.
The point 3 for issue 461 is a way I find to identify surely all the data coming from my 3 hub one V1 and 2 V2

I don't know if you heard that Schneider want to bring IA in home management, so Wiser will keep on growing...

Hi Christian, so I have worked my way through this PR and added most of it to the current dev branch. Things not added yet/won't be added.

  1. I have not added the equipment sensors. I agree they need to be there but need more time to work through this.
  2. I have not added attributes to sensors where this information already exists on other entities.
  3. I have not added your fix for issue 461 because I think that is not the fix for this issue. Only deals with 1 entity and not the others. I will look into this with more time.

I intend to release the dev version tomorrow as it has some fixes in it people have been waiting for but also wanted to get some progress on this PR as you have also been waiting some time.

If you agree, I will then close this PR, but open issues for the outstanding pieces - eg Equipment sensors and you can log any issues you find in this next update.

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.

2 participants