Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Right, I uncommented them and yes I am getting the right values. Its also updating Domoticiz Denon Volume with the right value! Thanks was the ~= 'Off' then that was the problem. Issue I have now is the % changes in domoticz but the slider doesn't move.. So it says 45% but shows 65% on the sliderfor example

I update the dimmer with the commandArray['UpdateDevice'] command. That means that the % is updated, without actually firing the LUA command which is update the volume.
I do that to prevent potential loops in volume updates.
The only thing the is that the percentage is being updated, but the sliders isn't. For me that is no problem.

If there are no volume loops to be expected you can update the dimmer via JSON and then the slider will be at the right place.

I update the dimmer with the commandArray['UpdateDevice'] command. That means that the % is updated, without actually firing the LUA command which is update the volume.
I do that to prevent potential loops in volume updates.
The only thing the is that the percentage is being updated, but the sliders isn't. For me that is no problem.

If there are no volume loops to be expected you can update the dimmer via JSON and then the slider will be at the right place.

Eh?!?! Sorry I'm still learning all this stuff..

I have just added the Denon Volume to eDomoticz and it seems the switch only updates from the sliders. So I set the amp manually from 60 volume to 50. Domoticz updates to 50 to reflect this but slider doesn't move. Within Homekit it still says 60% so Homekit must use the sliders for volume.. I'll need to get the sliders working so the slider within Homekit work! Doh!

And the Denon Volume is updated every minute when the lua time script runs..

G3rard wrote:I think it's quite pretty
Will have a look at that as well, because I think there will be no volume loop this way and updating the slider as well is a bit nicer

Hehe, I'm having issues trying to get the values to match.. Like setting it to 65% will set receiver to 64%.. I have tried numerous different things and I can't quite get them to match, although there is no volume loop at least! I just like everything just right

Scrap that its working now.. I think I left an odd calculation in there somewhere! Happy days!

Sorry about the repeated updates, The slider within Domoticz is always 1% below what it should but with the difference thing you don't get the volume loop. Be nice to get it 100% but its prob to do with the whole 0-99 rather than 1-100 within Domoticz dimmer..

I can either get it working with Domoticz and the amp showing the same value and homekit being 1% out or I can get Homekit and Amp saying the same and Domoticz 1% out. Rather frustrating..

UPDATE:- After all that it looks like a edomoticz thing maybe - my other 0-99 dimmers behave the same

One to receive the denon data from denon.sh (idx 155 in my case) and which you can remove, it out of your switches view
And one to control the actual on/off in domoticz, (idx 110 in my case) which contains the action url and the sub/slave

Screen Shot 2016-11-13 at 21.15.01.png (131.62 KiB) Viewed 1580 times

3.jpg (221.39 KiB) Viewed 1580 times

I you do not use two, the whole script looses status and the denon keeps turning on- off - on - off... probably because switching on or off cost time and the xml files are not available when in the process of switching on or off then... I did not have to use it anywhere else only when switching on/off

Hope it helps..

Also the script needs improvent in xml handling, it either should download it to a pre configures ram disk or directly to memory... now it writes all the retrieved xml to disk every time it is called... no problem on a normal rust spinner, but could wear down sd cards...

When I create a dummy switch and try to actuate the receiver I get error messages into the Domoticz log although the action does what is should do.
2016-11-17 22:54:29.211 Error: Error opening url: http://<ip>/MainZone/index.put.asp?cmd0=PutZone_OnOff%2FOFF

this is only when it is switched throught the on of action of the dummy device, no when it is called from a LUA script.