Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help comparing sensor date from Nightscout to use as an automation (stale data/reading detection) #23

Open
andypituch opened this issue Jul 30, 2024 · 0 comments

Comments

@andypituch
Copy link

Hi!

I have created several automations to control a smart bulb to show a different color based on the BGL value... I have low, high and in-range with no issues (once I got the hang of some triggers in Home Assistant... I'm a noob)

I would like to make a automation to change the smart bulb to a different color (yellow) if the date/data reading from NS is over 60 minutes/1 hour old. I see the DATE attribute has the last reading timestamp... how can I create a trigger that compares that date (NS date versus current timestamp)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant