question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sensors flap between 0 and 'unavailable'

See original GitHub issue

Once sensor reaches 0, it starts flapping between unavailable and 0. This is after recent update (which improved network I/O quite a bit - thank you!)

sensor.power_clothes_washer_15_1min                     487                            2020-12-02T17:21:03.588075+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     436                            2020-12-02T17:22:03.737303+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     7                              2020-12-02T17:24:06.256010+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     2                              2020-12-02T17:25:06.713012+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-02T17:26:06.747210+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-02T21:13:30.305274+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-02T21:14:31.130060+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-02T22:14:32.241214+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-02T22:15:33.247826+00:00 (a day ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T01:15:46.227913+00:00 (19 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T01:16:47.191826+00:00 (19 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T03:16:53.181895+00:00 (17 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T03:17:54.299253+00:00 (17 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T06:18:04.169897+00:00 (14 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T06:19:05.485311+00:00 (14 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T09:19:14.179166+00:00 (11 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T09:20:15.224632+00:00 (11 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T10:20:15.160279+00:00 (10 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T10:21:16.075322+00:00 (10 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T11:21:18.183877+00:00 (9 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T11:22:19.088437+00:00 (9 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T13:22:25.265101+00:00 (7 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T13:23:26.140649+00:00 (7 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T14:23:28.169259+00:00 (6 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T14:24:28.995402+00:00 (6 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T15:24:28.499220+00:00 (5 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T15:25:29.009039+00:00 (5 hours ago)
sensor.power_clothes_washer_15_1min                     unavailable                    2020-12-03T16:25:29.299745+00:00 (4 hours ago)
sensor.power_clothes_washer_15_1min                     0                              2020-12-03T16:26:30.255591+00:00 (4 hours ago)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
magico13commented, Dec 4, 2020

It does look to be hourly which is when the token would expire, then it works a minute later because it refreshes the token. So it looks like it’s not accurately keeping track of when to refresh the token. I should be able to either adjust the timeout so it refreshes earlier (eg after 50 minutes instead of an hour) or have the calls catch that response, refresh the token, then try again.

0reactions
skynet01commented, Jun 12, 2021

Me too! I think this might be the same issue that’s bin reported with a few different tickets out there related to entities breaking.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cisco DNA Assurance User Guide, Release 2.2.2
Interface is down. Wireless Controller/Switch/Router unreachable. AP Disconnect from WLC. No activity on radio.
Read more >
Surepetcare flap entity unavailable and service calls not working
After upgrading to core-2021.5.0, the state of the sensor for my Sure Petcare flap became 'unavailable', instead of representing the true state ...
Read more >
Using it to Estimate Local Blade Inflow Conditions and - WES
Based on this model, we developed an observer that estimates the effective local angle of attack and relative wind velocity of a blade...
Read more >
Vario roof not working? Might be your Trunk Flap. Easy Fix DIY
If your Vario roof stops working one day, it could be that the trunk flap is not sitting tight against the trunk lid....
Read more >
Near-Infrared Spectroscopy (NIRS) versus Hyperspectral ...
HSI and NIRS flap survival were 92.5% (95% CI: 83.3–96.8) and 99.2% ... is currently not possible, since sterile sensors are not available....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found