ildar170975

Results 697 comments of ildar170975

Seems to be same - https://github.com/iantrich/restriction-card/issues/66

Seems to be same - https://github.com/iantrich/restriction-card/issues/71

![image](https://user-images.githubusercontent.com/71872483/181646098-56685c24-b978-4467-aef1-3f2cb37acbc5.png)

How to get a date in a format "DD/MM/YYYY hh:mm:ss" from a timestamp value: ``` - name: last_changed data: last_changed modify: |- if(x.length == 0){"-"} else { var date =...

How to create a weblink from an attribute: ``` - name: object data: mapurl modify: '''Route''' ``` ![image](https://user-images.githubusercontent.com/71872483/190234178-c4fca1a0-7b10-4628-9f58-5c8bd674dcc7.png)

How to draw batteries: ``` - name: battery data: state modify: >- function getColor(aLevel) { if ((parseFloat(aLevel)||0) == 0) return 'brown'; else { if (parseFloat(aLevel) = 80) icon = "mdi:battery-80";...

Seems that I see the same issue. If I open Code Inspector for a flex-table card, I observe a permanent updating of the card: ![a1](https://user-images.githubusercontent.com/71872483/175750573-6415d752-e2aa-4bf4-a245-19f738308516.gif) See that flickering on the...

> I'm doing wrong for battery levels? Probably you should use `x` instead of `x.state`. Once I made this test example which seems to work fine: ``` modify: |- function...

@daringer Seems that `sort_by` option cannot handle these "colored values" properly? ![image](https://user-images.githubusercontent.com/71872483/174410501-4eb94123-d51d-4e2f-81df-8f838cb5b3c7.png) A possible workaround could be adding the same column WITHOUT colouring, sort by this column and then hide...