Denon plugin action via Python

Posted on
Sat May 06, 2023 5:25 pm
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Denon plugin action via Python

Hi,

I am trying to execute a Denon plugin action via Python. So far I figured out this:

Code: Select all
DenonPlugin = indigo.server.getPlugin('org.cynic.indigo.denon-av')
if DenonPlugin.isEnabled():
   DenonProps = {'source': 'CD'} 
   DenonPlugin.executeAction('set_source', props=DenonProps)


But when I try to run it I get:

Code: Select all
   Cynical Denon Error             no method "set_source" for action "plugin action"


Any ideas?

Posted on
Sat May 06, 2023 5:35 pm
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Re: Denon plugin action via Python

Never mind, I figured it out: :mrgreen:

Code: Select all
DenonPlugin = indigo.server.getPlugin('org.cynic.indigo.denon-av')
if DenonPlugin.isEnabled():
   DenonProps = {'value': 'CD'} 
   DenonPlugin.executeAction('set_source', deviceId=yourdenon_device_id, props=DenonProps)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 10 guests