Code: Select all
python3 API_KEY.py 192.168.178.93:80 createModerator: leecollings
Code: Select all
python3 API_KEY.py 192.168.178.93:80 createCode: Select all
python3 API_KEY.py 192.168.178.93:80 clean 3CFE614B74Code: Select all
python3 API_KEY.py 192.168.178.93:80 list 3CFE614B74What is this lamp ? Does she support RGB color ? there is something wrong, she have [0,0] as value for xy.2019-08-04 12:53:22.657 (deconz) ### Device > 54 Name:Lampe Juli-2 Type:Color light Details:{'sat': 0, 'bri': 236, 'xy': [0, 0], 'on': False, 'hue': 0, 'alert': 'none', 'reachable': False, 'effect': 'none', 'colormode': 'xy'}
I have make a patch > https://github.com/Smanar/Domoticz-deCO ... 49d4e6dc922019-08-04 12:53:32.683 (deconz) ### Device > 55 Name:Lampe Juli-3 Type:Color light Details:{'sat': 0, 'bri': 248, 'xy': [0.458, 0.41], 'on': False, 'hue': 0, 'alert': 'none', 'reachable': False, 'effect': 'none', 'colormode': 'xy'}
Hi, is it possible to use Colorloop without api key?Thorgal789 wrote: Saturday 27 July 2019 15:28 What is yout line 37 ?
You have the same name "colorloop" ?
Can you show me your code, I m using it in a LUA file in LUA directory.
Code: Select all
python3 API_KEY.py 192.168.178.93:80 list 3CFE614B74Code: Select all
-- Color loop test
commandArray = {}
function SendJson(url,json)
local curl = "/usr/bin/curl"
local cmd = curl .. ' -X PUT -d '..json..' '..url
local vac = os.execute(cmd)
if vac ~= true then
print('Send JSON Error')
end
end
--color loop switch
if devicechanged['colorloop'] then
if devicechanged['colorloop'] == 'On' then
print('Start colorloop')
SendJson('http://192.168.178.93/api/D279EE0F45/lights/50/state','\'{"effect":"colorloop","on":true}\'')
else
print('Stop colorloop')
SendJson('http://192.168.178.93/api/D279EE0F45/lights/50/state','\'{"effect":"15","on":false}\'')
end
end
return commandArrayTry usingsalopette wrote: Thursday 08 August 2019 21:21 Hi, could you show me where and how to use Colorloopspeed in the Lua script?
Code: Select all
SendJson('http://192.168.178.93/api/D279EE0F45/lights/50/state','\'{"effect":"colorloop","on":true,"colorloopspeed":255}\'')Specifies the speed of a colorloop. 1 = very fast, 255 = very slow (default: 15). This parameter only has an effect when it is called together with effect colorloop.
Not a complete tutorial but I can try to find somes instructions.smr1hm wrote: Thursday 08 August 2019 21:59 is there an instructions for newbie how to install domoticz on RPI3 with all needed plugins to get Conbee working?
Thanks, it works great!Thorgal789 wrote: Friday 09 August 2019 18:55Try usingsalopette wrote: Thursday 08 August 2019 21:21 Hi, could you show me where and how to use Colorloopspeed in the Lua script?Code: Select all
SendJson('http://192.168.178.93/api/D279EE0F45/lights/50/state','\'{"effect":"colorloop","on":true,"colorloopspeed":255}\'')Specifies the speed of a colorloop. 1 = very fast, 255 = very slow (default: 15). This parameter only has an effect when it is called together with effect colorloop.
. 2019-08-11 21:26:48.860 Error: (deCONZ) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\Domoticz-
deCONZ-1.0.8\;C:\Program Files (x86)\Python38-32\python38.zip\C:\Program Files (x86)\Python38-32\Lib\\C:\Program Files (x86)\Python38-32\DLLs\\C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python38-32;C:\Program Files (x86)\Python38-32\lib\site-packages'.
2019-08-11 21:26:48.860 Error: (deCONZ) Module Import failed, exception: 'ModuleNotFoundError'
2019-08-11 21:26:48.860 Error: (deCONZ) Module Import failed: ' Name: json'
2019-08-11 21:26:48.860 Error: (deCONZ) Error Line details not available.
Code: Select all
pip3 install jsonDon't know exactly what the problem was, but possibly something with python 3.8 beta version? I've installed an older version and it seems to work now.BTW, you are the first one I see with a 3.8 version.
Users browsing this forum: Bing [Bot] and 1 guest