Thank you for your reply,
I don't use NTP (long time ago it was not stable and all is automated from domoticz).
But if you really want me to test with NTP I can do it (is there a link between NTP and a triggered property?)
I have tested again all properties as "trigger", here below the complete rules:
Code: Select all
On Button#State do
if [Relay#State]=1
gpio,12,0
else
gpio,12,1
endif
endon
On System#Boot do
gpio,12,1
endon
On WIFI#RSSI do
SendToHTTP xxx,8080,/json.htm?type=command¶m=udevice&idx=88&nvalue=0&svalue=[POW#Voltage]
endon
On POW#Power do
SendToHTTP xxx,8080,/json.htm?type=command¶m=udevice&idx=89&nvalue=0&svalue=[POW#Power];[POW#Pulses]
SendToHTTP xxx,8080,/json.htm?type=command¶m=udevice&idx=90&nvalue=0&svalue=[POW#Current]
endon
On POW#Current do
SendToHTTP xxx,8080,/json.htm?type=command¶m=udevice&idx=89&nvalue=0&svalue=[POW#Power];[POW#Pulses]
SendToHTTP xxx,8080,/json.htm?type=command¶m=udevice&idx=90&nvalue=0&svalue=[POW#Current]
endon
On POW#Voltage do
SendToHTTP xxx,8080,/json.htm?type=command¶m=udevice&idx=99&nvalue=0&svalue=test_vol
endon
On POW#Pulses do
SendToHTTP xxx,8080,/json.htm?type=command¶m=udevice&idx=99&nvalue=0&svalue=test_pul
endon
For information the "Pulses" property is configured with the formula : %value%/12530
There is no external sensor connected to this POW.
Here below the log (through syslog with "Info" level) :
Aug 27 20:46:09 POW EspEasy: SYS : -77.00
Aug 27 20:46:09 POW EspEasy: EVENT: WIFI#RSSI=-77.00
Aug 27 20:46:09 POW EspEasy: ACT : SendToHTTP 10.0.0.4,8080,/json.htm?type=command¶m=udevice&idx=88&nvalue=0&svalue=232.76
Aug 27 20:46:09 POW EspEasy: Command: sendtohttp
Aug 27 20:46:09 POW EspEasy: SYS : 484.00
Aug 27 20:46:09 POW EspEasy: EVENT: SONOFF#Uptime=484.00
Aug 27 20:46:10 POW EspEasy: Domoticz: Sensortype: 1 idx: 83 values: 484.00
Aug 27 20:46:10 POW EspEasy: WD : Uptime 485 ConnectFailures 0 FreeMem 14560
Aug 27 20:46:39 POW EspEasy: WD : Uptime 485 ConnectFailures 0 FreeMem 14584
Aug 27 20:47:09 POW EspEasy: WD : Uptime 486 ConnectFailures 0 FreeMem 14512
Aug 27 20:47:39 POW EspEasy: WD : Uptime 486 ConnectFailures 0 FreeMem 14512
Aug 27 20:48:09 POW EspEasy: WD : Uptime 487 ConnectFailures 0 FreeMem 14512
Aug 27 20:48:39 POW EspEasy: WD : Uptime 487 ConnectFailures 0 FreeMem 14512
Aug 27 20:49:09 POW EspEasy: WD : Uptime 488 ConnectFailures 0 FreeMem 14512
I have switch on and off 3 times the light connected to the POW... The value are correctly shown on the POW:
Voltage: 232.76
Power: 18.11
Current: 0.13
Pulses: 9949.00
Have you compile your own binary for your POW or are you using a binary delivered by a release?
My POW R2 is written V1.0 on the PCB...
Thank you gain,
Mc/