Antoni-Czaplicki / vulcan-for-hassio

Vulcan inegration for home assistamt
26 stars 3 forks source link

[Q] Integration config UI or YAML #3

Closed ciechompl closed 4 years ago

ciechompl commented 4 years ago

should config be done via UI or YAML ? Description suggest that via UI but I don't see it on the list

image Integration installed via HACS

image

if via YAML how to (if even possible ? :) add 2 kids into the config ? or shall i connect it to my (parent) account in UONET and will see both kids' timetables ?

Antoni-Czaplicki commented 4 years ago

If integration is not showing in UI try restart home assistant. Actually you can only show data for one student, you can set student name via config options.

ciechompl commented 4 years ago

tried ... 5 times :) .. .even reinstalled component 2 times :) still no vulcan on integration page. but in the notification i see this: image no errors in the log

when added just "vulcan:" only to configuration.yaml i got this error in the log:

2020-10-09 17:45:46 ERROR (MainThread) [homeassistant.setup] Error during setup of component vulcan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/config/custom_components/vulcan/__init__.py", line 66, in async_setup
    for student in client.get_students():
NameError: name 'client' is not defined

and in notification:

image

with full config like this:

vulcan:
  token: token
  symbol: symbol
  pin: pin

situation the same = error "name 'client' is not defined" in the log

PS: HA 0.116.1

ciechompl commented 4 years ago

wait .. don't know what have I done but when removed (again) config from conf yaml and rebooted again, this time I see vulcan on integration page :)

ciechompl commented 4 years ago

it works now ... not sure what was wrong but seem definitely my HA fault not component ... can be closed :)