Very sorry to revisit this issue but I have not found a solution to display the data in a Dashboard.
I have two hub variables that are DateTime. They are both updated by a number of Rules; switches that set a start time, wait, then set an end time.
I can display the DateTime variables, as HH:MM am/pm, but I have not found a way to change the background color.
I tried to make connector variables and setting them as variable-strings, but with that I have not been able to get the data to display through the connector variables. The rules format the DateTime data to an appropriate string but the data is not displayed.
I would simply like to control the background color; anything other the dull gray. I have made connectors for the two hub variables but can't see them in the Rule.
I have created a hub variable in another situation and it does show up and gives me the options to 'set string' but with the connector variables I created for the DateTime Variables they don't show up.
I can display the hub variables directly but, as above, they have a gray background and I don't seem to be able to change it.
I tried css in the CSS section of the Dashboard Advanced section but it does not change the background. I may have invalid css but I can't find a good example.
How are you wanting to set the background color? I.e. what values of the variable should match to each color? In the other types of tiles it is the different states, such as on and off or open and closed you can match to different colors. You will need to define similar relationships for your variables, either through CSS or possibly in the layout JSON. That said, for date times I am expecting you will want some other device / variable / tile to use for the background status color, rather than the datetime variables themselves.
I see that those don't seem to work when creating the tile using the variable directly, they must be the templates for the connectors. And they seem to work when using the connector and the Variable Time template.