the link you gave is just the switch, without the board.
and with all 433 mhz you need to realize that if there is some kind of interference (from other devices, the weather, or anything else), it could happen that your esp doesnt recieve the code. and then hass is in another state.
@phileep yes. I had seen that.
Its cool but the module is too bigâŚdoes not fit inside in my common standard switchâŚbut yes is one alternative.
I waiting for more people trying to help me to find a good solution.
If you want to use 433Mhz you wonât find a good solution. The OOK https://en.wikipedia.org/wiki/On-off_keying protocol is very basic and thereâs no error correction, missed packet re-sending etc like there is in WiFi. Was never designed for 2 way communication although I have seen it used that way. Even then itâs not very good and messages can be missed very easily because of the way the data is sent.
Youâre are going to have to wait a long time if you want a good tiny module thatâs either Zigbee, or Z-Wave or whatever protocol thatâs also cheap. Thatâs why Sonoffâs are such good value.
Good luck
And for the record, I have 433Mhz switches here that I use. My gateway fools HA and delivers an ON and OFF state but switches can miss their transmission and wonât turn ON or OFF so can get out of sync. I have a hanfull of RF switches still working mainly for lamps and devices where it doesnât matter. For anything else I use all Sonoffâs on MQTT.
@KmanOz OK. I was enlightened and I will even forget it. Iâll try to follow your advice and install the sonoff so Iâd like you to tell me how to hook up a physical button on it. Is there any solution to this? Or replace my common switch. Do you have your sonoff inside the wall? Can you get a photo of your installation?
I have left my light switches alone and added the sonoff close to the light fitting in line with the cable to the light.
This means that you can always override the sonoff and turn off the light (and the sonoff). This means you cannot turn it back on with HASS.
I also have the sonoffs set to turn on as soon as they are powered up (ie the switch is turned on).
This all makes for a good WAF! No fiddling with web pages etc, just turn it on or off if that is requrired. This is also good as a safety override. 2 of my sonoffs are currently not talking to my network (due to wireless router issues, not the sonoffs). I can still operate them like a normal light until I get it working.
Anyway - this is getting off topic, but check out the other threads
@Rodolfo_Vieira This might have been answered (Iâm catching up on my reading). The 433 Mhz technology that we are using is not âsmartâ which means that it canât be âaskedâ for what state it is in. All it has is an on and off command. The 433toMQTTto433 gateway will also listen to the 433 Mhz for physical remotes that send the codes and this tells Home Assistant to change the state. For me, this keeps pretty accurate - Iâd say 95% of the time. What helped tremendously was adding an antenna to the receiver. Usually, Iâm changing my config so often itâs my fault when it is out of synch. Hope this helps.
I created another forum topic for us all to post the many devices this gateway can control. Please add the devices you use with this gateway there. Thanks!
@Partybug can you tell me if you use a expensive emitter/receive 433 module?
I have readed that heretodyne modules is a good choice.
Whats do you use? Cheaper? Other questionâŚwhats the maxium distance you can control it?
@Rodolfo_Vieira I use the cheaper emitter/receive modules. I do have to place a 17.2cm bread tie (I had to look them up - official name is âtwist tieâ according to wikipedia) on them for an antenna. I still havenât soldered them in place yet but I twisted them on tight and they donât move. I also used a bread board wire for an antenna.
I have a driveway alert motion detector⌠guessing itâs over 100 feet to my front door. Another 100 feet from my front door to the receiver (if straight through doors/walls etc). About 200 feet is pretty far. Without the antenna they donât work well at all.
I have a similar set up to yours and thanks to you for sorting the MQTT part. I was wondering if I can add a brightness_scale to my MQTT and if it can be configured using IR codes?
I am controlling a dimmer light switch which is controlled by an IR LED with codes for the levels of brightness.
I have the IR codes for various brightness levels and was wondering if I could use the brightness_scale to turn on and off the lights and adjust their brightness all in one?