This is a fantastic widget. I would really like to get it working but even though you have crystal clear instructions I am struggling.
My machine states are “OFF” and “ACTIVE”. That’s it. The Item is called washingmachinemode_mode and it is currently set to “OFF”. I tested =items.washingmachinemode_mode.state in the expression but it does not show me OFF in the footer or where the widget is using it.
So I tried to adapt the expression to set the correct state for the widget to evaluate all possible String values. See below my config. Still no success.
For the minutes running I tested using String or Number as input. But it only shows the value correctly in the edit mode while editing a page. During run mode the runtime within the machine stays empty.
Hmmm I think the ‘ symbols in the state expression may be the problem here. Try to remove them and see if it works. I think if you write it like that it is just interpreted as a string.
For the runtime you should use a number item, this is fine. The runtime is only shown in the widget when the state is RUNNING so maybe this is why you only see it in editing mode?
I forgot to mention that it works now and that the state expression was correct as it is. It was just a weird behaviour and as soon as the machine really started and all that stuff was actually used it worked
Or maybe there was an OpenHAB restart in the meanwhile.
Yes, you have understood that correctly. The “calculation” of the state is done by the State-O-Matic binding and returns a string.
However, as you can see in my following post, I tried it with a transformation under “State Description” | Options. Actually, the item should directly return the values that the widget expects? When I look at the item itself, that is the case.
After playing with it for half an hour now, it works… I do not understand! Browser cache?
The config is now as above in my screenshots. Where should the status be displayed?
Thank you. Now I get it.
Great widget by the way! Thanks for making your work available.
In case you wonder why I use the State-O-Matic binding: it gives me some extra info, that’s quite nice …
Hello,
Thanks for the super widget, in which a lot of work and knowledge has gone!
I have a MIELE washing machine that communicates via the cloud.
I saved the status of the MIELE account in an item (getThingStatusInfo(“mielecloud:account:xxxxxxxxxxx”)).
The title background should be colored depending on the item.
I‘m sure it can be done but I’ve never tried that myself. The question is however not directly related to this widget but a more general Main UI question. There are lots of highly customised Main UI examples in the forums where you might already find examples on how to apply a style to the header of a card.
It works fine. You can add an expression there like they are used in other parts of the widget to change the Color based on the status of your machine.