reloxx13 / Sonoff-Tasmota-Modified

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE
GNU General Public License v3.0
26 stars 6 forks source link

thermostat or humidifier console using a DHT11? #5

Open tbagro opened 5 years ago

tbagro commented 5 years ago

How do I make a command on the thermostat or humidifier console using a DHT11?

mike2nl commented 5 years ago

@tbagro: what for a command you would do or have in the console?

Which sonoff module you use? You are using Sonoff-Tasmota-Modified from here? Which connectors you have used for the DHT11?

You know the old witch sitting in front of her table with that shiny glasbowl? Cool and creapy i know. So take this as a joke please, but sometimes it is helpful to know what you want and what you have?

tbagro commented 5 years ago

Thanks for the answer, I own a wemos d1 mini and a dht11 shell, using modified tasmtota My idea of test to learn to use the rules is to control is to control temperature and or humidity using a dht11. I have an arduino experience, but I have never used sonoff-tasmota I tried this rule for example, but don't work.

Rule1 on AM2301#temperature>20 do power1 1 endon

mike2nl commented 5 years ago

@tbagro Mhh, good question about the rules. I use the tasmota firmware to communicate with a industrial PLC from type X20CP1585 from B&R. I write my own stuff to make it much more secure for an amercian company which is working in home automation in combination with that hardware. ( ;-) rich mens stuff company )

So my advise is to ask that in Sonoff-Tasmota Git from arendst. -> https://github.com/arendst/Sonoff-Tasmota/

Because thet are a lot of hints about rules in the issue list. They have a very good Wiki for rules too. -> https://github.com/arendst/Sonoff-Tasmota/wiki/Rules

So sorry that i can't help but possible @reloxx13 knows more abiut it.

tbagro commented 5 years ago

I am studying the wiki, but I confess that I still do not understand the rules for the thermostat when using a DHT11, with wemos D1, without button

mike2nl commented 5 years ago

@tbagro i have doen a short search on brother google: https://www.google.nl/search?q=wemos+D1+and+DHT11+and+thermostat&rlz=1C1VFKB_enNL689NL689&oq=wemos+D1+and+DHT11+and+thermostat&aqs=chrome..69i57.22942j0j1&sourceid=chrome&ie=UTF-8

I have found three videos in the top and the first three links locking good for me? Worth to try because it's a start to understand things a little bit better?

Other question: you had read the thermostat sample under rules in the wiki? https://github.com/arendst/Sonoff-Tasmota/wiki/Rules#9-simple-thermostat-example

Possible i can help, have to read and learn for my own, when i know what you want. Can you explain it in clear steps please?

tbagro commented 5 years ago

@mike2nl Thanks for the answer. I know how to do a thermostat with wemos, but I'm testing the tasmota-modified or original code using a wemos D1 mini + DHT11, and I could not use the thermostat command rules a DHT11.

i try for example this rules, but does not run; rule1 1 on DHT11#temperature>26 on power on endon on DHT11#temperature<25 on power off endon my doubt is how to declare the DHT11 in the trigger <#> # temperature

thanks for trying to help me.