How to get receiver status from Denon Plugin

I’m trying to write a scene script that will determine the status of my denon receiver (on or off) prior to powering off my zwave outlets. I know for switches I’ve used:

luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”, “Status”, 37)

but what would reference to get the status of my denon receiver?

Thx.

Depending, perhaps, on the version of the Denon plugin that you are using, then exactly this code should suffice. Have you tried it?

I use a scene triggered by “Device is Turned On” to set a virtual switch indicating the Denon status, rather than checking this directly - but only because I can easily display that in a remote application.

akbooer;

Excellent suggestion! I’ll give that a try! Thx!