Hello
thank you for all your help
I donated the SendToHTTP which does not return info to domoticz.
here is the configuration:
the dummy sensor that receives datas serie
download/file.php?mode=view&id=2071
the dummy sensor that sends to domoticz
download/file.php?mode=view&id=2066&sid ... f792a52e2f
the rules
download/file.php?mode=view&id=2072
here is the arduino code sent to esp8266-12
download/file.php?mode=view&id=2074
when the value if [ks300 # val2] = 3 is = a 3 then TaskValueSet 2.1, [ks300 # val1]
then send with SendToHTTP.
All this works, except that SendToHTTP sends nothing to domoticz.
the only send that is valid is the one generated by the dummy plugin's delay.
here an automatic sending by the plugin when the delay is run (60 sec)
Dummy: value 1: 48.00
Dummy: value 2: 0.00
Dummy: value 3: 0.00
Dummy: value 4: 0.00
EVENT: envoi#envoi1=48.00
EVENT: envoi#envoi2=0.00
EVENT: envoi#=0.00
EVENT: envoi#=0.00
HTTP : connecting to 192.168.1.100 using port 8080
/json.htm?type=command¶m=udevice&idx=6&svalue=48.00
HTTP/1.1 200 OK
HTTP : Success
Content-Length: 53
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "OK",
"title" : "Update Device"
}
HTTP : closing connection
here the log domoticz file which shows that the reception is done well every minute, and not when the value is equal to 3
download/file.php?mode=view&id=2076
here a shipment flown by the rules (if [ks300 # val2] = 3)
Dummy: value 1: 48.00
Dummy: value 2: 3.00
Dummy: value 3: 0.00
Dummy: value 4: 0.00
EVENT: ks300#val1=48.00
EVENT: ks300#val2=3.00--------
value 3 triggers the action
ACT : TaskValueSet 2,1,48.00
ACT : SendToHTTP 192.168.1.100:8080/json.htm?
ACT : type=command⸮m=udevice&idx=6&nvalue=1&svalue=48.00
EVENT: ks300#=0.00
EVENT: ks300#=0.00
>TaskValueSet,1,1,49.00
------------------------------------------------------------------------
no connecxion to domoticz
Ok
>TaskValueSet,1,2,4.00
Ok
Dummy: value 1: 49.00
Dummy: value 2: 4.00
-domoticz does not have a login and no password.
I do not know if my job is clear to you, but here's what I'm trying to do exactly.
a value 1 is received, test in the rules, if val = 1 then sending a value, then the value 1 is reset to 0, and waiting for a new value to 1 to restart the cycle.
it's the same principle as for a switch that sends its state when the change, but not sent by the delay of the plugin.
I think you understand better what I am trying to do.
Thanks for your help
- dummy envoi.jpg (67.24 KiB) Viewed 14782 times
The attachment dummy ks300.jpg is no longer available
The attachment dummy envoi.jpg is no longer available
The attachment domoticz.jpg is no longer available
The attachment arduino.jpg is no longer available