Yes my current setup with openhab includes two sensors working with this principle. Instead of sending a fixed decimal value with rcswitch you send a constant value plus the temperature :
-constant : 100000
-measured temperature 25.2 degree
-value sent 100252
The program below use this principle :
The value is sent by the gateway to the mqtt broker, the controller handle it and convert it to a temperature. Done in openhab with a mapping. I don t think someone use it like that yet in home assistant , i will be interested on seeing how the conversion can be done.
My wife bought some analog led lights to light a stain glass picture in a frame. It came with a 433 mhz remote!!! I couldnât be more exited. For the power on and off I get the code 11752449. When I send the code from the gateway I get nothing. I get the same code but it doesnât turn on the lights. Different protocol?
Ok related question⌠Iâm still using the original code from when I built it, itâs not the newer open gateway⌠Would upgrading the code make it work?
With the last version of openmqttgateway you will be able to see the protocol used by this device and reproduce it. The data will be published by the gateway to
home/433toMQTTAdvanced
Yes upgrading the code should work, comment maybe the gateways you donât need to avoid memory issues on your arduino Uno.
For some reason, I am unable to transmit. Iâve tried a separate 5V source, a different transmitter, a different pin (pin 4 to pin 8) on the arduino uno. Iâm thinking itâs my configuration, since the mqtt topics have changed since the original gateway.
The Serial Monitor shows all the codes I receive and it also shows this when I press the button in Home Assistant.
Hey I got a callback
MQTTtoRF default
Ack published
Hey I got a callback
Storing signal
Min index:
0
store code :
âŚ
your HA config seems OK except you could set now optimistic to false (openmqttgateway send now the code back when the command has been sent as an acknowledgement)
Did you change your hardware/connections between the previous soft and the newer version?
Could you check on mosquitto what HA is publishing?
I did change the wiring to match your diagram. My pins were different in the original. I have vcc to 5v (shared with receiver that is working), Ground to Gnd, and data to D4.
When I press the button in Home Assistant, Mosquitto reports:
If you want to eliminate potential configuration issues on OpenMqttGateway or home assistant you could upload into the arduino an RCSwitch example like send demo and see if you are able to control your sockets.
Transmitter was working the whole time. The RCSwitch SendDemo proved that for me. Eventually found ZgatewayRF code to have the default pulselength of 350⌠(TreeFitty!!) The Etekcity remotes need a pulse of 189. That was the trick.
Hereâs my code for those that follow along and upgrade their Gateway to version 3.
OOH no more optimistic: true!!! So we got the slide buttons in Home Assistant and no blue color for an off device!!
I also have some small suggestions for the code which Iâll post on Github. But first I gotta rewrite my configuration.yaml for the 21 switches on the gatway. I havenât turned off some lights in a couple days. lol
Thanks @1technophile
I have one generic 433mhz pir powered by 9v battery since more than 9 months. I think it depends a lot where it stands nd the number of triggers per day. In my case it has to trigger around 10-20times a day
@Rodolfo_Vieira Iâd have to say over 6 months on my driveway sensor - 9 months sounds right. I have the same sensor on the wall of my office for a month now.