#SMLight infrared event entity

1 messages · Page 1 of 1 (latest)

scarlet dust
digital coyote
#

Ah

scarlet dust
#

but we don't have receivers in the infrared platform yet (still needs to go trough an arch discussion)

digital coyote
#

That sounds like indeed like we should revert that then

digital coyote
#

because in that case I'd rather push back and have them wait instead of implement it like this

scarlet dust
#

in my head, the proper path would be:

  • add receiver support to infrared
  • add a universal_remote integration that allows generic IR learning, so that individual integrations don't have to implement it
digital coyote
#

cc @versed crown

versed crown
#

I did look briefly at infrared first, but it didnt seem complete yet where handling raw codes, so used remote instead.

digital coyote
#

Can you define what you're missing?

#

Because the idea of the infrared entity isn't too just allow the user to just put in a string and make it work, it's more that other integrations are able to transmit IR via it

versed crown
#

I guess I thinkg of two possible use cases

  • learn a (universal) command, to be able to control that device.
    or
  • receive a code to trigger automations
#

although the learning part on top of remote entity is not nicest (where do we store codes etc)

digital coyote
#

Right so infrared is not complete, we still need receiver code and currently we have only a single integration

#

The current goal is to get more IR codes into HA

versed crown
digital coyote
#

Yes, but a remote entity is not it then

versed crown
#

ok, that is fine, I am happy to work toward something else

digital coyote
#

Like if you now want to send custom codes you probably need to look at a custom service

#

I am not sure if broadlink supports custom codes and how it does that

versed crown
#

I've not used it, but broadlink use the remote platform learn_command

#

it also probably supports a huge number of (cloud base?) preset remotes I guess

digital coyote
#

Like the thing is, we're currently working on it as we see fit

#

I am not aware of planning, but I can see the platform getting more features in the coming months

#

So in a way I'm like, it'd be cool if you can help us drive the changes

#

Yes you can build custom stuff for it right now, but you'd probably deprecate it again quite soon

versed crown
#

we are pretty much just a dumb IR receiver/transmitter, closer to how the Zigbee Tuya Universal remotes work (which arent particularly user friendly either!).

digital coyote
#

And I think our goal currently is to use IR in your home without having to go through trouble to set it up

eager lava
#

Broadlink support custom codes. You prefix the command with b64: and then put the raw broadlink command in.

#

I absolutely think raw codes should be supported by infrared. (Raw as time on/off)

scarlet dust
#

SMLight infrared event entity

versed crown
#

What should do with the Remote platform that was merged previously? should it be reverted first, or could just replace it in PR adding Infrared?

digital coyote
#

Reverted first please

versed crown
#

ok will do

scarlet dust
digital coyote
#

The pr for infrared platform is open btw

scarlet dust
#

reviewed it already 🎉

digital coyote
#

Ah great

#

Wanted to ping you on it but my train arrived