custom-components / youtube

A platform which give you info about the newest video on a channel
MIT License
55 stars 17 forks source link

Can't find sensor #16

Closed julianrinaldi closed 3 years ago

julianrinaldi commented 3 years ago

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?

barto95100 commented 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

👍

julianrinaldi commented 3 years ago

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.

barto95100 commented 3 years ago

What's your channel_id ? I test on my HA

julianrinaldi commented 3 years ago

UCtI0Hodo5o5dUb67FeUjDeA

The chanell ID you posted doesn't work for me either, so I'm assuming it's a problem with my installation.

barto95100 commented 3 years ago

OK I test And the id you send me is for youtube channel SpaceX

this is the sensor :

https://ibb.co/zhg0Lt0

pinkywafer commented 3 years ago

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
julianrinaldi commented 3 years ago

Thanks, the indentation is definitely correct. Not sure what the issue is, especially since I'm not seeing any errors anywhere.

julianrinaldi commented 3 years ago

Is there anyway to debug this?

pinkywafer commented 3 years ago

ok, first question, how did you install the youtube custom component?

julianrinaldi commented 3 years ago

Through HACS. I can confirm that the correct files are in the custom components folder.

pinkywafer commented 3 years ago

ok, have you restarted home assistant after adding to the config?

julianrinaldi commented 3 years ago

Yes, many times at this point.

julianrinaldi commented 3 years ago

For the record, I'm running Home Assistant on MacOS. Not sure if that matters.

pinkywafer commented 3 years ago

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?

julianrinaldi commented 3 years ago

Yes.

I get errors, but none I can nail down to this component. I have a very extensive Home Assistant setup:

`2020-11-19 14:12:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for anniversaries 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for mail_and_packages 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meural 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for browser_mod 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for garbage_collection 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for simpleicons 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for nodered 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for tuya_custom 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for spacex 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for unifiprotect 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for circadian_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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for eventsensor 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for litter_robot 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonos_alarm 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for bhyve 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for apple_tv 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meross_cloud 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for 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. 2020-11-19 14:12:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hpprinter 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:23 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for blitzortung 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:25 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for average 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:25 ERROR (MainThread) [homeassistant.components.openuv] Error during uv index data update: Error requesting data from uv: 500, message='Internal Server Error', url=URL('CENSORED') 2020-11-19 14:12:27 ERROR (MainThread) [homeassistant.setup] Setup failed for airvisual: unknown error Traceback (most recent call last): File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/setup.py", line 166, in _async_setup_component component = integration.get_component() File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/loader.py", line 416, in get_component cache[self.domain] = importlib.import_module(self.pkg_path) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/components/airvisual/init.py", line 6, in from pyairvisual import CloudAPI, NodeSamba File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/pyairvisual/init.py", line 2, in from .cloud_api import CloudAPI # noqa File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/pyairvisual/cloud_api.py", line 9, in from .node import NodeCloudAPI File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/pyairvisual/node.py", line 12, in import numpy as np File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/numpy/init.py", line 286, in raise RuntimeError(msg) RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy. RankWarning: Polyfit may be poorly conditioned 2020-11-19 14:12:28 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140207433555104] Error handling message: Unknown error Traceback (most recent call last): File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/homeassistant/components/websocket_api/connection.py", line 95, in async_handle handler(self.hass, self, schema(msg)) File "/Users/homeassistant/.homeassistant/custom_components/browser_mod/connection.py", line 42, in handle_update devices[deviceID].update(msg.get("data", None)) File "/Users/homeassistant/.homeassistant/custom_components/browser_mod/connection.py", line 83, in update self.sensor = self.sensor or create_entity( File "/Users/homeassistant/.homeassistant/custom_components/browser_mod/helpers.py", line 47, in create_entity adder = hass.data[DOMAIN][DATA_ADDERS][platform] KeyError: 'sensor' 2020-11-19 14:12:30 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for nws_alerts 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:30 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sun2 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:30 WARNING (MainThread) [custom_components.meross_cloud]

Meross Cloud Custom component Developed by Alberto Geniola Low level library version: 0.4.0.5

This custom component is under development and not yet ready for production use. In case of errors/misbehave, please report it here: https://github.com/albertogeniola/meross-homeassistant/issues If you like this extension and you want to support it, please consider donating.

List of devices reported by HTTP API:

pinkywafer commented 3 years ago

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

stale[bot] commented 3 years ago

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.