![]() I think i can change this by SendLevel = NewLevel The only thing i dont understand is the code: So i am lost, how can i receive the correct (25.0) output on my virtual device (IDX=80) The denon is using absolute, which i can also see on the webpage from " Īnd also retrieve "absolute" from using code from denon.sh I have an RPI, denon avr-x2000, and the denon.sh script in my /home/pi/domoticz/scripts location.Īlso configured these settings in denon.shĭENON_STATUS_IDX="81" # Status (Text) IDXĭENON_MUTE_IDX="80" # Absolute Volume (Slider) IDX (same as Absolute Volume)ĭENON_VOL_REL_IDX="82" # Relative Volume (Sound Volume) IDXĭENON_VOL_ABS_IDX="80" # Absolute Volume (Slider) IDXīut as you can see on the screenshot, i get these outputs on my switches: ![]() Maybe somebody can help me out, because i cant seem to find the solution. The document tree is shown below.įorgot to add the dummy device list and the settings in the script for comparison ->įirstoff -> Thank you to everybody creating awesome things, and trixwood for denon.sh that's really all I can guess.Ĭode: Select all This XML file does not appear to have any style information associated with it. It seems as the defaulting function is not running properly. No settings are updated except for the Text Switch that get's the "No denon detected" tag. + curl -s -i -H Accept: application/json :~/domoticz/scripts $ HTTP/1.1 200 OKĬontent-Type: application/json charset=UTF-8 :~/domoticz/scripts $ sudo sh -x denon.shĭenon.sh: 45: denon.sh: function: not foundĬurl -sdenon.sh: 90: denon.sh: Syntax error: "fi" unexpected (expecting "then") Hope this helps Select all :~/domoticz/scripts $ ls -l denon.sh '')ĬommandArray = otherdevices_idx.'|1|'.TUNERLevelValue '')ĬommandArray = otherdevices_idx.'|1|'.SATLevelValue '')ĬommandArray = otherdevices_idx.'|1|'.BDLevelValue '')ĬommandArray = otherdevices_idx.'|1|'.GAMELevelValue '')ĬommandArray = otherdevices_idx.'|1|'.ONLevelValue Print("Marantz gelijk aan Marantz Input Domoticz") "'")ĬommandArray = otherdevices_idx.'|1|'.OFFLevelValue Local av_status = get(av_status,"InputFuncSelect") November 2016 v1.0 with help of G3rard and simon_rb for extracting the xml values Any idea to strip SPACE character before the but not entirely as there is a space between DOLBY and DIGITAL too?Ĭode: Select all - Reading Denon/Marantz xml file to update a Selector Switch to reflect current state of the receiver I wanted to move on to the Surround mode, which is an easy copy over from the sources script, but searching for: DOLBY DIGITAL gives me an additional SPACE before the and this is why it cannot be compared to the Levels named on the Selector Switch exactly it seems. If the Selector Switch is not matching that, the script will set it correctly. The rest of my script worked apparently, but getting values like SATSAT as SAT in this case. Mymissing piece was getting the correct value back from the xml stripping all the stuff you don't want. OK so this is brilliant, and I've been at this for a long time not wanting to go into. Local vol_tv = get(vol_tv,"MasterVolume") get volume of TV and update volume switch in Domoticz if it differs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |