SmartIR icon indicating copy to clipboard operation
SmartIR copied to clipboard

Esphome service / action definition to be called by homeassistant

Open gpaesano opened this issue 1 month ago • 0 comments

the api example wont work due to new implementation of FixedVector in ESPHome, here is my solution:

actions: - action: send_raw_command variables: command: int[] then: - remote_transmitter.transmit_raw: #' this is not working anymore due to different types conversions command: int[] is now a esphome::FixedVector #' code: !lambda 'return command;'
#' this is the workaround: code: !lambda ' std::vector v; v.reserve(command.size()); for (auto &x : command) {v.push_back(x);} return v;' carrier_frequency: 38000hz

gpaesano avatar Nov 21 '25 19:11 gpaesano