Has no one an idea?
-
[Solved](How) Can I connect 2 pi`s via network?
-
well if possible, then only via api.
but to be honest - i don’t know how, sry!pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
I could try to accomplish the transfer from one dummyheating to another dummyheating
Von einem dummyheating zu einem anderen dummyheating würde ich hinkriegen denke ich
edit:
meanwhile I got up and wrote a short script. Just edit the variables and run it (python2.7 with requests module has to be installed - not tested with python3)
I could expand this script to transfer all thermostat devices at once (I think) - if neededMittlerweile bin ich aufgestanden( ) und habe ein kurzer Srkipt geschrieben. Du musst nur die Variablen editieren und das Skript ausführen (python2.7 inkl requests module muss installiert sein - python3 nicht getestet)
Ich könnte das Skript so erweitern, dass es alle thermostat devices auf einmal kopiert (denke ich) - falls erwünscht
for automation you could now create a rule like this (disable logging):
Damit das ganze automatisch abläuft, könntest eine solche rule erstellen (deaktiviere logging sonst kommt immer ein popup, wenn du die Temp änderst):
! if $thermo1.temperatureSetpoint changes then execute “python /opt/scripts/pimatic/upd_thermo.py”
.
.
thermo1 is deviceid
-
Thank you for the response.
I want to change the temperature Setpoint of the rooms separately in the “Pimatic-Master” (That´s the Pi where i control my lights and blinds). And in the “Pi-Heizung” i turn the relais for the ventile on or off and there i have the DHT22 Sensors.
I attach some picture to illustrate this
Pi-Master
Pi-Heizung
HeizungsregelnAnd one more question,
how can i transfer the DHT22 Sensors on the “Pi-Master”?@SLiX : i hope this helps?!?
Thank youVielen Dank für die Antwort.
Ich möchte den Temperatursollwert von den Zimmern im “Pimatic-Master” einzeln ändern (Das ist der Pi, mit welchem ich mein Licht und Jalousien steuere). Und im “Pi-Heizung” schalte ich die Relais für die Ventile ein oder aus und da habe ich die DHT22 Sensoren.
…
Und noch eine Frage,
Wie kann ich die DHT22 Sensoren auf der “Pi-Master” darstellen?
Danke
-
Please post in English
IF $DHT.temperature changes THEN execute “curl --silent -X PATCH --header “Content-Type:application/json” --user “api:api” --data ‘{“type”: “value”, “valueOrExpression”: $DHT.temperature}’ http://192.168.2.118:82/api/variables/Heizung > /dev/null”
(sorry, code block ignores all the esacpe slashes)
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
Hello,
i wrote it first in english.
the rule don´t work for me. i will not change a variable when the dht Temperature changes, i will change a …temperature.Setpoint from a Dummy-Thermostat to another.
@SliX: I will try your way and will report.
Hallo,
Ich schrieb es zuerst in Englisch.
die Regel arbeitet nicht bei mir. ich möchte nicht eine Variable ändern, wenn die DHT Temperatur ändert, sondern ich möchte einen … temperature.Setpoint von einem Dummy-Thermostat zu einem anderen ändern.
SliX: Ich werde deinen Weg versuchen und berichten.
-
You can’t update/change the value of a dummythermostat through the API. But you can update (user)variables). Just chang one variable over API and let a rule kick in to take that value and set it to the thermostat setpoint.
Sorry … was wrong, you can update a setpoint. You need to GET to : http://IP/api/device/thermostat/changeTemperatureTo?temperatureSetpoint=$temperature you can use my previous example to contact API from a rule.
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
Yes the example from koffienl is a little easier as my python script (but does the same)
-
-
The solution from koffienl should work (a few posts ago)
I would habe done the same just as script in python
So you just need to install curl (instead of python) -
Hello,
i tried it as koffienl written but i allways get an Error in the rule.
Where is my error?Here a picture from the error…
OopsMust I only create a rule?
Thank You
Hallo,
Ich habe es versucht, wie es koffienl geschrieben hat, aber ich erhalte durchweg eine Fehlermeldung in der Regel.
Wo ist mein Fehler?Hier ein Bild von dem Fehler …
Muss ich nur eine Regel erstellen?
Danke
-
Just replace ‘–user api:api’ with ‘–user yourUser:yourPW’
-
Sorry but this was not the solution.
-
You have to put a \ at every " between the entire command to escape the quotes.
execute "curl --silent -X PATCH --header \"Content-Type:application/json\" --user \"api:aapi\" --data '\{\"type\": \"value\", \"valueOrExpression\": $waterin.temperature\}' http://192.168.2.1/api/variables/ZwembadWaterIn > /dev/null"
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
Heureka it works… half…
Now the Pis speak with each other bute the “Heizungs-Pi” say no variable found. See the picture…
-
Jippi, now i have it, it works!!!
I have to work with the GET command…
like this rule:IF $thermostat-flur-unten.temperatureSetpoint changes
THEN execute “curl --silent -X GET --header “Content-Type:application/json” --user “user:PW” http://192.168.49.6:8083/api/device/thermostat-flur-unten/changeTemperatureTo?temperatureSetpoint=$thermostat-flur-unten.temperatureSetpoint > /dev/null”thank´s all for the help!