Page 1 of 1

update selector switch

Posted: Sunday 08 October 2017 16:09
by Bernhard1
Hi,

i will change the selector switch state by changing the thermostat value...

Code: Select all

commandArray = {}

if (devicechanged['H1 Soll']) then
    commandArray['H1 Modus']='HAND'
end
return commandArray
Whats wrong in my Code?

H1 Soll is my thermostat and H1 Modus is my selector switch

Thanks!

Re: update selector switch

Posted: Sunday 08 October 2017 16:14
by mosjonathan
use the Set Level command like this:

commandArray['H1 modus'] = 'Set Level: 10'

Re: update selector switch

Posted: Sunday 08 October 2017 16:17
by Bernhard1
Thanks a lot!!!