Why there is a generalized IRac.cpp for Air Conditioning devices but not for other device types? #2062
-
I landed on this repository while exploring Tasmota IR Communication. There I saw two commands, IRsend and IRHVAC. IRsend needs to manually send IR Codes for each control action. Whereas using IRHVAC I can simply send values like Since Tasmota uses this library I started exploring this. Here, I see there is a generalized I would like to know why there is no generalized implementation for other device types like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no need, and it would be to large. With ACs you need to keep state, since a IR sequence is not just the button that is pressed, but all the data on the remotes display. For TVs etc it is one code per button, no state is needed. (And how many different remotes are there?) There is collections for that kind of codes, that kind of data does not make sense to keep in a programming language. |
Beta Was this translation helpful? Give feedback.
There is no need, and it would be to large.
With ACs you need to keep state, since a IR sequence is not just the button that is pressed, but all the data on the remotes display.
For TVs etc it is one code per button, no state is needed. (And how many different remotes are there?) There is collections for that kind of codes, that kind of data does not make sense to keep in a programming language.