HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
726 stars 185 forks source link

Cannot style LED color #717

Closed matsekberg closed 6 months ago

matsekberg commented 6 months ago

Perform all steps below and tick them with [x]

Describe the bug

I try to change the color of the LED object

To Reproduce

Version 0.7.0

{"page":1,"id":0,"comment":"---------- SALON ---------- 320x480", "swipe":1,"bg_color":"black", "bg_grad_color":"black"}

{"id":11,"obj":"led","x":10,"y":60,"w":20,"h":20,"color":"#FF0000"}
{"id":12,"obj":"led","x":60,"y":60,"w":20,"h":20,"color":"#FF0000","val":200}
{"id":13,"obj":"led","x":110,"y":60,"w":20,"h":20,"color":"#FF0000","val":10}

{"id":21,"obj":"led","x":10,"y":100,"w":20,"h":20,"color":"#00FF00"}
{"id":22,"obj":"led","x":60,"y":100,"w":20,"h":20,"color":"#00FF00","val":200}
{"id":23,"obj":"led","x":110,"y":100,"w":20,"h":20,"color":"#00FF00","val":10}

{"id":21,"obj":"led","x":10,"y":140,"w":20,"h":20,"color":"#FFFF88"}
{"id":22,"obj":"led","x":60,"y":140,"w":20,"h":20,"color":"#FFFF88","val":200}
{"id":23,"obj":"led","x":110,"y":140,"w":20,"h":20,"color":"#FFFF88","val":10}

Expected behavior

IMG_5A7A77D47515-1

Screenshots or video

screenshot (1) Liten

sfromis commented 6 months ago

Looks like you copied an example from HASPmota, without being clear about this. While this is using a jsonl format "heavily inspired" by openHASP, it is not a guide about how to do things in openHASP.

matsekberg commented 6 months ago

I agree, but its an example, one of many i have tried.

marsman7 commented 6 months ago

Take a look at the IDs of the objects, there are duplicates.