Sonoff Basic Expansion Mod - Buttons, PIR Motion Sensors, Tasmota Rules and more!
The Sonoff Hydra-Basic with two capacitive touch buttons and a PIR motion sensor. Break into the powerful Rules of the Tasmota firmware and control more than one light/function with a Sonoff Basic.
USB FTDI Adapter(Sonoff Flashing)
AM312 PIR Sensor
Capacitive Touch Button
Fuses (optional but recommended)
DrZzs video on step by step how to flash a Sonoff - https://www.youtube.com/watch?v=KMiP9Ku71To
Tasmota Rules Commands Used:
backlog switchmode1 3;switchmode2 1;switchmode3 1 rule1 on switch2#state=1 do publish cmnd/S20Beta/POWER TOGGLE endon rule1 on rule2 on switch3#state=1 do publish HydraBasic/PIR/state YES endon on switch3#state=0 do publish HydraBasic/PIR/state NO endon rule2 on rule3 on switch3#state=1 do publish cmnd/TuyaDimTest/Dimmer 75 endon on switch3#state=0 do publish cmnd/TuyaDimTest/Dimmer 25 endon rule3 on
HomeAssistant Binary Sensor Config YAML
GitHub Link with all the rules and sample HomeAssistant Config - https://github.com/digiblur/Sonoff-HydraBasic-Tasmota
The Sonoff Basic is mains powered device! There is a danger of electrocution if not installed properly. If you don't know how to install a Sonoff, please call an electrician.