An HASS service to send messages to nodes
Home Assistant
22
Posts
4
Posters
6.0k
Views
3
Watching
-
It works like a charm in version 0.22.1.
For complex sequences of IR codes, I just send a 'fake' code and then the node selects the appropriate sequence.
Thanks again!
Thanks for the feedback and live testing!
-
Let me complete the example given for the node when you use V_IR_SEND.
In order to send IR codes you need to transform the
code in an unsigned long:char ircode[11] = {0}; // in case your code takes the form of 0xE0E0FF0F ... if (message.type == V_IR_SEND) { String hexstring = message.getString(); hexstring.toCharArray(ircode, sizeof(ircode)); ... // get the code as an unsigned long unsigned long code = strtoul(ircode, NULL, 0); // with IRLib send the code to TV sendSAMSUNG(code); ...Very simple, ** but is hard to find an example**!