MycroftAI / skill-homeassistant

Mycroft Skill/Integration for Homeassistant
GNU Lesser General Public License v3.0
115 stars 62 forks source link

Mycroft Skill failed to load #85

Closed Y0ngg4n closed 2 years ago

Y0ngg4n commented 2 years ago
 30486 | mycroft.skills.skill_loader:load:185 | ATTEMPTING TO LOAD SKILL: skill-homeassistant.mycroftai
 14:22:37.421 | INFO     | 30486 | mycroft.skills.settings:get_local_settings:83 | /home/pi/.config/mycroft/skills/skill-homeassistant.mycroftai/settings.json
 14:22:37.425 | INFO     | 30486 | mycroft.skills.settings:get_local_settings:83 | /home/pi/.config/mycroft/skills/skill-homeassistant.mycroftai/settings.json
 14:22:37.589 | INFO     | 30486 | HomeAssistantSkill | Removing all handlers...
 14:22:37.591 | WARNING  | 30486 | mycroft.skills.fallback_skill:remove_fallback:185 | Could not find matching fallback handler
 14:22:37.599 | ERROR    | 30486 | mycroft.skills.skill_loader:_create_skill_instance:313 | Skill initialization failed with AttributeError("'NoneType' object has no attribute 'group'")
Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/skill_loader.py", line 307, in _create_skill_instance
    self.instance.initialize()
  File "/opt/mycroft/skills/skill-homeassistant.mycroftai/__init__.py", line 91, in initialize
    self._setup()
  File "/opt/mycroft/skills/skill-homeassistant.mycroftai/__init__.py", line 37, in _setup
    ip = check_url(self.settings.get('host'))
  File "/opt/mycroft/skills/skill-homeassistant.mycroftai/ha_client.py", line 34, in check_url
    return matches.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
 14:22:37.604 | ERROR    | 30486 | mycroft.skills.skill_loader:_communicate_load_status:351 | Skill skill-homeassistant.mycroftai failed to load
Tony763 commented 2 years ago

Hi @Y0ngg4n, could you provide, what did you have in host address?

Tony763 commented 2 years ago

Would you also test PR#86? It should fix it.

Y0ngg4n commented 2 years ago

@Tony763 i cant say. There is no home assistant option at skill settings page.

Tony763 commented 2 years ago

Host address :slightly_smiling_face:
image

Or you can't see a Home Assistant in Mycroft skills setting page? image

Y0ngg4n commented 2 years ago

image No home assistant

Tony763 commented 2 years ago

Ok, so it failed at skill initialization so there is probably nothing set. Could You test the proposed Fix?

Y0ngg4n commented 2 years ago

jup now it works

Tony763 commented 2 years ago

Silly mistake, thanks for feedback. :slightly_smiling_face:

stratus-ss commented 2 years ago

@Y0ngg4n @Tony763 is this issue still valid or can it be closed?