[Solved]How to? set switch (via GPIO) with temperature?

Moderator: leecollings

Post Reply
PeM1664
Posts: 13
Joined: Monday 31 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

[Solved]How to? set switch (via GPIO) with temperature?

Post by PeM1664 »

Hi all, I'm using a raspberry for seeing temperature and GPIO for controlling light and heat but how can i set low temperature to turn on a Gpio port? I am looking on the documentation and my raspi domoticz (local)web site but even if I make a scene, I don't find an option for automation heat (switch) function of temperature...
do you have any idea?
tks to you :)
Last edited by PeM1664 on Monday 21 November 2016 11:47, edited 1 time in total.
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: How to? set switch (via GPIO) with temperature?

Post by stlaha2007 »

You need a script for this lua/php/bash. Even Blockly can help you to start with.

So start with blockly is the easiest.
You create a if block where you define your tempsensor with equal or lower then temp, then define the do part where yku set the switch on.
Also build a second if block within where you set upper limit to switch off the switch.
PeM1664
Posts: 13
Joined: Monday 31 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to? set switch (via GPIO) with temperature?

Post by PeM1664 »

Thanks for your answer! If I understand well I have to use Blockly in event menu in Domoticz and create 2 blocks for define the lowest temperature and the action and the highest temperature and the other action?
PeM1664
Posts: 13
Joined: Monday 31 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to? set switch (via GPIO) with temperature?

Post by PeM1664 »

something like this?
Attachments
Sans titre.png
Sans titre.png (115.92 KiB) Viewed 1817 times
PeM1664
Posts: 13
Joined: Monday 31 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to? set switch (via GPIO) with temperature?

Post by PeM1664 »

Greats!! Thanks to you! It's working!
Last edited by PeM1664 on Thursday 24 November 2016 19:13, edited 1 time in total.
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: RE: Re: How to? set switch (via GPIO) with temperature?

Post by stlaha2007 »

PeM1664 wrote:Greats!! Thanks to you! It's work!
Nice to hear it works...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest