Closed julianrinaldi closed 3 years ago
@julianrinaldi I had the same reflection, in fact the sensor has the name sensor.NAME_channel_Youtube
example:
sensor: platform: youtube channel_id: UCRJE6Yb_R3Xei-QGcy_Qwhw
the sensor name is :
sensor.journal_de_thomas
👍
I'm not seeing that sensor when using your information or the information for the channel I want to track. I'm also not seeing any errors.
What's your channel_id ? I test on my HA
UCtI0Hodo5o5dUb67FeUjDeA
The chanell ID you posted doesn't work for me either, so I'm assuming it's a problem with my installation.
OK I test And the id you send me is for youtube channel SpaceX
this is the sensor :
Working here also. Your Id gives me a sensor.spacex
Check that your indentation is right where you configured the sensor. It should be:
sensor:
- platform: youtube
channel_id: UCtI0Hodo5o5dUb67FeUjDeA
Thanks, the indentation is definitely correct. Not sure what the issue is, especially since I'm not seeing any errors anywhere.
Is there anyway to debug this?
ok, first question, how did you install the youtube custom component?
Through HACS. I can confirm that the correct files are in the custom components folder.
ok, have you restarted home assistant after adding to the config?
Yes, many times at this point.
For the record, I'm running Home Assistant on MacOS. Not sure if that matters.
no errors in log at all? - do you have:
WARNING (MainThread) [homeassistant.loader] You are using a custom integration for youtube 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.
at the top of the log?
Yes.
I get errors, but none I can nail down to this component. I have a very extensive Home Assistant setup:
List of devices reported by HTTP API:
2020-11-19 14:12:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for faastatus 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. 2020-11-19 14:12:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for climacell 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. 2020-11-19 14:12:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for youtube 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. 2020-11-19 14:12:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for attributes 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. 2020-11-19 14:12:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for google_geocode 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. 2020-11-19 14:12:36 WARNING (MainThread) [homeassistant.components.hue.light] Please check for software updates of the Garage Door Opener Light bulb in the Philips Hue App. 2020-11-19 14:12:36 WARNING (MainThread) [homeassistant.components.onvif] The date/time on the device (UTC) is '2020-11-19 19:26:57+00:00', which is different from the system '2020-11-19 19:12:35.371996+00:00', this could lead to authentication issues 2020-11-19 14:12:36 WARNING (MainThread) [homeassistant.components.onvif] The date/time on the device (UTC) is '2020-11-19 19:33:16+00:00', which is different from the system '2020-11-19 19:12:35.383729+00:00', this could lead to authentication issues 2020-11-19 14:12:36 WARNING (MainThread) [homeassistant.components.onvif] The date/time on the device (UTC) is '2020-11-19 19:24:07+00:00', which is different from the system '2020-11-19 19:12:35.377201+00:00', this could lead to authentication issues 2020-11-19 14:12:36 WARNING (MainThread) [homeassistant.components.onvif] The date/time on the device (UTC) is '2020-11-19 19:20:32+00:00', which is different from the system '2020-11-19 19:12:35.389283+00:00', this could lead to authentication issues 2020-11-19 14:12:36 WARNING (MainThread) [homeassistant.components.onvif] The date/time on the device (UTC) is '2020-11-19 19:20:54+00:00', which is different from the system '2020-11-19 19:12:35.401670+00:00', this could lead to authentication issues 2020-11-19 14:12:36 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.apple.TVAirPlay 2020-11-19 14:12:36 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.plexapp.plex 2020-11-19 14:12:36 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.apple.TVAirPlay 2020-11-19 14:12:36 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.google.ios.youtube 2020-11-19 14:12:36 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.apple.TVMusic 2020-11-19 14:12:36 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.plexapp.plex 2020-11-19 14:12:36 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.apple.TVAirPlay 2020-11-19 14:12:37 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.apple.TVAirPlay 2020-11-19 14:12:37 WARNING (MainThread) [pyatv.mrp.player_state] Received UpdateClientMessage for unknown player com.plexapp.plex 2020-11-19 14:12:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hdhomerun 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. 2020-11-19 14:12:41 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for adaptive_lighting 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. 2020-11-19 14:12:54 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/aiopylgtv/webos_client.py", line 373, in consumer_handler while not closeout_task.done(): UnboundLocalError: local variable 'closeout_task' referenced before assignment 2020-11-19 14:12:54 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/aiopylgtv/webos_client.py", line 317, in ping_handler ping_waiter = await ws.ping() File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/websockets/protocol.py", line 734, in ping await self.ensure_open() File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/websockets/protocol.py", line 803, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedOK: code = 1000 (OK), no reason 2020-11-19 14:13:43 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [140205714060144] Disconnected: Did not receive auth message within 10 seconds 2020-11-19 14:15:46 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.philadelphia_intl is taking over 10 seconds 2020-11-19 14:15:46 ERROR (MainThread) [custom_components.faastatus.sensor] [PHL] Could not update the sensor (TimeoutError) 2020-11-19 14:19:59 WARNING (MainThread) [homeassistant.components.media_player] Updating meural media_player took longer than the scheduled update interval 0:00:10 2020-11-19 14:19:59 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.meural_picture_frame is taking over 10 seconds 2020-11-19 14:19:59 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.meural_picture_frame fails Traceback (most recent call last): File "/Users/homeassistant/.homeassistant/custom_components/meural/pymeural.py", line 46, in request resp = await self.session.request( File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/aiohttp/client.py", line 551, in _request await resp.start(conn) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 892, in start message, payload = await self._protocol.read() # type: ignore # noqa File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/aiohttp/streams.py", line 605, in read await self._waiter asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 278, in async_update_ha_state await self.async_device_update() File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 482, in async_device_update await task File "/Users/homeassistant/.homeassistant/custom_components/meural/media_player.py", line 178, in async_update self._meural_device = await self.meural.get_device(self.meural_device_id) File "/Users/homeassistant/.homeassistant/custom_components/meural/pymeural.py", line 81, in get_device return await self.request("get", f"devices/{device_id}") File "/Users/homeassistant/.homeassistant/custom_components/meural/pymeural.py", line 46, in request resp = await self.session.request( File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/async_timeout/init.py", line 45, in exit self._do_exit(exc_type) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/async_timeout/init.py", line 92, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError 2020-11-19 14:24:17 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall lock.unlock (c:d7bcc85bf238d3e763ed32cc53a855b1): entity_id=['lock.front_door_lock', 'lock.garage_door_lock']> Traceback (most recent call last): File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1467, in catch_exceptions await coro_or_task File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1486, in _execute_service await handler.job.target(service_call) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 499, in entity_service_call future.result() # pop exception if have File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 664, in async_request_call await coro File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 536, in _handle_entity_call await result File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/components/august/lock.py", line 50, in async_unlock await self._call_lock_operation(self._data.async_unlock) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/components/august/lock.py", line 53, in _call_lock_operation activities = await lock_operation(self._device_id) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/components/august/init.py", line 348, in async_unlock return await self._async_call_api_op_requires_bridge( File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/components/august/init.py", line 361, in _async_call_api_op_requires_bridge ret = await func(*args, **kwargs) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/august/api_async.py", line 204, in async_unlock_return_activities await self._async_unlock(access_token, lock_id) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/august/api_async.py", line 182, in _async_unlock return await self._async_call_lock_operation( File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/august/api_async.py", line 148, in _async_call_lock_operation response = await self._async_dict_to_api( File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/august/api_async.py", line 255, in _async_dict_to_api _raise_response_exceptions(response) File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/august/api_async.py", line 276, in _raise_response_exceptions raise err File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/august/api_async.py", line 262, in _raise_response_exceptions response.raise_for_status() File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1002, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 560, message='unknown', url=URL('CENSORED') `
just looking through your log, the only thing I can see which may be causing an issue (though I can't wee why at the moment) is that you are running python 3.9 HA ships normally on python 3.8. My config is available on github (https://github.com/pinkywafer/Home-Assistant_Config), and I have CI checks using github actions. One test is to install the same version of homeassistant that I have installed (a python install) and check the config., so I've just created a new branch, changed the CI parameters to run python 3.9 instead of 3.8, and that check now fails. I'm not sure if this is related to this issue though.
Another thing to try is to enable debug logging for this component:
logger:
default: warning
logs:
custom_components.youtube: debug
and see if you get anything there
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What is the sensor that this integration makes named? I tried searching for "youtube" in my entities and didn't find anything. Does this integration still work?