jerrod-lankford / GarageQTPi

An MQTT server for a raspberry pi garage door opener. Most commonly used as a HomeAssistant cover component.
MIT License
75 stars 36 forks source link

The door would not open or close. #10

Closed onlize closed 7 years ago

onlize commented 7 years ago

I have a problem when relay that opens the garage door does not change. I run multiple tests and, as far as I can see, my pin 23 does not change the status when I try to open/close the door. It always has 3.5V. It starts as soon as I start the program.

I see this when I try to open/close door from Home Assistant. I also move sensor to change the status: capture

This is my config.yaml file: capture

This is the entry for this program in configuration.yaml file in Home Assistant: capture

Can you please help?

Thank you.

jerrod-lankford commented 7 years ago

Are you sure the comments are getting published to the topic? Also can you post the logs from GarageQTPi and Home assistant?

onlize commented 7 years ago

I believe everything is published the way it should. When I started, I had some additional issues, but I resolved them, so I removed some text.

Where can I get those logs?

Thank you.

jerrod-lankford commented 7 years ago

Well you can just post a screen cap of the terminal for garage qt pi. The home assistant log will depend on how its installed. Min is in /var/opt/home-assistant/home-assistant.log

onlize commented 7 years ago

I cannot find home-assistant.log file, but this is the terminal screenshot from garage qt pi: capture

Thank you.

jerrod-lankford commented 7 years ago

I see a warning at the top about the gpio pin being in use. Can you try restarting the pi and rerunning the program?

onlize commented 7 years ago

I restarted and run it multiple times. I always have this warning and the same behavior..

As soon as I run the program, this pin start giving voltage. It does not happen until I start the program. The only way for me to stop it, is to reboot the RPi. Even if I try Ctrl+C to stop the program, it would not release the pin. I have to restart.

Thank you.

onlize commented 7 years ago

It seems that the pin actually disconnect the voltage for short period of time if relay is not connected. If relay is connected, the voltage does not change. Does it mean that I have a bad relay? What do you think?

This is a single channel relay and I just purchased it.

Thank you.

onlize commented 7 years ago

I confirmed that it was the relay. Thank you for your help.