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

All temperature and additional echo sensors no longer displaying consistent information #2775

Open
Reachushere opened this issue Dec 27, 2024 · 37 comments

Comments

@Reachushere
Copy link

home-assistant_alexa_media_2024-12-27T16-53-11.429Z.log
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Echo Temp

Describe the bug

Until about two months ago, my temperature sensors for my echo devices were able to display on my dashboard without issue. I have 15 echos and only a handfull of them have temperature sensors. Then suddenly, they started saying "Unknown" or "Unavailable" but only sometimes. When I look at the graphs for the sensors, I can see that at random intervals, the temperature is being received by Home Assistant, but for large periods of time, HA is receiving no data. I have checked the echo devices themselves in the Alexa app, and the temperature sensors are working fine, even when there is no temperature displaying on my dashboard. So the issue is periodic, specific to Home Assistant, and occurs on multiple Echo devices, and not at the same time. Sometimes one echo will display the temperature sensor on my dashboard, while another echo won't display it. It also seems to vary between "Unknown" or "Unavailable" without any reason. I have reset all of my echo devices, both short and long resets, removed them from Alexa, and it does not result in the temperature displaying on my dashboard again right away - sometimes a few hours later one will show up for an hour or so and then it goes back to Unavailable or Unknown. The devices are not connected to any bluetooth devices, nor are they part of a speaker set. This occurs with my Echo Dots and my Echo (Hub).

To Reproduce

Unable to say how to reproduce because it is random.
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Temperatures should display consistently in custom:buttons as they used to

home-assistant_alexa_media_2024-12-27T16-53-11.429Z.log

Screenshots

The red circles show Echo temperature sensors. The other temperature sensors on the screenshot are not from Echo devices.

System details

  • Home Assistant version:
    Core
    2024.12.5
    Supervisor
    2024.12.0
    Operating System
    14.1
    Frontend
    20241127.8

  • alexa_media version (from const.py or HA startup log): 5.2.0

  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log): I'm not sure where to find this?

  • Is Amazon 2FA/2SV enabled <!---We will not debug login issues if unanswered---> (y/n): Yes

  • Amazon Domain: I don't know what you are asking for here?

Debug Logs (alexa_media & alexapy)
Please provide logs.

**Additional context**

My log is 394MB long, it seems to repeat alot of localtuya errors, so I had to cut it down in order to be able to attach it here.
@ballakers
Copy link

Screen Shot 2024-12-28 at 08 19 18 AM
Screen Shot 2024-12-28 at 08 19 28 AM
It seems the integration forgot the config setup, my include box was not checked but used to be. Easy fix for you though, just go to configure and check the box and hit save / may need to reload but should do automagically!

@Reachushere
Copy link
Author

Reachushere commented Dec 28, 2024 via email

@ballakers
Copy link

Okay then, mine was working previous and was now unchecked and then the temps came right back after I checked the box. Figured same happened to you.

@Reachushere
Copy link
Author

Reachushere commented Dec 28, 2024 via email

@Reachushere
Copy link
Author

Reachushere commented Dec 28, 2024 via email

@ballakers
Copy link

ballakers commented Dec 28, 2024 via email

@Reachushere
Copy link
Author

Reachushere commented Dec 28, 2024 via email

@ballakers
Copy link

ballakers commented Dec 28, 2024 via email

@Reachushere
Copy link
Author

Reachushere commented Dec 28, 2024 via email

@Reachushere
Copy link
Author

Reachushere commented Dec 28, 2024 via email

@ballakers
Copy link

ballakers commented Dec 28, 2024

Since this is from HACS are you deleting then restarting and then re-adding AMP and then restarting again? You see the two get.html and post.html files in your file editor / VS code? None of your screenshots came through so maybe try another file type. Also on line 10 of the get.html file does it say Amazon.com? That's what mine says so if yours says .ca try to sign in with amazon.com instead.

@Reachushere
Copy link
Author

Reachushere commented Dec 28, 2024 via email

@Reachushere
Copy link
Author

Echo Temp2
Echo Temp3

@danielbrunt57
Copy link
Collaborator

danielbrunt57 commented Dec 30, 2024

Amazon Domain: I don't know what you are asking for here?

I stripped your debug log down to just the log statements with "alexa":

