MindFreeze / ha-sankey-chart

A Home Assistant lovelace card to display a sankey chart. For example for power consumption
MIT License
348 stars 15 forks source link

Lanes skipping columns use wrong color #178

Closed amaximus closed 3 months ago

amaximus commented 3 months ago

Checklist:

Release with the issue: 2.0.2

Last working release (if known): ?

Browser and Operating System: Chrome 123.0.6312.122, Windows 10

Description of problem:

Lanes that span across multiple columns display wrong color. See attached screenshot:

dep_tree

(ha_venv3_12) pi@raspberrypi:~/homeassistant_conf $curl -H @hass_header.txt http://192.168.1.156:8123/api/states/sensor.dep_b3_heat
{"entity_id":"sensor.dep_b3_heat","state":"9","attributes":{"icon":"mdi:radiator","friendly_name":"Fűtés"},"last_changed":"2024-04-15T17:55:45.388859+00:00","last_reported":"2024-04-15T17:55:45.388859+00:00","last_updated":"2024-04-15T17:55:45.388859+00:00","context":{"id":"01HVHED4KC1F6DGZPZQH5MYCN3","parent_id":null,"user_id":null}}(ha_venv3_12) pi@raspberrypi:~/homeassistant_conf $curl -H @hass_header.txt http://192.16curl -H @hass_header.txt http://192.168.1.156:8123/api/states/sensor.dep_shelly1_heat
{"entity_id":"sensor.dep_shelly1_heat","state":"1","attributes":{"icon":"mdi:electric-switch","friendly_name":"Shelly1 fűtés"},"last_changed":"2024-04-15T17:55:45.444969+00:00","last_reported":"2024-04-15T17:55:45.444969+00:00","last_updated":"2024-04-15T17:55:45.444969+00:00","context":{"id":"01HVHED4N42DAJ1BJXTB3TPF2N","parent_id":null,"user_id":null}}(ha_venv3_12) pi@raspberrypi:~/homeassistant_conf $curl -H @hass_headtail -7 lovelace/views/dependencies.yaml
### column 6
      - entities:
          - entity_id: sensor.dep_b3_heat
            color_on_state: true
            color_below: rgb(3,138,255)
            color: mediumaquamarine
            color_limit: 9
(ha_venv3_12) pi@raspberrypi:~/homeassistant_conf $

Javascript errors shown in the web inspector (if applicable):

Additional information: