IoT Hottub Temperature Controlled Power Switch: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
https://hos.munkjensen.net/vildmarksbad.php | https://hos.munkjensen.net/vildmarksbad.php | ||
<blockquote><pre> | |||
on sensorTemp#temperature do | |||
TaskValueSet,varTemp,Dummy,[sensorTemp#temperature] // Store current sensor temperature in a dummy variable | |||
if [Switch1#state]=0 | |||
gpio,2,1 | |||
TaskValueSet,Switch1,state,1 | |||
else | |||
gpio,2,0 | |||
TaskValueSet,Switch1,state,0 | |||
endif | |||
endon | |||
</pre></blockquote> |
Revision as of 09:07, 17 December 2021
- Køb en TH16
- & en temperatursensor der passer til TH16 og dine behov
- & en 3.3 volt USB til seriel adapter
- & diverse ledninger
- Læs dokumentation for ESPeasy
- Jeg flasher med filen
ESP_Easy_mega_20211105_normal_ESP8285_1M.bin
- https://espeasy.readthedocs.io/en/latest/Reference/URLs.html?highlight=csv
Inspiration til denne side kommer fra https://www.redelijkheid.com/blog/2017/12/31/flashing-the-sonoff-th16-wireless-switch
https://hos.munkjensen.net/vildmarksbad.php
on sensorTemp#temperature do TaskValueSet,varTemp,Dummy,[sensorTemp#temperature] // Store current sensor temperature in a dummy variable if [Switch1#state]=0 gpio,2,1 TaskValueSet,Switch1,state,1 else gpio,2,0 TaskValueSet,Switch1,state,0 endif endon