Set custom ranges for a Dummy slider switch

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Bart77
Posts: 8
Joined: Saturday 17 September 2016 9:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Netherlands
Contact:

Set custom ranges for a Dummy slider switch

Post 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
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Set custom ranges for a Dummy slider switch

Post 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...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest