-
Notifications
You must be signed in to change notification settings - Fork 36
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
HA isn't triggering the relay #37
Comments
An update - I did some testing with discovery and verbose logging in HA. Discovery is working fine and HA is still receiving status change messages. I've turned on debug logging for MQTT and can see the OPEN/CLOSE message going out but each Transmit is followed straight away by a Receive: 2020-02-04 22:39:29 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on homeassistant/cover/Garage/set: CLOSE I thought that was a bit odd so I killed main.py on the Pi, tried again and I STILL get the same messages! It appears that HA is sending the messages to itself?! |
@andystewart999
Are you seeing the Connected. . . message? If not then garageqtpi is not connecting to the broker and getting a response back. You should also see a listening . . . message for each door. If you're not connecting to the broker or you don't see at least one listening message. I would probably start by looking at the configuration in the yaml file (garageqtpi not HASS). |
Hi @bg1000 , thanks for the info. 1 - yep, haven't got the service running yet, for the initial testing I'm just running it locally so I can see the debug/console message. 2 - yep, I've gone through the code and noted all the connect/subscribe messages... and they AREN'T firing. Obviously either the callback isn't registering or the client isn't connecting. But I know it IS connected as events from the client (garage door opening) ARE being noted and registered on the HA server via MQTT. It's just one-way communication right now for some reason (client to HA) 3 - good suggestion, I think I've already tried that but I'll have another crack via the dev tools as soon as I can. So odd - obviously there's a connection but it's not 100% bi-directional! |
Hi - I've got a weird issue here.
Everything is set up fine, with discovery turned off. HA shows the Cover and if I open and close the garage door the 'state change' event fires and HA shows the appropriate state - so the MQTT comms are working OK.
However, if I click on any of the up/down/stop buttons on HA, nothing appears to be getting sent to the other Pi! For testing I'm running main.py interactively so I'd expect at least to see the 'connection' and 'listening' messages but they aren't coming up either.
Any thoughts about what's going on here? I'm running a fresh install of the latest version of HA on a Raspberry Pi 4, the remote Pi is a B+ running a late-ish version of Raspbian, and I'm using the latest version of your code.
Cheers,
Andy
The text was updated successfully, but these errors were encountered: