ok, i am going to make some template lights, i can manage those
but i am stuck with the state, i can read the state of my lights with a command line sensor like below :
First problem:
the output is more the 255 characters, this is not allowed in HA
see output here if i do it from putty:
but i only need the ID + value1
ID : id if my light
value1 : can be 0 = OFF , or 100 = ON
how can i make my sensor extra only that data , so i am below < 255 characters?
second question
how can i create my value_template on my light to represent ON/OFF for state?
Yep. The only downside is trying to extract the appropriate pieces since this will just be a string. But there are some regex template filters that might help.