Newbie question

Hi

I am new to Hubitat having migrated from Pi+Node-Red. So far so good.

I have migrated my Zigbee devices and set up controls using Simple Automation Rules and Basic Rules.

I want to display Sunrise & Sunset times on my dashboard.

I have tried a couple of recommended methods but they don't seem to work.

I have used the Rule Machine to create a local variable Sunrise2 of type DateTime and created a rule to set Sunrise2 to sunrise time. Using the Run Actions button I can see the value of Sunrise2 changes to the correct value "2021-08-02 05:32".

When I set up a tile for Sunset2 in my dashboard using the Variable Time template the display shows "05:05" which was the default time I set when I created the local variable.

What am i doing wrong.

Thanks for any help.

Hi

What sort of worked for me was the following:

Change the Device type to Connector variable for Sunrise2

Change the tile template to Attribute and select Variable from the attribute drop down list.

The date/time was shown as "Mon Aug 02 05:32:00 BST 2021".

Not an ideal format but at least I have the information needed.

I guess that there is a system problem related to the date/time format. The above worked for both Europe/London and GV time zones.

Thanks

Chris

1 Like

Hi

Further follow up on this.

I found that creating a local datetime variable and setting it to sunrise or sunset and then adding 1 minute to the variable was shown correctly in the dashboard tile as type Variable time.
Hope that this may help.

1 Like