First I worked out the log I need to be looking at is in config/home-assistant.log.
I’ve also found that the hub connection problem is aiopulse2.Hub, function test() throwing an exception saying it cannot connect to the hub. I determined this by placing logger statements into the Automate-Pulse-v2 Python code.
I’d like to pursue this further by placing similar statements into the aiopulse2 code but I’m unable to find the code in the Home Assistant system.
How does Home Assistant “take care of” installing aiopulse2? Where is the aiopulse2 code located in the system?
@tallcuss - that’s the URL for their RPC (API) end point (at least at the time of inspecting the traffic). Web sockets are also at URL’s, and start with an HTTP connection that’s then upgraded to a websocket stream.
Another small step: This code snippet runs fine with my Pulse 2 Hub
import socket
HOST = '192.168.1.100' # hub address
PORT = 1487 # port
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))
s.sendall(b'!000NAME?;')
data = s.recv(1024)
print('Received', data.decode("utf-8"))
Producing the output
Received !000NAMEdefault;
Meanwhile I’ve found that when using the Automate Pulse 2 Hub Integration the code get stuck when attempting to connect to my hub, i.e. aiopulse2, device.py, line 361
async with websockets.connect(self.wsuri, ssl=ssl_context) as websocket:
I got a replacement Pulse 2 Hub from the dealer, plugged it in, did the phone Automate Pulse 2 app thing and then attempted to add the Automate Pulse Hub v2 Integration to Home Assistant. It worked! I am now able to see all my blinds and move them via Home Assistant. So it was a hardware problem!
@sumur1au It has been designed to support multiple instances, however I have not actually tested it as I only have one hub. If you have any issues, please open a ticket on GitHub and we can work through it.
PS: This has just been accepted into HA dev - however it’s very limited with no sensors etc. I’m going to work on getting a PR for the sensors shortly. Currently the HASS version is more comprehensive (and what I use).
Although quite an old question now… I can confirm it does work with multiple hubs. My main issue is sometimes blinds become unavailable. Normally they either turn up by themselves, or cycling them via the remote kicks them back into life.
I would imagine this is an issue with the hubs + app more than an issue with the integration however. I’ve always found the app to be horrific and the hubs to be temperamental.
When they become unavailable are they still available in the app? Most of the time they went unavailable to me it was usually because of range issues. I found an alternate location for the hub which works well for me, but I believe there are range extenders available.
I haven’t checked for a while to be honest. I haven’t used the outdoor blinds in a while due to winter and not going outside. Today I thought I’d set them up to automatically close when the wind speed was higher than 40km/h and noticed 2 / 4 were not available. After manually opening and closing them with the remote they were available again.
I’ll have a check next time they disappear, but the two blinds that were disconnected report as excellent and good signal on the app now. Again, I suspect it has nothing to do with the integration or home assistant… maybe they disconnect to save power after not being used for a while (the outdoor ones are 240v so that doesn’t bother me)… I could get them to cycle once a week or something to keep them going. But I’ll keep an eye on it from now and report back. My indoor ones are getting used twice a day at least so they never seem to have the issue. Or if I notice one hasn’t opened / closed by the time I check the app they have reconnected and they work by the next automation or if I manually trigger them in HA.
edit: can confirm, when blinds are offline in HA they are offline in the app. A quick use of the remote and it reconnects to the hub and HA
@sillyfrog amazing addon… have recently had some motorised shades installed on our balcony… have setup your integration in HA tonight and working great
Not sure if those posting the issue followed up or helped debug. It’s hard to do if you don’t actually have the devices. There might be some opportunities to use aiopulse2 to debug the output for the curtains
Install aiopulse2 on a device using pip, then using the demo.py file, set the log level to debug, connect to the hub and check what output is reported.