I would like to set up a Remote Receiver to trigger a binary sensor when it detects any signal. Reading through the documentation, there only seems to be the option to trigger a binary sensor on an individual code from an individual manufacturer’s remote.
I’m trying to use my IR sensor to detect presence in front of the television, so for my purposes, if the sensor detects any IR code at all, from either my TV or soundbar remote, I would like it to trigger a binary sensor. Is it possible to do this?
remote_receiver:
pin:
number: GPIO13
inverted: True
mode: INPUT_PULLUP
dump: all
on_jvc:
code to set presence true
on_samsung36
code to set presence to true
The remote_receiver binary sensor is acting as, essentially, a dummy variable, since it’s not making use of the remote_receiver platform for the intended purpose (I’ve set the data hex value to some random value), it’s just acting as a variable that I can toggle manually using the lambda code. There is definitely some way to create a binary sensor variable without a specific platform, but I couldn’t find it.
I’ve made use of the automation part of the remote_receiver platform to run the lambda code, where I manually toggle the state of my living_room_remote_detected entity, essentially emulating the function of the remote_receiver platform, but it now works for any button on both of my remotes, and not for any specific data value, which is exactly what I was looking for.