steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

Support for Switch with autoupdate="false" #56

Open gdolfen opened 4 years ago

gdolfen commented 4 years ago

Hello, I have configuered a Switch in OpenHAB with autoupdate="false" for my garage door, because it doesn't support ON/OFF. So my item never has a state and the value always remains null. Here is my item definition: Switch Garage_Door "Garage" (Garage) { autoupdate="false", channel="rfxcom:lighting2:usb0:garage:command" }

Pehrhaps this is a use case for a Stateless Programmable Switch. Can you please add support for it?

Thanks & greets Guido

steilerDev commented 4 years ago

I won't come around implementing this soon, but I will keep this issue open, when I find the time.

In the meantime you could workaround this through openHAB, define a proxy item for your garage door as a switch and store the state depending on the last command send to the item.