update selector switch Topic is solved

Moderator: leecollings

Post Reply
Bernhard1
Posts: 6
Joined: Sunday 08 October 2017 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8356
Contact:

update selector switch

Post 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!
mosjonathan
Posts: 40
Joined: Friday 24 February 2017 21:20
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: update selector switch

Post by mosjonathan »

use the Set Level command like this:

commandArray['H1 modus'] = 'Set Level: 10'
Bernhard1
Posts: 6
Joined: Sunday 08 October 2017 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8356
Contact:

Re: update selector switch

Post by Bernhard1 »

Thanks a lot!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest