{"name":"Сауна \"Комфорт\"","type":"virtual_device","properties":{"deviceIcon":1002,"currentIcon":"1002","log":"","logTemp":"","mainLoop":"","ui.Label1.value":"Ошибка декодирования","ui.Label10.value":"02:20","ui.Label11.value":"01:40","ui.Label12.value":"110 C","ui.Label13.value":"85 C","ui.Label14.value":"60%","ui.Label15.value":"45%","ui.Label16.value":"4","ui.Label2.value":"Включено","ui.Label3.value":"Включено","ui.Label4.value":"Включено","ui.Label5.value":"Включено","ui.Label6.value":"Включено","ui.Label7.value":"Включено","ui.Label8.value":"05:20","ui.Label9.value":"05:20","visible":"true","rows":[{"type":"label","elements":[{"id":1,"lua":false,"waitForResponse":false,"caption":"Ошибки","name":"Label1","favourite":false,"main":false}]},{"type":"label","elements":[{"id":2,"lua":false,"waitForResponse":false,"caption":"Сеть","name":"Label2","favourite":false,"main":true}]},{"type":"button","elements":[{"id":3,"lua":true,"waitForResponse":false,"caption":"On/Off","name":"Button11","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"MainPower_switch\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\n\"&number=\"..num_of_output_channel..\n\"&sp_name=\"..name_specific_parameter..\n\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.switchers.MainPower_switch\n\nif channel_value == 1 then \n channel_value = 0\nelse\n channel_value = 1\nend\n\nlocal set_outputs = \"/set/m2m/outputs?type=\"..output_type..\n\"&number=\"..num_of_output_channel..\n\"&sp_name=\"..name_specific_parameter..\n\"&value=\"..channel_value..\n\"&hash=\"..hash\n\nHC2 = Net.FHttp(ip_address, port);\nrequest = HC2:GET(set_outputs);\njsonTable = json.decode(request)\n\nif jsonTable.outputs.value == 1 then\n local state = \"Включено\"\nelse\n state = \"Отключено\"\nend\nfibaro:call(deviceID, \"setProperty\", \"ui.Label2.value\", state)\nfibaro:call(deviceID, \"setProperty\", \"currentIcon\", 1002);\n\nfibaro:debug(jsonTable.outputs.value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":4,"lua":false,"waitForResponse":false,"caption":"Парогенератор","name":"Label4","favourite":false,"main":false}]},{"type":"button","elements":[{"id":5,"lua":true,"waitForResponse":false,"caption":"On/Off","name":"Button31","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Humidity_switch\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.switchers.Humidity_switch\n\nif channel_value == 1 then \n channel_value = 0\nelse\n channel_value = 1\nend\n\nlocal set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\nHC2 = Net.FHttp(ip_address, port);\nrequest = HC2:GET(set_outputs);\njsonTable = json.decode(request)\n\nif jsonTable.outputs.value == 1 then\n local state = \"Включено\"\nelse\n state = \"Отключено\"\nend\nfibaro:call(deviceID, \"setProperty\", \"ui.Label4.value\", state)\nfibaro:call(337, \"setProperty\", \"currentIcon\", 1002);\n\nfibaro:debug(jsonTable.outputs.value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":6,"lua":false,"waitForResponse":false,"caption":"Нагреватель","name":"Label3","favourite":false,"main":false}]},{"type":"button","elements":[{"id":7,"lua":true,"waitForResponse":false,"caption":"On/Off","name":"Button21","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Heat_switch\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.switchers.Heat_switch\n\nif channel_value == 1 then \n channel_value = 0\nelse\n channel_value = 1\nend\n\nlocal set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\nHC2 = Net.FHttp(ip_address, port);\nrequest = HC2:GET(set_outputs);\njsonTable = json.decode(request)\n\nif jsonTable.outputs.value == 1 then\n local state = \"Включено\"\nelse\n state = \"Отключено\"\nend\nfibaro:call(deviceID, \"setProperty\", \"ui.Label3.value\", state)\n\nfibaro:debug(jsonTable.outputs.value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":8,"lua":false,"waitForResponse":false,"caption":"Вентилятор","name":"Label5","favourite":false,"main":false}]},{"type":"button","elements":[{"id":9,"lua":true,"waitForResponse":false,"caption":"On/Off","name":"Button41","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Fan_switch\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.switchers.Fan_switch\n\nif channel_value == 1 then \n channel_value = 0\nelse\n channel_value = 1\nend\n\nlocal set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\nHC2 = Net.FHttp(ip_address, port);\nrequest = HC2:GET(set_outputs);\njsonTable = json.decode(request)\n\nif jsonTable.outputs.value == 1 then\n local state = \"Включено\"\nelse\n state = \"Отключено\"\nend\nfibaro:call(deviceID, \"setProperty\", \"ui.Label5.value\", state)\n\nfibaro:debug(jsonTable.outputs.value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":10,"lua":false,"waitForResponse":false,"caption":"Таймер отсрочки","name":"Label7","favourite":false,"main":false}]},{"type":"button","elements":[{"id":11,"lua":true,"waitForResponse":false,"caption":"On/Off","name":"Button61","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimerOffset_checkbox\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimerOffset_checkbox\n\nif channel_value == 1 then \n channel_value = 0\nelse\n channel_value = 1\nend\n\nlocal set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\nHC2 = Net.FHttp(ip_address, port);\nrequest = HC2:GET(set_outputs);\njsonTable = json.decode(request)\n\nif jsonTable.outputs.value == 1 then\n local state = \"Включено\"\nelse\n state = \"Отключено\"\nend\nfibaro:call(deviceID, \"setProperty\", \"ui.Label7.value\", state)\n\nfibaro:debug(jsonTable.outputs.value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":12,"lua":false,"waitForResponse":false,"caption":"Свет","name":"Label6","favourite":false,"main":false}]},{"type":"button","elements":[{"id":13,"lua":true,"waitForResponse":false,"caption":"On/Off","name":"Button51","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Light_switch\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.switchers.Light_switch\n\nif channel_value == 1 then \n channel_value = 0\nelse\n channel_value = 1\nend\n\nlocal set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\nHC2 = Net.FHttp(ip_address, port);\nrequest = HC2:GET(set_outputs);\njsonTable = json.decode(request)\n\nif jsonTable.outputs.value == 1 then\n local state = \"Включено\"\nelse\n state = \"Отключено\"\nend\nfibaro:call(deviceID, \"setProperty\", \"ui.Label6.value\", state)\n\nfibaro:debug(jsonTable.outputs.value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":14,"lua":false,"waitForResponse":false,"caption":"Время нагрева","name":"Label11","favourite":false,"main":false}]},{"type":"label","elements":[{"id":15,"lua":false,"waitForResponse":false,"caption":"Установить:","name":"Label10","favourite":false,"main":false}]},{"type":"button","elements":[{"id":16,"lua":true,"waitForResponse":false,"caption":"-1 ч","name":"Button81","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimeHeat_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimeHeat_SET\n \nif type(channel_value) == \"number\" and channel_value > 60 then \n channel_value = channel_value - 60\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label10.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":17,"lua":true,"waitForResponse":false,"caption":"-10 м","name":"Button82","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimeHeat_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimeHeat_SET\n \nif type(channel_value) == \"number\" and channel_value > 10 then \n channel_value = channel_value - 10\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label10.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":18,"lua":true,"waitForResponse":false,"caption":"+10 м","name":"Button83","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimeHeat_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimeHeat_SET\n \nif type(channel_value) == \"number\" and channel_value <= 400 then \n channel_value = channel_value + 10\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label10.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":19,"lua":true,"waitForResponse":false,"caption":"+1 ч","name":"Button84","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimeHeat_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimeHeat_SET\n \nif type(channel_value) == \"number\" and channel_value <= 350 then \n channel_value = channel_value + 60\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label10.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":20,"lua":false,"waitForResponse":false,"caption":"Влажность","name":"Label15","favourite":false,"main":false}]},{"type":"label","elements":[{"id":21,"lua":false,"waitForResponse":false,"caption":"Установить:","name":"Label14","favourite":false,"main":false}]},{"type":"button","elements":[{"id":22,"lua":true,"waitForResponse":false,"caption":"-5%","name":"Button101","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Humidity_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Humidity_SET\n \nif type(channel_value) == \"number\" and channel_value > 15 then \n channel_value = channel_value - 5\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\"%\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label14.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":23,"lua":true,"waitForResponse":false,"caption":"-1%","name":"Button102","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Humidity_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Humidity_SET\n \nif type(channel_value) == \"number\" and channel_value >= 11 then \n channel_value = channel_value - 1\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\"%\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label14.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":24,"lua":true,"waitForResponse":false,"caption":"+1%","name":"Button103","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Humidity_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Humidity_SET\n \nif type(channel_value) == \"number\" and channel_value <= 94 then \n channel_value = channel_value + 1\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\"%\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label14.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":25,"lua":true,"waitForResponse":false,"caption":"+5%","name":"Button104","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Humidity_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Humidity_SET\n \nif type(channel_value) == \"number\" and channel_value <= 90 then \n channel_value = channel_value + 5\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\"%\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label14.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":26,"lua":false,"waitForResponse":false,"caption":"Время отсрочки","name":"Label9","favourite":false,"main":false}]},{"type":"label","elements":[{"id":27,"lua":false,"waitForResponse":false,"caption":"Установить:","name":"Label8","favourite":false,"main":false}]},{"type":"button","elements":[{"id":28,"lua":true,"waitForResponse":false,"caption":"-1 ч","name":"Button71","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimerOffset_time_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimerOffset_time_SET\n \nif type(channel_value) == \"number\" and channel_value > 60 then \n channel_value = channel_value - 60\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label8.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":29,"lua":true,"waitForResponse":false,"caption":"-10 м","name":"Button72","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimerOffset_time_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimerOffset_time_SET\n \nif type(channel_value) == \"number\" and channel_value > 10 then \n channel_value = channel_value - 10\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label8.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":30,"lua":true,"waitForResponse":false,"caption":"+10 м","name":"Button73","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimerOffset_time_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimerOffset_time_SET\n \nif type(channel_value) == \"number\" and channel_value <= 760 then \n channel_value = channel_value + 10\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label8.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":31,"lua":true,"waitForResponse":false,"caption":"+1 ч","name":"Button74","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"TimerOffset_time_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.timers.TimerOffset_time_SET\n \nif type(channel_value) == \"number\" and channel_value <= 710 then \n channel_value = channel_value + 60\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n local hour = math.floor(channel_value/60)\n local min = channel_value%60\n channel_value = string.format(\"%02i:%02i\", hour, min)\n fibaro:call(deviceID, \"setProperty\", \"ui.Label8.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":32,"lua":false,"waitForResponse":false,"caption":"Температура","name":"Label13","favourite":false,"main":false}]},{"type":"label","elements":[{"id":33,"lua":false,"waitForResponse":false,"caption":"Установить:","name":"Label12","favourite":false,"main":false}]},{"type":"button","elements":[{"id":34,"lua":true,"waitForResponse":false,"caption":"-5 C","name":"Button91","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Temperature_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Temperature_SET\n \nif type(channel_value) == \"number\" and channel_value >= 45 then \n channel_value = channel_value - 5 \n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\" C\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label12.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":35,"lua":true,"waitForResponse":false,"caption":"-1 C","name":"Button92","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Temperature_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Temperature_SET\n \nif type(channel_value) == \"number\" and channel_value >= 41 then \n channel_value = channel_value - 1 \n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\" C\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label12.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":36,"lua":true,"waitForResponse":false,"caption":"+1 C","name":"Button93","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Temperature_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Temperature_SET\n \nif type(channel_value) == \"number\" and channel_value <= 124 then \n channel_value = channel_value + 1\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\" C\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label12.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false},{"id":37,"lua":true,"waitForResponse":false,"caption":"+5 C","name":"Button94","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Temperature_SET\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.sensors.Temperature_SET\n \nif type(channel_value) == \"number\" and channel_value <= 120 then \n channel_value = channel_value + 5\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value..\" C\"\n fibaro:call(deviceID, \"setProperty\", \"ui.Label12.value\", channel_value)\nend\n\nfibaro:debug(channel_value)","buttonIcon":1002,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":38,"lua":false,"waitForResponse":false,"caption":"Диммер свет","name":"Label16","favourite":false,"main":false}]},{"type":"button","elements":[{"id":39,"lua":true,"waitForResponse":false,"caption":"<","name":"Button111","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Light_dimmer\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.dimmers.Light_dimmer\n \nif type(channel_value) == \"number\" and channel_value > 0 then \n channel_value = channel_value - 1\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n fibaro:call(deviceID, \"setProperty\", \"ui.Label16.value\", channel_value)\nend\n\nfibaro:debug(channel_value)\n","buttonIcon":1002,"favourite":false,"main":false},{"id":40,"lua":true,"waitForResponse":false,"caption":">","name":"Button112","empty":false,"msg":"local deviceID = fibaro:getSelfId()\nlocal ip_address = fibaro:getValue(deviceID, 'IPAddress');\nlocal port = fibaro:getValue(deviceID, 'TCPPort');\nlocal hash = \"d033e22ae348aeb5660fc2140aec35850c4da997\" --\"admin\"\n\nlocal output_type = \"specific\"\nlocal num_of_output_channel = \"0\"\nlocal name_specific_parameter = \"Light_dimmer\"\n\nlocal get_outputs = \"/get/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&hash=\"..hash\nlocal HC2 = Net.FHttp(ip_address, port);\nlocal request = HC2:GET(get_outputs);\nlocal jsonTable = json.decode(request)\nlocal channel_value = jsonTable.outputs.data[1].value.dimmers.Light_dimmer\n \nif type(channel_value) == \"number\" and channel_value < 6 then \n channel_value = channel_value + 1\n local set_outputs = \"/set/m2m/outputs?type=\"..output_type..\"&number=\"..num_of_output_channel..\"&sp_name=\"..name_specific_parameter..\"&value=\"..channel_value..\"&hash=\"..hash\n HC2 = Net.FHttp(ip_address, port);\n request = HC2:GET(set_outputs);\n jsonTable = json.decode(request)\n channel_value = jsonTable.outputs.value\n fibaro:call(deviceID, \"setProperty\", \"ui.Label16.value\", channel_value)\nend\n\nfibaro:debug(channel_value)\n","buttonIcon":1002,"favourite":false,"main":false}]}]},"actions":{"pressButton":1,"setSlider":2,"setProperty":2}}