Nice lightbulb at a very good price. Might be a good idea to make a visit to IKEA these daysDeNB3rt wrote:Hi Trackerj
thanks for the feedback.
Still no working, but I tried something different.
I went to Setup > More options > Events
domoticzlua.png
I created a the script there with LUA.
Still not working, but I can see that the 'dimm' variable is changed in the 'User variables'.
Also the log is telling me that the calculation is done, i created a print(runcommand); to see the url, also that one seems ok.
But the request seems not to arrive at the ESP module.
Very weird, because the same url call do work in my browser
Log:
2016-12-08 11:36:16.034 User: bert initiated a switch command (12/MPDMv4_Dimmer/Set Level)
2016-12-08 11:36:16.440 LUA: MPDMv4_Dimmer
2016-12-08 11:36:16.440 LUA: Set Level: 22 %
2016-12-08 11:36:16.440 LUA: device state Set Level: 22 %
2016-12-08 11:36:16.440 LUA: Other
2016-12-08 11:36:16.440 LUA: dimm Level = 684
2016-12-08 11:36:16.440 LUA: curl 'http://192.168.0.231/control?cmd=pwm,4,702'
2016-12-08 11:36:16.511 LUA: PWM calculated value= 702
2016-12-08 11:36:16.624 EventSystem: Script event triggered: script_device_MPDMv4_Dimmer
The used led bulb is the Ikea 'LEDARE' GU10 6W 400lumen.
http://www.ikea.com/us/en/catalog/products/20304661/
Probably LUA script PATH is also different on Windows, somebody with more Domoticz Windows version experience can say more.
From LOG file I can say that It looks OK now, did you have also installed the CURL ?
After having it properly installed you can test it by running the VCNT Commands directly from the command prompt:
It's the best way to see that CURL is ok installed, not bloked by Windows AV/Firewall, etc.