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.

Invalid timestamp

See original GitHub issue

Describe the bug

I was getting “Unavailable” on v.1 on alarms and timers but now get “Invalid Timestamp” on v1.1.0

Version of the integration

V1.1.0

Glocaltokens Version (Underlying package)

Add pip information here.

Logs


2021-03-25 20:15:37 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-03-25 20:15:43 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform meross_cloud is taking over 10 seconds.
2021-03-25 20:16:37 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: google_home
2021-03-25 20:16:47 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-03-25 20:16:47 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-03-25 20:16:47 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-03-25 20:16:47 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-03-25 20:16:47 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-03-25 20:16:47 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-03-25 20:16:47 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.

Debug log

logger:
  default: debug
  logs:
    custom_components.google_home: debug

Add your debug logs here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leikoiljacommented, Mar 27, 2021

Thank you, @KapJI, for taking a look at this. I would rather go with your 2nd proposal and use UNAVAILABLE just as you mentioned mobile app sensor uses 😃 That way we would still keep device class that enables sensors to be used in automation and blueprints without problems (there are some nice popular blueprints out there that filter devices by device_class being DEVICE_CLASS_TIMESTAMP (see this PR)

1reaction
craigmcgowancommented, Mar 27, 2021

To hopefully better explain the “Invalid Timestamp” issue.

Previously, an _alarms or _timers entity would display as “Off” or “On” depending on if any were set.

However, they now try to display as a formatted timestamp. So now show as “In 7 hours” if a timer/alarm is set (Rather than just “On”). If no alarm/timer is set they display as “Invalid Timestamp” (Rathe than just “Off”)

Please see below

image

I hope that clears it up.

Personally speaking, the alarm/timer entities contain the set alarms/timers in an array, I think the entity itself should just show “Yes” or “No” as per original functionaliy.

Thank you for your hard work.

P.S. Also notice your version number has been dropped to 0.0 in my screenshot above, I think it used to show. Ive now updated to v1.1 and it doesnt show.

Read more comments on GitHub >

github_iconTop Results From Across the Web

15.00 - 6760 Invalid timestamp. - Teradata Database
6760 Invalid timestamp. Explanation: This error occurs when the specified timestamp is invalid. For instance, timestamp values like ...
Read more >
Teradata BTEQ - Invalid timestamp issue - Stack Overflow
The error message indicates that S_ORDER_ITEM.LAST_UPD is not a date/timestamp (char?) and the automatic typecast to a timestamp fails due ...
Read more >
Invalid timestamp received; - Common causes and quick fixes
A detailed guide on how to resolve errors related to "Invalid timestamp received;" ... Invalid timestamp received; – How to solve this Elasticsearch...
Read more >
Invalid Timestamp Error When Change Data Type From String ...
Invalid Timestamp error occurs when changing the data type from string to date and time in Tableau Desktop with Google BigQuery data.
Read more >
ORA-08186 invalid timestamp - Oracle Communities
select count(*) from fq AS OF TIMESTAMP TO_TIMESTAMP('05-APR-20 14:45:34','DD-MON-RR HH24:MI:SS');. ORA-08186: invalid timestamp specified.
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