I’d like to send the dumped RC codes send to HA, but i cant find any documentation about it. Does anyone have a sample yaml how to do that ?
Sorry but curious to know why you want to do such thing ?
For my comfort…
In my house the open/close states of the windows and doors are monitored using rf remote protocol. The shutters are controlled this way as well, so i’m working with more than 40 rf code, not to mention the IR rc codes.
If i want to add or change a code, i have to OTA reflash the receiver module… Ota most of time works well, but sometimes the esp module gets crazy after ota reflash, in this case i have to reflash it through serial. The modules are hidden in my house, so the serial reflash is a bit complicated… It would be definitely much better, if esphome could send the received value to HA, and the HA could process the data.
I think the homeassistant.event will be the way, the esphome yaml looks like bellow, so i’m working on it.
on_rc_switch:
then:
- homeassistant.event:
event: esphome.rf433received_code
data_template:
value: !lambda "return x.code;"