Hello,
it’s possible that i can’t google.
Is there an option to connect multiple Pimatics?
In my case there is a Pimatic in my livingroom with an connected temperature sensor.
I want to hand the value of the sensor to another pimatic via WLAN so that i can display it globaly.
-
Connect multiple Pimatics
-
You can use the Rest API for this.
This command sends the temp from your bathroom Pimatic to the livingroom Pimaitc:
curl -s -X PATCH -H "Content-Type:application/json" -u "$user:$pwd" -d '{"type": "value", "valueOrExpression": "'"yourBathroomTempVariable"'"}' $livingroomAddr/api/variables/remoteBathroomTemp >/dev/null
This command should get the temp from the bathroom to your Pimatic in the livingroom:
curl -s -u $user:$pwd $bathroomAddr/api/variables/yourBathroomTempVariable | jq -r .variable.value
-
@ortin thank you for this reply!
Can you tell me where i have to type these lines?
I’m a beginner and can’t find a plugin or something -
Their are at least two ways. One way is to create a rule, the other is to use a shellSensor device.
Here the way via shellSensor:
- First you need a variable with you want to fill with the temperature, e.g. remote-bath-temp.
- Create a shell sensor device. The attributeName is here $remote-bath-temp, attributeType must be changed to number, attributeUnit is °C, attributeAcronym is e.g. Bathtemp, command is
curl -s -u $user:$pwd $bathroomAddr/api/variables/yourBathroomTempVariable | jq -r .variable.value
, the last config is the interval with could be 60000.
That’s it.
-
@ortin thank you very much!
i’ll try this -
This post is deleted!