nicoduj / homebridge-harmony

Harmony websocket plugin for homebridge
The Unlicense
211 stars 22 forks source link

[FEATURE]Publish a device as a sensor to indicate if it is on/off. #437

Open maisun opened 5 months ago

maisun commented 5 months ago

Is your feature request related to a problem? Please describe. No it's not related to a problem.

Describe the solution you'd like Publish a sensor for accessory instead of switch so user cannot control the device by switching on/off. The current switch doesn't seem to be in sync the state with current Activity, maybe a limitation of Harmony. For example when I turn on Watch Movie activity, the projector switch stays off.

Describe alternatives you've considered Ideally we can check the current running activity, however HomeKit doesn't support automation that checks the input of TV device.

Additional context I'd like to automation rules that is based on ON/OFF state of a device (projector).

maisun commented 5 months ago

Alternatively, it would be nice to expose a sensor to indicate if an activity is On or Off (when it's configured as a TV). I think this could work better to remove the need of exposing individual accessories