Expanding the Sonoff Basic.
Apart from just using the Sonoff Basic to switch items on and off, you are able to connect other types of sensors to it as well, i.e. temperature, pressure, and humidity sensors, both Single wire as well as I2C sensors.
You are also able to add extra switches to it, or sensors for garage door/ window open or closed.
I have not done so yet, but you are able to create the equivalent of a remote blaster, to receive IR commands and resend them in another room.
My next project is to set up one as a remote transmitter to control my air conditioner, I will keep you updated.
Currently I have connected the Pin 4 (Gnd) and 5(GPIO14) to the relay of a beam crossing the area before my swiming pool, the equivalent of an electronic fence. As soon as anyone goes in that area, it toggles this, which will then set off an alarm via Home Assistant.
I am still busy setting up the automation to get all this going. This means switching it off on Thursdays automatically when the Garden service arrives, or me switching it off if we have a pool party or braai. HA must then switch it back on by say 3:00am if my whiskeys have made me forget to do so.
Here is a Pic of the basic with the Ground and GPIO14 exposed, the only 2 I needed for this exercise.
View attachment 544513