I’m using hub datetime variables in rule machine to establish periods when I automatically change my thermostat between heating and cooling. Since I’m only using the date (not time) part of the variable in my rule machine routine, I created variable connectors so I could use a “variable Date” template on my dashboard. When I try to set the date via this dashboard template, it says invalid date and doesn’t change the date of the variable. I opened the variable connector directly and tried to set the date and I get the same results.
First you don’t need to use a variable connector. anymore. You can display variables directly on the dashboard. In fact I think they plan on doing away with variable connectors at some point. Or at the very least discourage their use.
You post sounds like something I posted about a couple weeks ago. In my case I was using a variable. There was a bug, but after it was fixed I still saw the issue. It turned out to be something cached in my browser. Once I cleared the cache it worked as it was supposed to.
You problem may be because you are using a variable connector. With a variable if the date/time variable only contains a date or a time then the dashboard will automatically set up the edit window for whichever it is.
I want to use the connector because I’m only interested in the date value and I don’t want the time to be displayed. I like the way that the tile formats with the variable connector better than with the global variable.
Here are a couple of issues I’ve discovered.
-
If I edit the dashboard via a browser I can set the tile to use a variableDate template but if I edit it via the phone app, that template doesn’t exist.
-
When I edit the connectorDateTime device and try to issue the setDate command it fails and returns a null value. However, if I put a date in the setDate field then click the setTime command, it successfully sets the variables date.
I’m attaching some screenshots.
I missed the last part of what you said and I cleared the time value from the variable. You were correct and I’m using the variable now instead of the connector. Thanks!