Skip to content

Instantly share code, notes, and snippets.

@skittleson
Last active March 28, 2022 01:22
Show Gist options
  • Save skittleson/e0214e6d4aa46cf4b53434aca424420b to your computer and use it in GitHub Desktop.
Save skittleson/e0214e6d4aa46cf4b53434aca424420b to your computer and use it in GitHub Desktop.
Temp Control a Fridge

https://tasmota.github.io/docs/DS18x20/

Arp request every 60 secs.

SetOption41 60

Check every 60

TelePeriod 60

Celsius to Fahrenheit

SetOption8 1

Pull up on

SetOption74 1

When fridge temp is over 37F then power off relay (since it's a normally closed this makes it open to keep cooling). Rule1 off. Rule2 on.

Rule1 ON DS18B20#Temperature>37 DO Backlog POWER off; Rule1 0; Rule2 1 ENDON

When fridge temp is under 34F then power on (turn off fridge since it's normally closed). Rule1 on. Rule2 off.

Rule2 ON DS18B20#Temperature<34 DO Backlog POWER on; Rule1 1; Rule2 0 ENDON

Enable the first rule. Rule1 1

A simple oneliner if using normally open:

Rule1 ON DS18B20#Temperature>38 DO POWER on ENDON ON DS18B20#Temperature<34 DO POWER off ENDON

Rule1 1

Arp. For routers with issues

setoption60 1

sleep 50

Shorter intervals to keep the compressor from overheating.

Rule1 ON DS18B20#Temperature>55 DO backlog POWER on; rule2 1; ENDON ON DS18B20#Temperature<40 DO POWER off ENDON
Rule2 ON DS18B20#Temperature<40 DO backlog counter1 +1; Rule2 0 endon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment