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.

Sensor next_alarm not triggering on LG G8S phone

See original GitHub issue

Home Assistant Android version: 2021.2.2-full

Android version: 10

Phone model: LG G8S ThinQ - LM-G810EAW

Home Assistant version: 2021.2.3

Last working Home Assistant release (if known): Possibly 2020.12 or 2021.1 but could be related to app version

Description of problem:

Next alarm sensor doesn’t trigger for a LG G8 sensor but does for a Samsung S20. No errors visible in the log.

Example simple automation:

- alias: zzztest
  trigger:
  - platform: time
    at: sensor.lm_g810_next_alarm
  action:
  - service: light.turn_on
    entity_id: light.test_lights

State is reported as: 2021-03-01T11:46:00.000Z

State attributes:

Local Time: 'Mon Mar 01 11:46:00 GMT 2021'
Package: Unknown
Time in Milliseconds: 1614599160000
friendly_name: G8S Next Alarm
icon: 'mdi:alarm'
device_class: timestamp

The S20 has the same state timestamp format but the state attributes “Package” is not unknown so maybe this is the issue?:

Local Time: 'Sun Feb 28 12:21:00 GMT 2021'
Package: com.sec.android.app.clockpackage
Time in Milliseconds: 1614514860000
friendly_name: S20 Next Alarm
icon: 'mdi:alarm'
device_class: timestamp

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem:

Additional information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dshokouhicommented, Feb 26, 2021

I just tested the scenario on my end and I do not see any issues with the alarm being recurring, the state changed to the next scheduled alarm in the Google Clock app. Have you checked that your HA system time is correct and that your cell phone time is up to date?

We will not be adding any delays to a sensor reporting interval I’m sorry. This sensor updates as soon as it gets a state change.

0reactions
Morphy99commented, Feb 27, 2021

I’ve just looked at the time differences and for some reason my phone was +5s ahead. After a reboot it’s corrected itself and also testing the alarm, it no longer goes to unavailable when sounding. Strange. I think I will stay with the minutes before sensor just in case it reoccurs. Thanks again for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next alarm sensor won't stick on the right time
Samsung needs to fix this in their own firmware. Check the package attribute for the sensor to see which app is setting the...
Read more >
[LG Mobile Phones] Troubleshooting The Proximity Sensor On ...
For next steps, check out these useful links:Help Library Support: https://www. lg.com/us/support/help-libraryTo request a repair: ...
Read more >
10 Common LG G8 Problems & How to Fix Them
Whether that's screen glitches or rotation, lag, app crashes, or other minor things, try rebooting your phone.
Read more >
LG G8 ThinQ: 11 Key Settings To Change On Your New ...
Got an LG G8 ThinQ in your hands? There are plenty of settings you can tweak to personalize the phone a little more,...
Read more >
My proximity sensor is not working : r/lgg8
*#546368#*820#, the 820 is the model number. Which should be diffrent for other lg phones. My G8's model is G820n.
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