This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Custom Air Condition Widget
#4
I'm not sure what are the values sent on output of the mode but I guess it is 0,1,2,3,4. Change it accordingly Then the script would looks like that
Code:
value = event.getvalue()

if (value == 0) then
  grp.write('1/1/1', 0)
elseif (value == 1) then
  grp.write('1/1/1', 1)
elseif (value == 2) then
  grp.write('1/1/1', 3) 
elseif (value == 3) then
  grp.write('1/1/1', 9)
elseif (value == 4) then
  grp.write('1/1/1', 13) 
end
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Custom Air Condition Widget - by gtsamis - 22.08.2020, 18:04
RE: Custom Air Condition Widget - by Daniel - 24.08.2020, 07:37
RE: Custom Air Condition Widget - by gtsamis - 24.08.2020, 12:14
RE: Custom Air Condition Widget - by Daniel - 24.08.2020, 12:23
RE: Custom Air Condition Widget - by gtsamis - 24.08.2020, 12:32
RE: Custom Air Condition Widget - by Daniel - 24.08.2020, 12:35
RE: Custom Air Condition Widget - by gtsamis - 24.08.2020, 12:44
RE: Custom Air Condition Widget - by Daniel - 24.08.2020, 13:44

Forum Jump: