smartechru / homebridge-relays

This Homebridge plugin controls 4 relays through Apple Home App.
MIT License
16 stars 13 forks source link

Wrong relay status #1

Closed dsbrar closed 3 years ago

dsbrar commented 6 years ago

Home application shows wrong status of the relay. when relay is on its shows off when we restart the home application on iphone or iwatch.

smartechru commented 6 years ago

Hello I updated some parts. PIN output was inverted. Please check again and let me know the result. Thanks.

dsbrar commented 6 years ago

now when we on the relay its gets off and when we off the relay its gets on. its inverted.

smartechru commented 6 years ago

I updated again. Please recheck again. image

If it's not working correctly, please modify the parts I highlighted. And please let me know the result. Thanks.

dsbrar commented 6 years ago

it same as in my first comment.

smartechru commented 6 years ago

Please explain in detail. I have no RPi now, so I can't test in my side.

dsbrar commented 6 years ago

when we on the relay it gets on and after restarting home app the status of relay in home application is off but relay is on.

smartechru commented 6 years ago

Did you only restart Home App without restarting Homebridge? If you only restart Home App, this can be happened.

dsbrar commented 6 years ago

only coming out from app and again going to app also cause this.

smartechru commented 6 years ago

Let me clarify about this issue.

  1. If you restart homebridge, I think in Home App, all relay accessories and mechanical relays are off.
  2. If you click relay accessory in Home App, the relay status is changed.
  3. In this status, if you restart your Home App, mechanical relay is off but in Home App relay accessory shows on.

I think this is the issue what you faced. Right?

dsbrar commented 6 years ago

yes

ChockymilK commented 6 years ago

Were you ever able to rectify this? iOS Home app Relay status matches the relay state. On = On, Off = Off If you close the Home app, and re-open, set states are inverted. App= On, Relay = Off

Botas1989 commented 5 years ago

Pls upload npm package, there is only version 0.0.1

smartechru commented 3 years ago

I've just updated the plugin and published it to npmjs store. https://www.npmjs.com/package/homebridge-relays