Page 2 of 2

Re: Pzem04t valueus splitting

Posted: Monday 10 May 2021 11:27
by spike318
i cant get the rule working

when i put the code in my browser i get a value to domotics
2021-05-10 11_21_00-192.168.1.19_8080_json.htm_type=command&param=udevice&idx=191&nvalue=0&svalue=11.png
2021-05-10 11_21_00-192.168.1.19_8080_json.htm_type=command&param=udevice&idx=191&nvalue=0&svalue=11.png (13.72 KiB) Viewed 2029 times
this is my rule
ive tested to posibilities with , and :
2021-05-10 11_20_33-Window.png
2021-05-10 11_20_33-Window.png (16.8 KiB) Viewed 2029 times
and when i look into my log i see this
2021-05-05 17_13_35-Window.png
2021-05-05 17_13_35-Window.png (17.53 KiB) Viewed 2029 times
and in domoticz i received nothing the value 11 is set by using the url in my browser

191 multipzem2 82191 1 multipzem21 Usage Electric 1 Watt - - 2021-05-10 11:26:25
192 multipzem2 82192 1 multipzem22 Usage Electric 0 Watt - - 2021-05-10 10:54:15
193 multipzem2 82193 1 multipzem23 Usage Electric 0 Watt 5 - 2021-05-10 07:43:28
194 multipzem2 82194 1 pzemmulti21 Usage Electric 0 Watt 5 -

Re: Pzem04t valueus splitting

Posted: Monday 10 May 2021 11:53
by waltervl
Please report this on the ESPEasy forum as it is a ESPEasy issue.
If I check the doc https://espeasy.readthedocs.io/en/lates ... Rules.html
I see
SendToHTTP
To send a message to another device, like a command to switch on a light to Domoticz
On System#Boot do //When the ESP boots, do
timerSet,1,10 //Set Timer 1 for the next event in 10 seconds
endon

On Rules#Timer=1 do //When Timer1 expires, do
SendToHTTP 192.168.0.243,8080,/json.htm?type=command&param=switchlight&idx=174&switchcmd=On
endon
Many users have reported problems with commands being truncated, particularly when trying to send commands to Domoticz. It seems to be a parsing error. There is the following workaround:
SendToHTTP 192.168.0.243,8080,/json.htm?type=param=switchlight&command&idx=174&switchcmd=On

Re: Pzem04t valueus splitting

Posted: Saturday 27 July 2024 9:32
by spike318
https://sites.google.com/view/spikeauto ... h-esp-easy

After af few time i found out how to split the value's id did it in Node red

Everyting you need you find on my site

Re: Pzem04t valueus splitting

Posted: Saturday 27 July 2024 9:33
by spike318