2024-12-26 20:39:04.927 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-26 20:39:41.335 WARNING (MainThread) [alexapy.alexalogin] Domain amazon.com/ does not match reported account domain amazon.ca; functionality is not likely to work, please fix
2024-12-26 20:39:43.095 WARNING (MainThread) [alexapy.alexalogin] Domain amazon.com/ does not match reported account domain amazon.ca; functionality is not likely to work, please fix
2024-12-26 20:40:06.794 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('tuya', '01JACXEE084FSHJPSAWKRY74AB'): 623403.271900383, ('tuya', '01JACXT74HVQCF4Y1J811WGC42'): 623403.272047034, ('alexa_media', '01J4TYQTFBH85T9KV42N9RT64R'): 623403.386597265}
2024-12-26 20:40:11.425 WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f1463e12f90>,), {'entity_ids': [']}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()
2024-12-26 21:00:51.335 WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f1463e12f90>,), {'entity_ids': ['']}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()
2024-12-26 21:00:51.336 ERROR (MainThread) [custom_components.alexa_media] Error fetching alexa_media data: Error communicating with API: 
2024-12-26 21:21:21.334 WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f1463e12f90>,), {'entity_ids': [']}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

You have a region mismatch. The domain needs to be amazon.ca if your login email logs you into that region and is where the devices are registered.

@Reachushere
Copy link
Author

Reachushere commented Dec 30, 2024 via email

@danielbrunt57
Copy link
Collaborator

If you browse to amazon.ca and log in and then select Your Account > Devices, do you see your Amazon devices listed?

image

If your devices show as registered in amazon.ca, AMP configuration needs to show amazon.ca as well...

image

If the above is correct, scan your debug log for "429" or "Too many requests"...

@Reachushere
Copy link
Author

So I am getting a great lesson in understanding how logs work, I didn't know many of the things you've already pointed out, so thank you for this.

If I understood you correctly, yes I can see my devices in my Amazon account. AMP was configured using amazon.ca, I know I did that, and I did it again when I reconfigured after you and I first spoke. Also my echo's do work with Home Assistant, I can play music through Home Assistant mini media player integration to my echos and they work fine, it is just the temperature sensors and the other data in the red circle in the photos above that doesn't show up on my dashboard lately (or shows up but just for sporadic 10 or 15 minute increments).

I did find a 429 in the logs. If those 3 digits after the time are what you need, I also compiled all of the Alexa errors in this handy summary, so I am hoping this might quickly tell you something that doesn't yet make any sense to me but might to you? Here is what I compiled, a short summary version first, then the detailed logs below the summary:

SHORT SUMMARY VERSION:

429 - Error doing job: Exception in callback _SelectorDatagramTransport

031 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,)

141 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,),{'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

324 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,),{'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

099 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

325 - ERROR (MainThread) [homeassistant.config_entries] Error setting up entry (EMAIL ADDRESS) - amazon.ca for media_player ValueError: Config entry (EMAIL ADDRESS) - amazon.ca () for alexa_media.media_player has already been setup!

856 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

965 - ERROR (MainThread) [custom_components.alexa_media] Error fetching alexa_media data: Error communicating with API:

211 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>, Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

212 - ERROR (MainThread) [custom_components.alexa_media] Error fetching alexa_media data: Error communicating with API:

818 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

024 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

990 - WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()


MORE DETAILED ERROR INFO FOR EACH OF THE ABOVE:

2024-12-30 22:08:29.429 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorDatagramTransport._read_ready() (None)
Traceback (most recent call last):
File "/config/custom_components/localtuya/discovery.py", line 65, in datagram_received
data = decrypt_udp(data)
File "/config/custom_components/localtuya/discovery.py", line 30, in decrypt_udp
return _unpad(decryptor.update(message) + decryptor.finalize()).decode()
~~~~~~~~~~~~~~~~~~^^
ValueError: The length of the provided data is not a multiple of the block length.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1240, in _read_ready
self._protocol.datagram_received(data, addr)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/config/custom_components/localtuya/discovery.py", line 67, in datagram_received
data = data.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 2: invalid start byte

2024-12-30 21:59:07.429 WARNING (MainThread) [custom_components.localtuya.common] Missing device configuration for device_id eb57012df1d06cfdfbwgtt

2024-12-31 05:56:50.031 WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'entity_ids': []}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 06:28:34.141 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 08:56:18.324 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-30 21:59:11.099 WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'entity_ids': ]}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-30 21:59:24.325 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry (EMAIL ADDRESS) - amazon.ca for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/init.py", line 456, in async_setup_entry
return await hass.data[DATA_COMPONENT].async_setup_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 186, in async_setup_entry
raise ValueError(
...<2 lines>...
)
ValueError: Config entry (EMAIL ADDRESS) - amazon.ca () for alexa_media.media_player has already been setup!

