It is possible to create a thermostat setting buttons ( for dht22 or DS18B20 ) , using the " DummyHeatingThermostat " to switch a relay ?
-
[solved]Dummy Thermostat
-
@andi216
your mockup looks nice. well there’s already a dummy heating thermostat device.
take a look at this{ "class": "DummyHeatingThermostat", "id": "dummythermostat", "name": "Dummy Thermostat for whatever", "comfyTemp": 21, "ecoTemp": 17, "guiShowModeControl": true, "guiShowPresetControl": true, "guiShowTemperatueInput": true },
you can hide controls and predefine comfy and eco temperature buttons.
really comfortable if you ask melooks like that
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Thanks for the reply.
I know “DummyHeatingThermostat” but do not know how to use it for DS18B20 or DHT22.
I do not know how I can set minimum and maximum temperature (to operate a device) -
if you want to switch the relay via temperatures you can use some rules.
for setting the switching temp you can use the variablesinput device for example (or the dummy thermostat as well.){ "id": "dhtmin", "name": "DHT Temperaturemin", "class": "VariableInputDevice", "variable": "dhtmin", "type": "number" },
for that you will have to create the variable dhtmin (and dhtmax as well) if you are using the variables input device.
you could create an input for max and min temp then use a rule like
IF dhtmin > 17 THEN switch relay on
IF dhtmax < 22 THEN switch relay off
A device for the relay must be created too of course!
then you are having the on / off switch for the gui too.that would be my approach for a solution.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@leader21
I created devices{ "id": "dhtmin", "name": "DHT Temperaturemin", "class": "VariableInputDevice", "variable": "dhtmin", "type": "number" }, { "id": "dhtmax", "name": "DHT Temperaturemax", "class": "VariableInputDevice", "variable": "dhtmax", "type": "number" }, { "class": "MySensorsMulti", "id": "multi", "name": "Multi Sensor 1", "attributes": [ { "name": "temperature", "nodeid": 32, "sensorid": 1, "type": "float", "acronym": "T", "unit": "C" }, { "name": "humidity", "nodeid": 32, "sensorid": 0, "type": "round", "acronym": "H", "unit": "%" }, { "name": "switch", "nodeid": 32, "sensorid": 3, "type": "boolean", "booleanlabels": [ "open", "close" ], "acronym": "Door" }, { "name": "battery", "nodeid": 32, "sensorid": 2, "type": "battery", "acronym": "Battery", "unit": "%" } ] }, ----------------------------------------------------------- "variables": [ { "name": "dhtmin", "value": 19 }, { "name": "dhtmax", "value": 20 } ] } ------------------------------------------------------------------------------- Rules { "id": "dhtmin", "name": "dhtmin", "rule": "if $dhtmin < 19 then turn A on", "active": true, "logging": true }, { "id": "dhtmax", "name": "dhtmax", "rule": "if $dhtmax > 20 then turn A off", "active": true, "logging": true } ----------------------------------------------------------
But how to make the connection from nrf multisensor( dht22 ) and devices dhtmin and dhtmax?
I do not understand.
I apologize but I am a noob. -
@andi216
Hey andi,
check your variables in the pimatic menu. There should be a variable for your DHT22 or DS18B20 Sensor (something like $multi.tempreature).
I think using the “Dummy Thermostat” is the better solution, because you can change the setpoint in the gui.{ "class": "DummyHeatingThermostat", "id": "dummythermostat", "name": "Dummy Thermostat for whatever", "comfyTemp": 21, "ecoTemp": 17, "guiShowModeControl": false, "guiShowPresetControl": false, "guiShowTemperatueInput": false },
Then you need two rules for turn on/off the relay.
turn on:
if $multi.temperate < $dummythermostat.temperatureSetpoint -1 then turn on relay
turn off:
if $multi.temperate > $dummythermostat.temperatureSetpoint then turn off relay
-
sorry my fault … mea culpa! wasn’t thought through.
hope the following will work now .change the rules as follows :
IF temperature > $dhtmin and temperature < $dhtmax THEN switch A on
IF temperature < $dhtmin and temperature > $dhtmax THEN switch A off
another possibility could be :
create another variable called dhtswitch
then have a rule
IF temperature is > $dhtmin and temperature is < $dhtmax THEN set $dhtswitch = "true"
IF $dhtswitch = "true" THEN switch A on
IF $dhtswitch = "false" THEN switch A off
hope it helps …
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@leader21
Thank you very very very much.It works like this.
Device:
- multi sensor(id:multi), dht22(id:temperature)
- dthmin (VariableInputDevice)
- dthmax (VariableInputDevice)
- dth-switch (DummySwitch)Variable:
- dthmin
- dthmaxRules:
if $multi.temperature < $dhtmin.input and $multi.temperature < $dhtmax.input then turn DHT Switch on if $multi.temperature > $dhtmin.input and $multi.temperature > $dhtmax.input then turn DHT Switch off
-
you’re welcome!
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Hi,
i have a question. I have now this buttons: AUTO MANU BOOST ECO COMFY.
How can i now push each button via rule?! Or this buttons only HMI? I can select BOOST and an action will follow. But can i set a rule that Boost is set and after this switch back to AUTO?
-
maybe something like that
WHEN mode of Heizkoerper Schlafzimmer Fabi is equal to boost THEN after 10 minutes set mode of mode of Heizkoerper Schlafzimmer Fabi to “auto”pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Nice! So simple will try out and give Feedback! Thank you.
What can i do with Auto mode? Can you give me some examples?
Thanks.
-
auto mode is used by the max! heating system and tells the max cube (gateway) to go into the autonomous mode. the max cube uses its own heating program then and will override the pimatic inputs on given times.
if you control other thermostats or heating system, you might use this button similar.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
OK thanks. I have open another thread to get deeper in this logic based on rules what I’m expecting.
Thanks.