I am planning to use a Broadlink RM Mini 3 to control an air conditioning unit. Ideally I would have a panel that looks somewhat like a generic air conditioning remote to control the temperature, but it looks like a more easily achievable option is to setup an input slider, with each position being a 1 degree temperature increment.
Has anyone found a clean way to map the values of the slider to a packet value in broadlink/send_packet? For example, I need to send one packet when the value is 20C, a different one for 21C, etc.
I see an example to call a service with the value of an input_slider, but I can’t see a clean way to do something like a switch statement based on the value.
Has anyone built anything like this?