Hi Your program don't work on my HC2. I don't know what is wrong. In line of program: HC2:GET("/ZWaveAPI/Run/devices[3].instances[0].commandClasses[64].Set(2)"); what is "devices[3]" ( NodeID of ZXT-120 or ID of ZXT-120 ) and "instances[0] ?
Please help me in this problem. I heve ZXT-120EU and can after sending line I get errorCode = 2, response and status are empty. Forgive me my english. regards Jacek_S from POLAND (Ver.soft.of HC-2: 3.581 beta) fibaro:log("Команда отправлена"); HC2 = Net.FHttp("192.168.1.30",8083); -- call domaine to check response, status, errorCode = HC2:GET("/ZWaveAPI/Run/devices[3].instances[0].commandClasses[64].Set(2)"); fibaro: sleep(500); response, status, errorCode = HC2:GET("/ZWaveAPI/Run/devices[3].instances[0].commandClasses[64].data.mode.value"); if (response=='0') then fibaro:log("Выключен"); fibaro:setGlobal("Sost_SS", "0"); end if (response=='1') then fibaro:log("Обогрев"); fibaro:setGlobal("Sost_SS", "1"); end if (response=='2') then fibaro:log("Охлаждение"); fibaro:setGlobal("Sost_SS", "2"); end if (response=='3') then fibaro:log("Авто"); fibaro:setGlobal("Sost_SS", "3"); end if (response=='6') then fibaro:log("Вентилятор"); fibaro:setGlobal("Sost_SS", "6"); end if (response=='8') then fibaro:log("Осушение"); fibaro:setGlobal("Sost_SS", "8"); end |
You must have zxt-120 to be connected to the controller on the basis of Razberry or Windows with Z-Way controller running and understand with the Z-Way API.
Try sending the in browser: http://your ip:port/ZWaveAPI/Run/devices[id_device].instances[0].commandClasses[64].Set(2)