I am trying to make a 433 gateway with ESPhome, but without home assistant control.
This is the first time i am working with ESPhome. Step by step i got i build up. But now i got stuck with the if/then code part
What i am looking for, it it receives code 011001110100110100001110
then send 110011010000010110101000
I hope somebody can set me to the right direction.
I tried to search for an example. Thoughed i found something with the esphome 433 gateway. Tried to copy it and modify it to my wish. But running from one to another error.
I think i found the error.
There was a line “on_rc_switch” in it, but without the correct code after it.
The code doesn’t give any error. Can compile and upload.
When i push a 433mhz button, this is received and performs the send command in the log.
But in real time it isn’t sending anything. How do i know this, i have another esphome running with a receiver. It receives the push button. But not the switch command from the first esphome.
looks like something around this part of the code " - remote_transmitter.transmit_rc_switch_raw:
" doesn’t work. Is this because i programmed something wrong?
Does this type of code work?
With the focus on how i defined “protocol”?
When looking on “ESPHome Remote Transmitter” then i can’t find that the code is written like this. But looking at some examples, i see sometime people use this way, to define the protocol.
The reason for me, that there is no protocol number in de library, that works with my device.
Otherwise i need to look at custom version, but i do not prefer. Not easy to do when i read it (i am not a programmer person)