The base PR has finally made it through the review process and been merged.
Few weeks from there before you can use it but keep an eye out in coming releases. This one has been a long road and appreciate the offer of test hubs etc, unfortunately i would have no gen3 shades to test against anyway.
l still have some features to submit but the core functionality should be coming soon which is what most of you will care about.
My plan was to work on a BT version (without gen 3 hub) not on an replacement of the mentioned integration. Otherwise I would just have offered the author my help.
@Kingy444 Thank you so much for your effort on this! I was very excited to finally have my Gen 3 stuff pulled in to Home Assistant when I updated to 2024.3!
However… the win was a little short lived. Although all the other entities (the various number, button and sensor that get set up - like identify, velocity, battery,…) are working fine, all of the covers now say “This entity is no longer being provided by the hunterdouglas_powerview integration”. Any idea how I can help debug further?
The related system log error seems to be:
Error while setting up hunterdouglas_powerview platform for cover
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 350, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/src/homeassistant/homeassistant/components/hunterdouglas_powerview/cover.py", line 78, in async_setup_entry
coordinator.data.update_shade_position(shade.id, shade.current_position)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiopvapi/resources/shade.py", line 163, in current_position
position = self.raw_to_structured(self._raw_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiopvapi/resources/shade.py", line 337, in raw_to_structured
self.api_to_percent(position_data[position_key], position_key),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiopvapi/resources/shade.py", line 262, in api_to_percent
percent = self.position_limit((position / max_position_api) * 100)
~~~~~~~~~^~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Update here… I don’t know if this was the fix or it was coincidental, but I ran the “/gateway/swagger?enable=true” command on the gateway and reloaded the integration and now the covers are recognized again.
Looked at the 1st post in the thread, also clicked on your avitar here, didn’t see anything. But thank you. Found it and coffees bought. Hope everyone here contributes something.
This is not necessary. When I did the original port early last year I was able reset the hub, verify the swagger wasn’t responding and the API still functioned. Of course there has been updates since then…
To answer Kingy, there is no way to tell Swagger is enabled other then to try the Swagger endpoints (that I know of).
Hello everyone
I’m hoping someone can help me get my G3 linked to HomeKit. I’ve followed the instructions to connect the hub to HomeKit but I get an error message saying the setup code is incorrect. Have reset hub to factory settings, rebooted etc but still the same message. I was wondering if the setup code printed on the hub might be incorrect and went into Swagger to see if I could check the setup code but couldn’t find anything that provided that info.
Has anyone else had this issue?
I’m an amateur techie, the Swagger thing stretched me somewhat!
Many thanks
Betty
I upgraded to 2024.03 and was able to successfully connect to my gen 3 hubs with the integration, but the actual position of the blinds wasn’t exposed in Home Assistant. The signal strength entity was disabled out of the box for all the devices and shows valid data if I manually enable it.
I seemingly have no entities related to shade position or any way to control the position of the shade via Home Assistant.
My server core logs are showing the same error mentioned by in @mperone’s post above.
I’ve confirmed swagger=true is enabled and the swagger UI is responsive on port 3002 on my Gateway.
Ok, I just made one BLE integration for a BMS, as soon as I have my new shades and get startet with the integration, I’ll let you know. I guess, large parts of it will be similar between the vendors, we just need to figure out the detailed commands. I’ll ping you when ready.