2024-12-31 00:26:37.856 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 00:37:07.965 ERROR (MainThread) [custom_components.alexa_media] Error fetching alexa_media data: Error communicating with API:

2024-12-31 02:25:56.211 WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'entity_ids': []}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 02:25:56.212 ERROR (MainThread) [custom_components.alexa_media] Error fetching alexa_media data: Error communicating with API:

2024-12-31 02:36:39.818 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 03:08:35.024 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 05:56:50.031 WARNING (MainThread) [alexapy.helpers] alexaapi.get_entity_state((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'entity_ids': []}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 06:28:34.141 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 06:39:17.990 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

2024-12-31 08:56:18.324 WARNING (MainThread) [alexapy.helpers] alexaapi.get_customer_history_records((<alexapy.alexalogin.AlexaLogin object at 0x7f3b9ff38050>,), {'max_record_size': 10}): Timeout error occurred accessing AlexaAPI: An exception of type CancelledError occurred. Arguments:
()

@Reachushere
Copy link
Author

Each of the above are specific to Alexa errors

@Reachushere
Copy link
Author

Echo Temp4

@Reachushere
Copy link
Author

Echo Temp5

@Reachushere
Copy link
Author

Interestingly, a moment ago where the temperature is circled in red here, it was actually showing me a temperature, and it was also displayed on my dashboard. The moment I clicked on it to pull up the graph in the second picture, it went unavailable again. But you can see from the graph how sporadic it is working anyway...
Echo temp7
Echo Temp6

@Reachushere
Copy link
Author

"You have a region mismatch. The domain needs to be amazon.ca if your login email logs you into that region and is where the devices are registered."`

2024-12-26 20:39:43.095 WARNING (MainThread) [alexapy.alexalogin] Domain amazon.com/ does not match reported account domain amazon.ca; functionality is not likely to work, please fix

I don't understand why I am seeing amazon.com in the logs in those examples you gave, yet you can see from the screenshot above that I used amazon.ca as the domain. How do I fix this? I've reinstalled the integration and confirmed I chose amazon.ca, and I log in using amazon.ca as you can see from the screenshot above.

@andywarburton
Copy link

I have also noticed this behavior in my system recently - I used to get consistent temperature readings as you can see in the graph and then suddenly, it just stopped. My account is in the UK. If I can do anything to help debug, please let me know.

Screenshot 2025-01-04 013556

@andywarburton
Copy link

andywarburton commented Jan 4, 2025

Strangely, the sensors came back online for a brief amount of time today but I haven't had any readings for the past three hours. Do you think we could be hitting some API limits? (too many requests?). I'll run off some logs to see if it helps at all.

Screenshot 2025-01-04 172123

@andywarburton
Copy link

home-assistant_alexa_media_2025-01-04T16-35-07.224Z.log

Log file attatched - sorry, I have no idea how to read this or if it's any use!

@Reachushere
Copy link
Author

Reachushere commented Jan 4, 2025 via email

@Reachushere
Copy link
Author

home-assistant_alexa_media_2025-01-04T16-35-07.224Z.log

Log file attatched - sorry, I have no idea how to read this or if it's any use!

I only know how to read them with regards to what the other person asked. I did a search on the word Alexa, and then for each line that had an issue, right after the date there are three numbers. He said to look for the ones that said 429.

Haven't heard anything more from him on what that means though, I provided mine below.

@andywarburton
Copy link

image

Weirdly, my sensors have just come back online... almost exactly the same time they did yesterday!

@Reachushere
Copy link
Author

image

Weirdly, my sensors have just come back online... almost exactly the same time they did yesterday!

Here is my last 48 hours.. those tiny blue dots is all! Are yours staying online?

image

@Reachushere
Copy link
Author

image

Weirdly, my sensors have just come back online... almost exactly the same time they did yesterday!

Actually here is a comparative one, and they all come online at the same time and go offline at the same time.

I wonder how this compares with our time zones, I am in Toronto so Eastern time. Though yours go online for much longer than mine so I can't imagine it is a global issue.!

image

@andywarburton
Copy link

IMG_5262

Strangely, today so far I have had a solid run of readings since around 11pm!

@Reachushere
Copy link
Author

IMG_5262

Strangely, today so far I have had a solid run of readings since around 11pm!

So that's interesting. I am the same as you on my Echo, but my two echo dots are not getting readings. Have you done anything different?

image

@danielbrunt57
Copy link
Collaborator

danielbrunt57 commented Jan 5, 2025

Check your debug logs for returned 429:Too Many Requests

@Reachushere
Copy link
Author

Check your debug logs for returned 429:Too Many Requests

I posted my log above with regards to the 429 number. Not sure what that means though. There were a few examples of 429 but they don't say "too many requests" and also I don't know what to do about them?

@danielbrunt57
Copy link
Collaborator

for each line that had an issue, right after the date there are three numbers. He said to look for the ones that said 429.

The "429" you pointed out is the number of milliseconds in the date-timestamp for the log entry:
2024-12-30 22:08:29.429 => yyyy-mm-dd hh:mm:ss.ms

You need to look for any alexa log entries where the HTTP returned response is the error code 429 which means Too Many Requests. Just look for 429:Too Many Requests. If you are not seeing any then I don't know what the issue might be...

@Reachushere
Copy link
Author

for each line that had an issue, right after the date there are three numbers. He said to look for the ones that said 429.

The "429" you pointed out is the number of milliseconds in the date-timestamp for the log entry:

2024-12-30 22:08:29.429 => yyyy-mm-dd hh:mm:ss.ms

You need to look for any alexa log entries where the HTTP returned response is the error code 429 which means Too Many Requests. Just look for 429:Too Many Requests. If you are not seeing any then I don't know what the issue might be...

Oh ok, I don't have any other 429's in my log so I guess that can't be it.

@danielbrunt57
Copy link
Collaborator

danielbrunt57 commented Jan 6, 2025

The normal sequence in the scheduled polling is as follows:
First, the echo devices and speaker groups:

2025-01-06 01:21:18.486 DEBUG (MainThread) [custom_components.alexa_media] Echo Show 8: Locale en-ca timezone America/Vancouver
2025-01-06 01:21:18.486 DEBUG (MainThread) [custom_components.alexa_media] Echo Show 8: DND False
2025-01-06 01:21:18.486 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: Refreshing Echo Show 8
2025-01-06 01:21:18.487 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: Echo Show 8: Last_called check: self: G************326 reported: 

2025-01-06 01:21:18.488 DEBUG (MainThread) [custom_components.alexa_media] Norton Court: DND False
2025-01-06 01:21:18.489 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: Refreshing Norton Court
2025-01-06 01:21:18.489 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: Norton Court: Last_called check: self: 9****************************341 reported: 

2025-01-06 01:21:18.490 DEBUG (MainThread) [custom_components.alexa_media] Everywhere: DND False
2025-01-06 01:21:18.490 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: Refreshing Everywhere
2025-01-06 01:21:18.491 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: Everywhere: Last_called check: self: 5****************************da7 reported: 

2025-01-06 01:21:18.491 DEBUG (MainThread) [custom_components.alexa_media] This Device: Locale en-us timezone None
2025-01-06 01:21:18.492 DEBUG (MainThread) [custom_components.alexa_media] This Device: DND False
2025-01-06 01:21:18.492 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: Refreshing This Device
2025-01-06 01:21:18.492 DEBUG (MainThread) [custom_components.alexa_media.media_player] d****l@b******a: This Device: Last_called check: self: a****************************f2f reported: 

Summary:

2025-01-06 01:21:18.493 DEBUG (MainThread) [custom_components.alexa_media] d****l@b******a: Existing: [<entity media_player.office_echo_dot_left=standby>, <entity media_player.office_echo_dot_right=standby>, <entity media_player.kitchen_echo_dot=standby>, <entity media_player.living_room_echo_dot_right=standby>, <entity media_player.living_room_echo_dot_left=standby>, <entity media_player.garage_echo_dot=standby>, <entity media_player.bedroom_echo_dot_right=standby>, <entity media_player.bedroom_echo_dot_left=standby>, <entity media_player.echo=standby>, <entity media_player.bedroom=standby>, <entity media_player.living_room=standby>, <entity media_player.office=standby>, <entity media_player.echo_show_8=standby>, <entity media_player.norton_court=standby>, <entity media_player.everywhere=standby>, <entity media_player.this_device=standby>] New: []; Filtered out by mode (): []
2025-01-06 01:21:18.503 DEBUG (MainThread) [custom_components.alexa_media] Finished fetching alexa_media data in 6.064 seconds (success: True)

Then my two temperature entities:

  1. Echo with temp sensor:
2025-01-06 01:21:18.504 DEBUG (MainThread) [custom_components.alexa_media.alexa_entity] parse_temperature_from_coordinator: {'value': 19.5, 'scale': 'CELSIUS'}
2025-01-06 01:21:18.504 DEBUG (MainThread) [custom_components.alexa_media.sensor] TemperatureSensor value: 19.5
2025-01-06 01:21:18.504 DEBUG (MainThread) [custom_components.alexa_media.sensor] TemperatureSensor scale: CELSIUS
2025-01-06 01:21:18.504 DEBUG (MainThread) [custom_components.alexa_media.sensor] Coordinator update: Living Room Air Temperature: 19.5 °C
  1. AQM Temp sensor:
2025-01-06 01:21:18.506 DEBUG (MainThread) [custom_components.alexa_media.alexa_entity] parse_temperature_from_coordinator: {'value': 19.3, 'scale': 'CELSIUS'}
2025-01-06 01:21:18.506 DEBUG (MainThread) [custom_components.alexa_media.sensor] TemperatureSensor value: 19.3
2025-01-06 01:21:18.506 DEBUG (MainThread) [custom_components.alexa_media.sensor] TemperatureSensor scale: CELSIUS
2025-01-06 01:21:18.506 DEBUG (MainThread) [custom_components.alexa_media.sensor] Coordinator update: Echo Temperature: 19.3 °C

Then the sensors for the 16 echo devices:

2025-01-06 01:21:36.242 DEBUG (MainThread) [custom_components.alexa_media.sensor] Sensor value ('142f700d-c9d6-39dd-bf92-dbdf5d88b3c9', {'alarmLabel': None, 'alarmTime': 0, 'assigner': None, 'automationId': None, 'createdDate': 1735478634717, 'deferredAtTime': None, 'deliveryMetadata': None, 'deliveryType': None, 'deviceName': None, 'deviceSerialNumber': 'G091ET10051402M6', 'deviceType': 'A2H4LV5GIZ1JFT', 'extensibleAttribute': None, 'followUpMetadata': None, 'geoLocationTriggerData': None, 'id': 'A2H4LV5GIZ1JFT-G091ET10051402M6-142f700d-c9d6-39dd-bf92-dbdf5d88b3c9', 'instanceState': None, 'lastOccurrenceTimeInMilli': 0, 'lastTriggerTimeInUtc': None, 'lastUpdatedDate': 1735493962404, 'loopCount': None, 'mrmGroupContext': None, 'musicAlarmId': None, 'musicEntity': None, 'notificationIndex': '142f700d-c9d6-39dd-bf92-dbdf5d88b3c9', 'originalDate': '2024-12-29', 'originalDurationInMillis': 0, 'originalTime': '09:30:00.000', 'personProfile': None, 'primaryDeviceState': None, 'provider': None, 'rRuleData': None, 'recurrenceEligibility': False, 'recurringPattern': None, 'remainingTime': 0, 'reminderAppLabel': None, 'reminderLabel': None, 'reminderSubLabel': None, 'showDeregisteredWarning': None, 'skillInfo': None, 'sleepTrackingAlarmProperties': {'sleepTrackingEnabled': False}, 'snoozedToTime': None, 'sound': {'displayName': 'Clarity', 'folder': None, 'id': 'system_alerts_melodic_05', 'isChildDirected': False, 'numAssets': 0, 'pricing': None, 'providerId': 'ECHO', 'sampleUrl': 'https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_05.mp3', 'sampleVideoUrl': None, 'skillUrl': None}, 'status': 'OFF', 'targetPersonProfiles': None, 'taskMetadata': None, 'timeZoneId': None, 'timerLabel': None, 'tmwNotificationProperties': None, 'triggerTime': 0, 'type': 'Alarm', 'version': '5', 'date_time': datetime.datetime(2024, 12, 29, 9, 30, tzinfo=zoneinfo.ZoneInfo(key='America/Vancouver'))})

With:
image
and HTTP2push connected, the polling frequency should be once every 5 minutes.

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

4 participants