I have nanoleaf shapes (18 in total) within home assistant they show up as 1 light. while you can actually control all 18 of them seperately.
I managed to control them all individualy using a rest command. But it would be allot nicer if the integration was edited to show all the shapes as individual lights in home assistant. It must be possible… Nanoleaf does support discovery of all the individual shapes with their id number after which they theoretically can be integrated as individual lights in home assistant. I will post the code i use to control all lights seperately down below. Maybe someone can take the time to add this to the integration?
Just bought the nanoleafs, assuming this would be default only to find out you cannot address them individually. Thats the whole point for us “HA” users i would say. But above snippet will have to do for now.
I know, thank you. I used my own IDs. Just didn’t want to make it more complicated by bringing new numbers into the mix.
Speaking of IDs: You can get your panel IDs if you paste this in your browser (IP and API key needed):
http://[ip]/api/v1/[api key]/
Is it possible to not overwrite states? For example, the script above sets panels 1 and 2, but switches off all the others. Sometimes I just want to change one tile while leaving the others as they are.