@mediatech15
Thanks for this widget. Love it so far.
But I always get a warning in the logs if the page is shown and the widget gets displayed:
2023-02-28 19:42:49.541 [WARN ] [e.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: undefined
2023-02-28 19:42:49.739 [WARN ] [e.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: undefined
My code of the widget (I have made the props.update as optional, because I donāt have this):
Making the props not required will not make the resulting code below not take them into account. There is light checks for things but some things may need to be edited/removed if you donāt have them. Example if you donāt use a sensor you will need to modify the logic to not need the sensor item to make updates. (thatās my guess to the part your not using) The warnings just mean that a state is attempting to be retrieved for an unknown item, which makes sense if you arenāt using all the same items I configured it for.
first, my programming skill in yaml is very fundamental, Iāve tried to implement a visibility rule for the Battery level.
I would like, that the font is displayed at under 3.4V.
of course, it doesnāt work Iāve googled a lot, but didnāt find a solution for me or code that I can use and modify.
Maybe someone can help me I would appreciate it! =)