I'm using EspEasy with domoticz to control mine home.
I am trying to build a custom PWM for an electric boiler using an esp 12F for control, an SSR (zero cross) as a pwm element and a PZEM-004T V3 to control consumption.
In Domoticz I use a switch / dimmer and with the cursor I send information about the desired percentage that I capture in Esp with MQTT-Helper.
From versions after 20211005, this plugin is no longer able to return what was happening up until now.
Is it a deliberate thing?
Donw here mine setup. And rules that i use till now.
Code: Select all
[On System#Boot do
looptimerset_ms,1,1000
endon
On Rules#Timer=1 do
looptimerset_ms,1,1000
if %v1%<1
GPIO, 13, 0
elseif %v1%>99
GPIO, 13, 1
else
let 1,[var#1]*10
LongPulse_mS,13,1,[var#1]
let 1,[var#1]/10
endif
endon
On Up#State=0 do
if %v1%<=90
let 1, %v1%+10
else
let 1, 100
endif
event,newpwm=[var#1]
endon
On Down#State=0 do
if %v1%>10
let 1, %v1%-10
else
let 1, 0
endif
event,newpwm=[var#1]
endon
on Boiler_PWM#Output do
let 1, [Boiler_PWM#Output]/10
TaskValueSet,1,1,[var#1]
endon
On newpwm do
let 1,%eventvalue1%
TaskValueSet,1,1,[var#1]
// SendToHTTP 192.168.0.100,8080,/json.htm?type=command¶m=switchlight&idx=42&switchcmd=Set%20Level&level=[var#1]
Publish domoticz/in,'{"idx":42,"nvalue":2,"svalue":"[var#1]"}'
endon]
What should I do if I intend to use the new releases?