Closed Minims closed 4 months ago
fixed with that:
services:
- service: hdmi_cec_send
variables:
cec_destination: int
cec_data: int[]
then:
- hdmi_cec.send:
destination: !lambda 'return static_cast<unsigned char>(cec_destination);'
data: !lambda 'std::vector<unsigned char> charVector; for (int i : cec_data) { charVector.push_back(static_cast<unsigned char>(i)); } return charVector;'
And it works with esp-idf
framework, thx !!
On more thing, is there a way to template source
i have tried, but i'm unable to compile.
@Minims Just added this right now. Thanks for the feedback!
Hello,
First of all thanks for this work !
I'm trying to get a Service in HomeAssistant. So i define this in esphome:
but i have this error :
Any Idea how i can fix this ?