I’m a home beer brewer. The hardest part of brewing a pilsener is keeping the fermentation temperature steady at 12 degrees celcius. It is the 22th of june and there is no place that has a temperatuur of 12 degrees. My fridge is too cold for fermentation. 5 degrees doesn’t make the yeast happy.
I’ve bought a xiaomi aqara temperature sensor and a Sonoff basic switch and used them in HA. I will refer to the installation below.
The steps to keep the fridge at a temperature of 12 degrees:
1. put the temperature sensor in the fridge. Put it in a plastic drawer.
2. use the sonoff switch between the power socket and the power plug. (I have used a 230 V extension cable so I can reuse the sonoff for other projects)
3. make an automation which turns on the fridge when the temperature gets higher then 12 degrees
4. make an automation which turns off the fridge when the temperature gets lower then 12 degrees
(it’s also possible to use a temperature range)
Below the installation steps for getting this to work:
1. Add the temperature device to the xiaomi gateway via the xiaomi app
2. connect the xiaomi gateway to Home Assistant:
https://www.home-assistant.io/components/xiaomi_aqara
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)#Adding_the_Xiaomi_Gateway_to_Domoticz
3. make the sonoff basic device Home Assistant ready. Can be hard for the first time:
https://www.youtube.com/watch?v=chyVjtYb0EA&feature=youtu.be
4. make 2 automations and restart Home assistant
automation 1: (temperatuur above 12 degrees)
- alias: 'fridge_temp > 12'
trigger:
platform: numeric_state
entity_id: sensor.temperature_<Xiaomi ID)>
above: 12
condition:
condition: state
entity_id: switch.sonoff1 (whatever name your sonoff has)
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.sonoff1
automation 2: (temperatuur below 12 degrees)
- alias: 'fridge_temp <12'
trigger:
platform: numeric_state
entity_id: sensor.temperature_(xiaomi ID)
below: 12
condition:
condition: state
entity_id: switch.sonoff1
state: 'on'
action:
- service: switch.turn_off
entity_id: switch.sonoff1