I have been through this before, and made it work, but I don't find the notes I made (my wife is NOT surprised ) - So here we go.
I have defined a level control, which should check the temperature on an DTH22 on the same ESP8266. That is, I have two Devices, one for my DTH22 and one for level control. I seem to remeber that I need to use rules to check what is going on, so I have tried to make a role that looks like this, just for testing:
on DHT22#Temperatur< [LevelControl#Temperatur] do
gpio,13,1
endon
I'm not sure what Check task I should choose - have tried both, but it looks like I'm doing something fundamentally wrong.
Can some one give me a hint, please?
Best regards
Ulf
Level Control
Moderators: grovkillen, Stuntteam, TD-er
Re: Level Control
(1) Double check the accuracy (no typos) of all your device and value names.
(2) Try this rule:
- Thomas
(2) Try this rule:
Code: Select all
on DHT22#Temperatur do
if [DHT22#Temperatur]<=[LevelControl#Temperatur]
gpio,13,1
endif
if [DHT22#Temperatur]>[LevelControl#Temperatur]
gpio,13,0
endif
endon
Re: Level Control
Thanks a lot, Thomas. It's all about syntaxes
Who is online
Users browsing this forum: Ahrefs [Bot] and 135 guests