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

Garage door commands should respect current state #14

Closed Curvin777 closed 6 years ago

Curvin777 commented 6 years ago

Hi!

I am wondering if I might have something setup incorrectly, or if it's just how this works currently. If I publish:

mosquitto_pub -h 192.168.1.100 -t home-assistant/cover/set -m "CLOSE"

If the door is open, it closes. However, if the door is closed, it will open. GarageQTPi's main.py appears to correctly identify the garage door as being open or closed (based on the reed sensor / pins). So it seems like it's not respecting the command and is instead acting like:

mosquitto_pub -h 102.168.1.100 -t home-assistant/cover/set -m "TOGGLE"

Do I have something misconfigured, or is this how it is currently setup?

Thank you! -Chad

jerrod-lankford commented 6 years ago

Nope thats currently how its coded. I need to respect the current state of the pin i just haven't added that in.

jerrod-lankford commented 6 years ago

I'll leave this issue open and hopefully can address this soon when I get some free time.