Home assistant failsafe to prevent hardware chaos

Hi!

I am new to home assistant and I have the following concern:

I am currently running automations in order to keep temperature, relative humidity, and air exchange in my greenhouse.

My hardware consists of: 1 x Sonoff TH16 Hum.Temp. sensor/switch + 2 x Sonoff Smart Socket S26 connected to the following devices: An humidificator, an extraction fan, and a heater.

Today my internet went down for like 10 minutes and the system was stuck with the fan off, and both the heater and the humidificator on so it swiftly reached critically high temperatures and humidity almost burning my plants.

Is there a way to failsafe my automations so that if there is no internet connection, the devices are automatically shut down? Or my only option is to buy analogical failsafes like a thermostat?

Maybe mounting something like a LAN net that is independent could fix the issue? How can this be accomplished?

Thank you very much!

Edit: specified hardware.

Don’t use cloud connected hardware. Use hardware that is controlled locally.

3 Likes

What kind of smart switches are used to control these devices? If they’re dependent on the cloud, you won’t be able to do anything when your local internet goes out. However, if they have a direct-access API (for example, the tuya-local integration can add local control for tuya-cloud devices), you should have no problem controlling them without WAN access.

1 Like

Above that, I will in this case definitely use a old skool wired thermostat, that cuts the power, when certain temperature is reached.

Plants burn very well… :slight_smile: said the firefighter in me :slight_smile:

1 Like

Sonoff TH16 sensor/switch + 2 x Sonoff Smart Socket S26

Maybe check here:

1 Like

If you flash them with esphome or tasmota, that will allow you to control them entirely locally. However, it means the sonoff app (I think it’s e we link or something) will no longer work, as it replaces the firmware running on the device itself. You’d need a serial-to-usb adapter (or arduino or something similar) to flash the firmware, but it’s straightforward.

I started with Tasmota years ago, but since the introduction of ESPHome, I’ve found it much better at handling logic and automations on the device itself, which means it works even if Home Assistant goes down. For example, I’ve used ESPHome in my window AC units to control the fan and compressor, and it uses the input from a DHT22 to control the temperature. The “generic thermostat” or “bang bang” controllers are great for setting a range (e.g. temperature for your thermostat, humidity for the fan) and keeping the sensor values within that range.

1 Like

and this one does support LAN mode without any flashing:

1 Like

Or maybe go zigbee, then everything can run on your HA, not even needing you local router.

2 Likes

I was already using alexxIT solution so I guess I will transfer the server to the actual location to use a LAN network.

Thank you very much for your answers. I’ll post as soon as I get the system up and running locally!

1 Like