Closed hugalafutro closed 3 years ago
2021-05-02 17:19:55 DEBUG (MainThread) [custom_components.alexa_media] s*******s@g*******m: Existing: [] New: ["David's Echo Dot"]; Filtered out by not being in include: ['This Device'] or in exclude: []
The sensors are being filtered out.
Ok, that log line is to me quite confusing; what I read is that there was 1 new, 0 existing devices and no filtered out as neither criteria of include: ['This Device'] (ie a whitelist) nor exclude: [] (ie a blacklist) were satisfied and at no point I see it mentioning notifications.
edit: these lines prove the notifications are read:
2021-05-02 17:19:55 DEBUG (MainThread) [custom_components.alexa_media.sensor] s*******s@g*******m: Found G************L96 Alarm sensor (30) with next: None
2021-05-02 17:19:55 DEBUG (MainThread) [custom_components.alexa_media.sensor] s*******s@g*******m: Found G************L96 Timer sensor (3) with next: None
2021-05-02 17:19:55 DEBUG (MainThread) [custom_components.alexa_media.sensor] s*******s@g*******m: Found G************L96 Reminder sensor (1) with next: None
the issue is the corresponding sensors are not created, as I understood from the documentation they should exist with value None inside HA in this state.
Same issue here. Timer devices/entities are not available anymore
I configured vie HACS and the Integrations UI, nothing in include_devices nor in exclude_devices...
{
"entry_id": "xxxxxxxx",
"version": 1,
"domain": "alexa_media",
"title": "xxx.xxx@xxx.com - amazon.de",
"data": {
"email": "xxx.xxx@xxx.com",
"password": "*xxx*!",
"url": "amazon.de",
"debug": false,
"scan_interval": 60,
"include_devices": "",
"exclude_devices": "",
"proxy": false,
"oauth": {
"access_token": "xxx",
"refresh_token": "xxx",
"expires_in": 1619983836.526745
}
},
"options": {},
"system_options": {
"disable_new_entities": false
},
"source": "reauth",
"connection_class": "cloud_poll",
"unique_id": "xxx.xxx@xxx.com - amazon.de",
"disabled_by": null
},
As @blm126 already said, if you didn't include the next_alarm, next_timer, next_reminder in your allow list. They'll be filtered out. https://github.com/custom-components/alexa_media_player/wiki/Configuration#inclusions
Remove your allow list and they'll populate.
Ok so I need to remove the include list completely in the config?
As said I have the default config when installing via HACS and configuring via Integrations. I guess this is the most common way to get alexa mediaplayer. Therfore many people will have this problem and I can't se a way to configure these details via the web UI.
Luckily I know that the config is in /config/.storage/core.config_entries
and I can change it manually but this is a bit error prone.
It would be great if these configs are part of the web UI. Or is there any other way to change them I'm not aware of?
BTW: The help you linked is great if you have configured it manually, sadly when you add it via integrations web UI there is nothing in your config.yaml and you need to configure it within the "internal" config in a json file...
I'll echo @thexperiments sentiments. This is very counterintuitive and obscure to set up especially if you set up via ui, which is supposed to be the easier way.
Can you offer instructions on how to achieve this when configured via ui? How do I "Remove my allow list" ? I can't see nothing of the like in the ui configuration.
Thanks
edit: I'm getting more confused the more I read the docs. "_NOTE: includedevices only loads devices that have been listed and functions like a deny list." What does that even mean?
the relevant section in core.config_entries:
{
"entry_id": "4836092992b048b5a6daed01521cc291",
"version": 1,
"domain": "alexa_media",
"title": "Echo Dot",
"data": {
"debug": false,
"email": "s***m",
"exclude_devices": [],
"include_devices": [
"David's Echo Dot"
],
"password": "***",
"scan_interval": 60,
"url": "amazon.co.uk",
"oauth": {
"access_token": ***
"refresh_token": ***
"expires_in": 1620032590.19631
}
},
"options": {
"queue_delay": 1.5,
"extended_entity_discovery": false
},
"system_options": {
"disable_new_entities": false
},
"source": "user",
"connection_class": "cloud_poll",
"unique_id": null,
"disabled_by": null
},
So, in order to include the David's Echo Dot, I do need to REMOVE it from the include list? I'm sorry for not being a technical guru I just want my lights to blink when alarm goes off.
edit2: i tried cutting out the block and rebooting HA, but that didn't do it
"include_devices": [
"David's Echo Dot"
],
edit3: the sensors appeared after cutting out the "exclude_devices": [],
line and restarting HA. I have no understanding why.
I'll echo @thexperiments sentiments. This is very counterintuitive and obscure to set up especially if you set up via ui, which is supposed to be the easier way.
Can you offer instructions on how to achieve this when configured via ui? How do I "Remove my allow list" ? I can't see nothing of the like in the ui configuration.
Thanks
edit: I'm getting more confused the more I read the docs. "_NOTE: includedevices only loads devices that have been listed and functions like a deny list." What does that even mean?
the relevant section in core.config_entries:
{ "entry_id": "4836092992b048b5a6daed01521cc291", "version": 1, "domain": "alexa_media", "title": "Echo Dot", "data": { "debug": false, "email": "s***m", "exclude_devices": [], "include_devices": [ "David's Echo Dot" ], "password": "***", "scan_interval": 60, "url": "amazon.co.uk", "oauth": { "access_token": *** "refresh_token": *** "expires_in": 1620032590.19631 } }, "options": { "queue_delay": 1.5, "extended_entity_discovery": false }, "system_options": { "disable_new_entities": false }, "source": "user", "connection_class": "cloud_poll", "unique_id": null, "disabled_by": null },
So, in order to include the David's Echo Dot, I do need to REMOVE it from the include list? I'm sorry for not being a technical guru I just want my lights to blink when alarm goes off.
edit2: i tried cutting out the block and rebooting HA, but that didn't do it
"include_devices": [ "David's Echo Dot" ],
edit3: the sensors appeared after cutting out the
"exclude_devices": [],
line and restarting HA. I have no understanding why.
Thank you for your edited note at the bottom. My timers haven't shown up accurately for over a week and deleting that excluded devices line from that file worked.
@alandtse please add the configuration changes for included and excluded devices to the UI Integrations config.
@hyukishi I was using alexa_media_player for almost a year and I have never seen the entities, they never existed on my system. I happened upon the fact such entities are supposed to be created only while browsing HA blueprints and seeing automations based on alexa timer going off which is something I've wanted since forever.
Remove and readd the integration if you need to change the setting. Messing with .storage files may cause HA to not start.
Describe the bug I'm interested in reacting to timer/alarm firing off on my echo dot, for which I'd like to utilise
sensor.media_player_next_alarm sensor.media_player_next_timer
sensors, but these entities are non-existent. The only things I am able to see when clicking on the echo dot entity are standby button, volume slider and speaker dropdown.To Reproduce Steps to reproduce the behavior: N/A
Expected behavior I'd like to have the aforementioned sensors exist and contain values corresponding to next alarm/timer expiration or None as the documentation suggests.
Screenshots N/A
System details
pip show alexapy
or HA startup): 1.25.0Logs
Additional context I only use alexa for TTS and playing sounds and that works no problem.