arduino-home-assistant icon indicating copy to clipboard operation
arduino-home-assistant copied to clipboard

Request: RemoteReceiver

Open corvin78 opened this issue 1 year ago • 3 comments

Hi,

At first, thank You for great project!

I am trying to use infrared and rf (315MHz) remote controllers with my homemade relay controller. Thanks to your library I can flip relays from HA as well. I did implement remote controll of my relays with Arduino-IRremote library and it works perfectly fine for flipping relays, but I would really like to get the remote controll presses back to HA for automations with other devices. Remote Receiver is part of ESPHome https://esphome.io/components/remote_receiver.html. Is there a possibility to add that funcionality to your library?

Regards, Łukasz

corvin78 avatar Oct 01 '22 12:10 corvin78

Hi @corvin78,

The main and only purpose of this library is to provide an easy-to-use wrapper for MQTT communication. I can implement an example with an IR controller as part of the coming release (#81).

dawidchyrzynski avatar Oct 04 '22 07:10 dawidchyrzynski

Hi,

Thank you, simple example would be great help!

Regards,

corvin78 avatar Oct 04 '22 12:10 corvin78

@corvin78
Basically you have to define a switch device and set it's state depending on the remote control code received. have a look to the setstate() method switch object.

romoloman avatar May 19 '24 13:05 romoloman