Page 1 of 1

Set custom ranges for a Dummy slider switch

Posted: Thursday 24 November 2016 22:51
by Bart77
Hardware: Raspberry Pi3
Domoticz: Version: 3.5985

Hi all, I am wondering if it would be possible to set custom ranges for a Dummy slider object.

Currently I am using a Dummy object (Type: Light/Switch, Switch, Dimmer) to control the volume of my Denon AV receiver.
It would be nice if the value of the AV receiver display could be matched to the value in Domoticz.
The volume control can be set to absolute or relative on this device.
Goal would be to read the setting and adjust the range of the Domoticz object accordingly.

Ranges:
Absolute 0 to 98 [%]
Relative -79.5 to 18 [dB]

In addition the resolution of the AV receiver volume is 0.5 whereas the slider object has a resolution of 1.0.

More information can be found here: https://www.domoticz.com/wiki/Denon

Re: Set custom ranges for a Dummy slider switch

Posted: Friday 25 November 2016 18:06
by stlaha2007
I own a Pioneer and using HomeTheaterCenter from nayr.

He build it with some calculation and jumps 1% on the slider...

I'd like to suggest to look in his code, it has 2 volume controls for 2 Zones [Master and Secondary] which are doing both set the volume and read the volume.

A side note: i believe its written in java.

Perhaps it will help you...