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
#5
(24.08.2020, 12:23)Daniel. Wrote: 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

There is no need to create another script for something that could be done native from the widget.
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
RE: Custom Air Condition Widget - by stianj - 28.10.2024, 13:21
RE: Custom Air Condition Widget - by Daniel - 28.10.2024, 13:22
RE: Custom Air Condition Widget - by stianj - 28.10.2024, 13:41
RE: Custom Air Condition Widget - by Daniel - 28.10.2024, 14:16
RE: Custom Air Condition Widget - by stianj - 30.10.2024, 18:19
RE: Custom Air Condition Widget - by Daniel - Yesterday, 08:36
RE: Custom Air Condition Widget - by stianj - Yesterday, 09:44
RE: Custom Air Condition Widget - by admin - Yesterday, 09:51
RE: Custom Air Condition Widget - by Daniel - Yesterday, 09:57
RE: Custom Air Condition Widget - by stianj - Yesterday, 10:25
RE: Custom Air Condition Widget - by admin - Yesterday, 10:38
RE: Custom Air Condition Widget - by stianj - Yesterday, 11:02
RE: Custom Air Condition Widget - by Daniel - Yesterday, 11:05
RE: Custom Air Condition Widget - by stianj - Yesterday, 11:13

Forum Jump: