Rules for Sonoff Pow (first version)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Rules for Sonoff Pow (first version)

#1 Post by ManS-H » 29 Aug 2018, 16:58

I saw interestings rules of Prutsium in viewtopic.php?f=5&t=5246&hilit=pow+r2&start=20#p29035
I followed the same procedure, and made 4 dummy sensors in Domoticz.
I changed this rule for my situation, but that doesn't works as i expected. The two lines for Voltage an Current works fine.

On Energy#Voltage (V) do
SendToHTTP 192.168.178.52,8080,/json.htm?type=command&param=udevice&idx=3653&nvalue=0&svalue=[Energy#Voltage (V)] //Send the Voltage data to Domoticz
SendToHTTP 192.168.178.52,8080,/json.htm?type=command&param=udevice&idx=3654&nvalue=0&svalue=[Energy#Current (A)] //Send the Amp data to Domoticz
//SendToHTTP 192.168.178.52,8080,/json.htm?type=command&param=udevice&idx=3655&nvalue=0&svalue=[Energy#Active Power (W)] //Send the Watt data to Domoticz
//SendToHTTP 192.168.178.52,8080,/json.htm?type=command&param=udevice&idx=3656&nvalue=0&svalue=[Energy#Power Factor (%)] //Send the Power Factor data to Domoticz
endon

But when i made the other two active it destroyed Domoticz. I removed the sdcard from Domoticz and checked them on errors and repair it.
After that Domoticz worked again. So i tried it again, same problem, repair it and tried it for the third time. same problem.
For this moment i removed the rules. My knowledge isn't enough to find a solution for this problem.
Maybe someone can tell me whats going wrong.

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Rules for Sonoff Pow (first version)

#2 Post by TD-er » 29 Aug 2018, 17:17

I have seen some remarks about corruption on the Domoticz Wiki.
For example here: http://www.domoticz.com/wiki/Domoticz_A ... URL%27s#UV

Maybe it applies to more?
Also some Domoticz values require a 'svalue' and some a 'nvalue'.

User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: Rules for Sonoff Pow (first version)

#3 Post by ManS-H » 29 Aug 2018, 19:29

TD-er wrote: 29 Aug 2018, 17:17 I have seen some remarks about corruption on the Domoticz Wiki.
For example here: http://www.domoticz.com/wiki/Domoticz_A ... URL%27s#UV

Maybe it applies to more?
Also some Domoticz values require a 'svalue' and some a 'nvalue'.
Yep, very strange.
But i know now that the Virtual Sensor "Electric (Instant+Counter" gives the problem. Instead of that i have used "Usage (Electric)" and that works fine. Isee now all the four items in Domoticz.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 35 guests