grzegorz914 / homebridge-denon-tv

Homebridge plugin for Denon/Marantz AV Receivers, publish as independent external platform accessory.
MIT License
74 stars 15 forks source link

Question: device characteristic availability via shortcuts? #234

Open DonutEspresso opened 8 months ago

DonutEspresso commented 8 months ago

Is it possible to expose device state via shortcuts? I’m attempting to create automations based on which input is active, but only see the default characteristics exposed.

IMG_0072

grzegorz914 commented 8 months ago

What a characteristic You want to see?

DonutEspresso commented 8 months ago

I think the basics would be a good place to start with experimentation - like checking power state (maybe that's covered by active?) or being able to query or check against the current input source name.

grzegorz914 commented 8 months ago

Active is Power, Acrive Identifier are inputs

DonutEspresso commented 8 months ago

When I try this, it returns a number for me. Am I using it incorrectly?

image
grzegorz914 commented 8 months ago

Active Identifier return Number, Configured Name return String, all is correct.

DonutEspresso commented 8 months ago

Maybe I’m not using this correctly - but Configured name just returns the name of the device. I’m looking for the name of the currently active input as specified in the inputs setting.

IMG_0081

grzegorz914 commented 8 months ago

Configured Name is the name of accessory, inputs names are not available, you can use Active Identifier to identify the Inputs.

SawkeeReemo commented 2 weeks ago

FYI: I solved this by using custom sensors for inputs. Set each one as an occupancy sensor and that sensor will remain on the entire time you’re on that input. IMG_9808 IMG_9809