lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
131 stars 13 forks source link

Sleep Off auto vs sleep Off automatisation #26

Closed j3r3m067 closed 4 years ago

j3r3m067 commented 4 years ago

Hello, I installed your plugin previous week, but when my Apple TV sleep Off automatically, and I execute an automatisation script (that puts my Apple TV to sleep + more actions) the plugin turns the Apple TV back on. The script is based on the cache and not on the actual state of the device. Thanks

matcik890 commented 4 years ago

I have a similar problem. When you turn off apple tv, it turns on again, and the switch position in the home kit does not match the tv status.

lukasroegner commented 4 years ago

The On/Off switch for the Apple TV works by emulating remote keys.

On: press on TV button Off: long press on TV button, then press on select button

Automations trigger a change to the target state even if the device is already in the target state. I've published a new version (0.7.6) that prevents executing the the action if it is already in the target state. Please check whether this new version works for you.

j3r3m067 commented 4 years ago

The problem seems to be solved. I might be back in a few days to confirm it.

lukasroegner commented 4 years ago

Ok, feel free to reopen the issue!

j3r3m067 commented 4 years ago

The problem is reproducible again, did you change something?