Problem lua with selector switch Toon

Moderator: leecollings

Post Reply
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Problem lua with selector switch Toon

Post by gielie »

Hi,

I have a selector switch of my thermostat, i made a auto program switch containing No, Yes and Temporary.
This is based on the thermostat setpoint. So when the thermostat is following the program it is set to Yes and if i adjust the temp outside the program the selector goes to temporary. Now i want this temporary switch go back to Yes after 30 minutes so i created a new lua.

Code: Select all

 commandArray = {}

-- Command Selector Switch
if (otherdevices['Toon Auto Program'] == 'Set Level: 30')then 
        commandArray['Toon Auto Program']='Set Level: 20 AFTER 10' -- seconds
		print('Toon loopt weer via het programma')
        commandArray['SendNotification']='Toon loopt weer via het programma'
    end
    
This doesnt work, does anybody know what im doing wrong? (the 10 sec is just for the test)
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest