@KmanOz I must be doing something stupid, but I can’t get it to work:
I flashed the firmware to my sonoff basic, I can see it’s connecting with MQTT server of my HA, but I don’t get anything when I switch the button: the updates simply do not make it to the sonoff.
It’s like I’m not subscribing to the right topic or something (checked it ten times!).
@outrun i have flashed my one and only S20 and it works 99% BUT i can’t get the button on the S20 to switch on/off, does the button on the switch itself work for you ? Switching on/off from HASS works fine.
The S20 code has not been tested by myself but by others. I don’t have one here to test but will have in a few days. I’ll let you know my results and will make changes if necessary.
Kman, great work here. Really enjoying it so far. There is a pic on the github page showing the FTDI adapter connected to the Sonoff POW model with the line / neutral hooked up too. I can definitely confirm that will in fact fry the FTDI adapter and the motherboard of the host PC when you’re using 220V. No hard feelings - the computer was spoils of a failed startup and begging to be replaced anyway. But maybe a warning is in order for the less well informed?
Any of it include a PIR sensor? I looking for some easy to do PIR sensor with MQTT. I was planning to go Xiaomi way…but that would mean buying their gateway as well…but would wait if ITEAD had something from their line.
Wouldn’t a pir sensor connected to a NodeMCU and report as mqtt be a more cheaper and better alternative? Better because you can updated and modify your own way @madtech360
You can add a PIR to gpio 14 on the sonoff, I used a HC-SR501 because you can set the time it’s on for and the sensitivity. They are about £0.80 on Aliexpress.
So for many years now I have been using this RF gateway that I built on an Arduino. It send and receives 433Mhz and talks to my MQTT broker. I use it for wireless PIR’s. Door Switches and for controlling a handful of RF Switches I have around the house. This was a stand alone controller for many years before I moved to HomeAssistant hence the clock module. Sunrise Sunset automatons were micro controller based. The DHT still reports temp though.
ITEAD have now designed an RF Gateway based on a ESP8285 that will have a receiver and transmitter onboard. My plan is to migrate the code I have on my gateway and get it working on the new gateway from ITEAD. Mines been controlling the house for years but I have just never got around to building a case for it. The ITEAD one is a neat looking unit. Anyway I’ll keep everyone posted on the progress.
I think you’ve missed the point. I am going to write my own code for this unit not use it out of the box. Learning is code dependent, All I care is that they use a sensitive receiver module with a sharp front end. I went to a lot of trouble (and modules) to select the right one I use in my gateway. I get great range (typically 40+ meters). If they’ve used a cheap receiver module (based on an LM358 for example) the unit is useless for the application I have in mind because I have PIR’s and door sensors scattered throughout the whole house and their signal just won’t be received.
If you want a straight RF blaster use a Broadlink RM pro as Claudio said.