I want to send values from my SDM 630 via rules to Domoticz. I tried this rule:
on Laadpaal#V_L1 do
SendToHTTP 192.168.1.167,8888,/json.htm?type=command¶m=udevice&idx=938&nvalue=0&svalue=[Laadpaal#V_L1] //Own made up IDX 123456
endon
The ESP sends the value to Domoticz but Domoticz doen't receive. Is it possible that this is due to pasword settings?
This is the log in the ESP:
18522417: EVENT: Laadpaal#V_L1=230.76
18522427: ACT : SendToHTTP 192.168.1.167,8888,/json.htm?type=command¶m=udevice&idx=938&nvalue=0&svalue=230.76
rules
Moderators: grovkillen, Stuntteam, TD-er
Re: rules
Well, in the Controllers tab of ESPEasy you can add a controller, select Domoticz HTTP from the combobox, and wait until the page is reloaded.
Then fill in the IP-address, port, username and password for your Domoticz server, and check Enabled at the bottom before hitting Submit.
Then return to your Devices page, and edit the Task (Device) for the SDM task you want to send to Domoticz. Near the bottom of the page you'll find the Send to Controller list, where you will have to enable the checkbox and enter the Domoticz IDX number, then save the settings by clicking Submit.
At every Interval the data will be sent to Domoticz, as you intended
Then fill in the IP-address, port, username and password for your Domoticz server, and check Enabled at the bottom before hitting Submit.
Then return to your Devices page, and edit the Task (Device) for the SDM task you want to send to Domoticz. Near the bottom of the page you'll find the Send to Controller list, where you will have to enable the checkbox and enter the Domoticz IDX number, then save the settings by clicking Submit.
At every Interval the data will be sent to Domoticz, as you intended
/Ton (PayPal.me)
Re: rules
You could act on the events via rules.
The event values are in the same order as you defined the task values for a task.
So let's assume you have a task called eastron1.
Just mark the checkbox to send all task values in a single event (event will be like: "eastron1#All=123.4,56.7,89.0")
A rules block could be like this:
The event values are in the same order as you defined the task values for a task.
So let's assume you have a task called eastron1.
Just mark the checkbox to send all task values in a single event (event will be like: "eastron1#All=123.4,56.7,89.0")
A rules block could be like this:
Code: Select all
On eastron1#All do
// Use the %eventvalueN% values to send to Domoticz with their own IDX value.
LogEntry,"Eastron1 values: %eventvalue1% , %eventvalue2%, %eventvalue3%, %eventvalue4%"
endon
Who is online
Users browsing this forum: No registered users and 2 guests