dzVents switchselector maximum value 100?

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

dzVents switchselector maximum value 100?

Post by jake »

I try to set my Onkyo listeningmode to a previously stored variable.

Question 1: I seem to need to use onkyomode.switchSelector(level number) although I hoped for being able to use onkoymode.setState(level name)?

Question 2: Since the Onkeyo receiver has many listeningmodes, I have now 0, 10... 200. However, any number above 100 is setting the switchlevel to 100. How can I overcome that?
User avatar
mongoose
Posts: 42
Joined: Friday 22 November 2013 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dzVents switchselector maximum value 100?

Post by mongoose »

The same happens in Blockly... I was going to use dzVents to try and get around it too. The problem is that to select a level you use a percentage, but percentage is limited to 1-100.
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: dzVents switchselector maximum value 100?

Post by jake »

mongoose wrote:The same happens in Blockly... I was going to use dzVents to try and get around it too. The problem is that to select a level you use a percentage, but percentage is limited to 1-100.
OK, so it is not (only) dzVents related. It sounds to me like an error, since a percentage device (dimmer) can't be the same as a selector device. In general it may sound weird to have 20 selections, but in case of the Onkyo receiver with so many (unnecessary) listening modes, the list is very long.

In the mean time I will see if I can reorganize the listening modes to have the current ones below 100. And yes, that works.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest