Hello! I've had my hubitat about a week now and loving the potential. I come from a long background of coding wordpress and php, with a little javscript here and there. I'm certainly struggling to learn groovy, and find the documentation a bit challenging at times.
However, I've muddled my way through my first coding endeavor. This is a driver which simply generates a new horoscope message of the day. It has a few other attributes returned from the API, and schedules a cron to run once a day at midnight to get new data.
I have two questions which I'm still unsure.
- Is it possible to subscribe to event changes from a driver? Or does it have to be from an app?
- On this horoscope driver, when editing the device, I click save preferences. But the attributes on the page do not update until a second page reload. The dashboard tile updates immediately. Is this normal behavior to need a second page reload of the device to see the updated results?
I certainly welcome any constructive criticism.