Hi HA Folks,
I am trying to do an automation with Sonoff Mini R2 & HA runs on Rpi 3B+
what i have done so far:
I have followed this guide and have completed till the section before ESPHome Firmware
My Automation Intent:
When this automations is activated, When my AC goes down ie (Main’s power outage), I would like to wait for few minutes and switch on my ceiling fan, and again turn off my fan when the AC comes back online.
I have added an automation in my HomeAssistant using Hall Effect Sensor to detect power outage
help i seek:
Now i am about flash my Sonoff Mini R2 with the script given in the above guide which is made for light, now my question is can i go ahead and flash that by changing from light to fan or would i need some extra configurations to make my required automation work ? Please advice
Using postman i have already made changes to my sonoff mini to startup by default, so that standard functionality of Fan when switch is turned on is not affected.
"switch": "on", "startup": "on", "pulse": "off", "pulseWidth": 500, "ssid": "", "otaUnlock": true, "fwVersion": "3.6.0", "deviceid": "", "bssid": "", "signalStrength": -48
posted here the info i get when i run check on zeroconf/info