SmartIR
SmartIR copied to clipboard
Esphome service / action definition to be called by homeassistant
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