SmartIR
SmartIR copied to clipboard
Switching on a two-digit channel number using the "-/--" button
On my Elenberg TV, to turn on a channel number over 9, you must press the "-/--" button and then the two-digit channel (three-digit channel). Now in the SmartIR component, two-digit channels are turned on by successively pressing the numbers that make up the channel. On my TV (to turn on channel 14 for example) this will turn on channel 1 first and then 4. This is not correct. It should be correct to first press the "-/--" button and then the "1" and "4" buttons (you can also press "OK"). Tell me how can I solve my problem?
Home assistant version 2022.6.5 IR command transmitter is ESP wemos D1 mini using ESPhome 2022.3.1 SmartIR version 1.17.6
You can add an array of commands. Check channel 10 in the example below https://github.com/smartHomeHub/SmartIR/blob/master/codes/media_player/1020.json
I did as in the example (also using an array). EspHome does not understand this format. Then I made a raw code by connecting the three codes together. ESP sends it, but only when I select channel 10 in the sources. If I tell the voice speaker "Turn on channel 10", the channels still turn on in sequence (channel "1" first, then channel "0"). Works through the function: async def async_play_media ()
.
Perhaps there is no simple solution? I may have to adjust the media_player.py
file
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.