This post is related to the post below called "LED Dimmer using curl cmd in LUA script - problem with os.execute?" but think I'm going about looking for a solution in the wrong way.
The other post is suffering from my lack of understanding of various tools such as LUA scripts, os.execute commands and curl so I think I should state what I'm really after and see if there are actually working, stable and resilient solutions out there.
I've previously tried and implemented (but solution now broken for me at least) Quindorian solution from here http://blog.quindorian.org/2016/07/esp8 ... nled.html/. ...and I'd also like a solution where the PWM device loads a standard ESPeasy firmware suite.
Here are my requirements and current status:
* Using Windows 10 (64-bit) os
* Want a Domoticz switch dimmer
* ...and with Domoticz as a service, not a user task/app
* ...for a single channel PWM (i.e. Using LED tape single colour)
* PWM device that's a standard ESPeasy firmware
* Using E12 device
The other solutions I've looked into but failed, so far, to get them working are...
* Using LUA script driven by Domoticz switch, including sending URL http://192.168.1.154/control?cmd=PWM,4,400 to my device by using code with curl and os.execute. Works in windows cmd window but not from LUA code.
* As per Quindorian solution, but now getting LUA scripting errors when attempting to load LUA script onto device. Fixed errors once but now more have arrived so assume not a stable enough solution for my lack of coding skills.
The other solutions I'm looking into are...
* being able to drive the URL http://192.168.1.154/control?cmd=PWM,4,400 by using blockly scripts in the Domoticz events. Not sure if this is possible so if anyone out there has done it then please let me know.
* drive the ESPEasy device using MQTT but early days on this yet. ...but do have a working solution for putting sensor info on my LCD via MQTT so maybe my PWM could use this too?
There may be other stable solutions as I would have thought that providing PWM dimmer must have been done many times over but I'm just looking for a fairly stable and resilient solution and not just a one-off.
Any suggestions?
Domoticz Switch + ESPEasy (E12) PWM Dimmer - How do I drive this solution?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 69
- Joined: 18 Mar 2017, 22:13
- Location: Newcastle/UK
-
- Normal user
- Posts: 190
- Joined: 12 Oct 2017, 20:46
Re: Domoticz Switch + ESPEasy (E12) PWM Dimmer - How do I drive this solution?
Use DzVents in Domoticz.
Here is how I send Setpoint for example:
Look here for dimmer parameters:
https://www.domoticz.com/wiki/DzVents:_ ... or_etc..29
Here is how I send Setpoint for example:
Code: Select all
local setpoint = domoticz.devices('Filip_Setpoint')
local url= 'http://192.168.1.105/control?cmd=event,HeatSetpoint='..(setpoint.state)..''
print(url)
domoticz.openURL(url)
https://www.domoticz.com/wiki/DzVents:_ ... or_etc..29
Who is online
Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 21 guests