# Mycroft speaks twice with HomeAssistant confirmations

**URL:** https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428
**Category:** Feedback / Support
**Tags:** support
**Created:** [October 27, 2021, 5:46pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428 "2021-10-27T17:46:33Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 2:41pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/21 "2021-10-29T14:41:03Z")

</div>

yes these two are debug messages i put inside. So in your instance, type is correct str, but it’s empty. Even if you have token inside settings.json. Is it running now when you add str() or it’s still not. Could you also check that ip is present in settings. json when mycroft run for about 5 minutes?

---

<div class="post-metadata">

### Author: ![goldyfruit](https://community.openconversational.ai/user_avatar/community.openconversational.ai/goldyfruit/32/2741_2.png) [@goldyfruit](https://community.openconversational.ai/u/goldyfruit)
#### Post date: [October 29, 2021, 2:43pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/22 "2021-10-29T14:43:47Z")

</div>

I edited my previous message 🙂

---

<div class="post-metadata">

### Author: ![sparkyvision](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sparkyvision/32/3112_2.png) [@sparkyvision](https://community.openconversational.ai/u/sparkyvision)
#### Post date: [October 29, 2021, 2:45pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/23 "2021-10-29T14:45:33Z")

</div>

This must be what a border collie feels like when it’s watching Jeopardy.

---

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 2:46pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/24 "2021-10-29T14:46:24Z")

</div>

could you check logs if above debug messages occure in logs more than one time?

---

<div class="post-metadata">

### Author: ![goldyfruit](https://community.openconversational.ai/user_avatar/community.openconversational.ai/goldyfruit/32/2741_2.png) [@goldyfruit](https://community.openconversational.ai/u/goldyfruit)
#### Post date: [October 29, 2021, 2:47pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/25 "2021-10-29T14:47:58Z")

</div>

```auto
2021-10-29 14:26:03.478 | INFO | 1 | mycroft.skills.settings:save_settings:116 | Skill settings successfully saved to /home/mycroft/.config/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 14:26:03.479 | ERROR | 1 | HomeAssistantSkill | type: <class 'str'>
2021-10-29 14:26:03.479 | ERROR | 1 | HomeAssistantSkill | content: 
2021-10-29 14:26:48.741 | INFO | 1 | ConfigurationSkill | Remote configuration updated
2021-10-29 14:30:04.075 | INFO | 1 | mycroft.skills.settings:_emit_settings_change_events:435 | Emitting skill.settings.change event for skill @893deff4-aba2-4e94-87aa-8414c585e3aa|skill-homeassistant 
2021-10-29 14:30:04.089 | INFO | 1 | mycroft.skills.mycroft_skill.mycroft_skill:handle_settings_change:360 | Updating settings for skill HomeAssistantSkill
2021-10-29 14:30:04.091 | INFO | 1 | mycroft.skills.settings:save_settings:116 | Skill settings successfully saved to /home/mycroft/.config/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 14:30:04.091 | ERROR | 1 | HomeAssistantSkill | type: <class 'str'>
2021-10-29 14:30:04.092 | ERROR | 1 | HomeAssistantSkill | content: http://192.168.1.9

2021-10-29 14:36:12.770 | INFO | 1 | mycroft.skills.settings:save_settings:116 | Skill settings successfully saved to /home/mycroft/.config/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 14:37:05.112 | INFO | 1 | mycroft.skills.settings:_emit_settings_change_events:435 | Emitting skill.settings.change event for skill @893deff4-aba2-4e94-87aa-8414c585e3aa|skill-homeassistant 
2021-10-29 14:37:06.054 | INFO | 1 | mycroft.skills.mycroft_skill.mycroft_skill:handle_settings_change:360 | Updating settings for skill HomeAssistantSkill
2021-10-29 14:37:06.417 | INFO | 1 | mycroft.skills.settings:save_settings:116 | Skill settings successfully saved to /home/mycroft/.config/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 14:37:06.480 | ERROR | 1 | HomeAssistantSkill | type: <class 'str'>
2021-10-29 14:37:06.483 | ERROR | 1 | HomeAssistantSkill | content: http://192.168.1.97
2021-10-29 14:37:20.582 | INFO | 1 | mycroft.skills.settings:save_settings:116 | Skill settings successfully saved to /home/mycroft/.config/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 14:45:13.383 | INFO | 1 | TimerSkill | stopping repeating event to check for timer expiration

```

---

<div class="post-metadata">

### Author: ![goldyfruit](https://community.openconversational.ai/user_avatar/community.openconversational.ai/goldyfruit/32/2741_2.png) [@goldyfruit](https://community.openconversational.ai/u/goldyfruit)
#### Post date: [October 29, 2021, 2:49pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/26 "2021-10-29T14:49:46Z")

</div>

```auto
rm -r /opt/mycroft/skills/skill-homeassistant*
rm -r /home/mycroft/.config/mycroft/skills/skill-homeassistant*

```

Then restart the `skills` service.

---

<div class="post-metadata">

### Author: ![sparkyvision](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sparkyvision/32/3112_2.png) [@sparkyvision](https://community.openconversational.ai/u/sparkyvision)
#### Post date: [October 29, 2021, 2:50pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/27 "2021-10-29T14:50:24Z")

</div>

Happy to, do I need to worry about that skill being listed in some file somewhere that will confuse msm?

---

<div class="post-metadata">

### Author: ![goldyfruit](https://community.openconversational.ai/user_avatar/community.openconversational.ai/goldyfruit/32/2741_2.png) [@goldyfruit](https://community.openconversational.ai/u/goldyfruit)
#### Post date: [October 29, 2021, 2:51pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/28 "2021-10-29T14:51:03Z")

</div>

`msm` is not that smart 😛

---

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 2:51pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/29 "2021-10-29T14:51:39Z")

</div>

Perfect! So problem is when mycroft initialize and before pulling configuration from mycroft.ai. Last time it returned None, for you it return empty string. I will prepare fix when I get home and send it here for test.

---

<div class="post-metadata">

### Author: ![sparkyvision](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sparkyvision/32/3112_2.png) [@sparkyvision](https://community.openconversational.ai/u/sparkyvision)
#### Post date: [October 29, 2021, 2:54pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/30 "2021-10-29T14:54:04Z")

</div>

So uh…will it not be helpful for me to also post my skills.log output?

You know what they say about the guy who’s two steps behind…he has…a lot of catching up to do. This is fun though, usually I’m the fastest guy in the room when I do my sort of programming. 😛

---

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 2:54pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/31 "2021-10-29T14:54:11Z")

</div>

would be fine if msm would have remove option also, I will check that too

---

<div class="post-metadata">

### Author: ![goldyfruit](https://community.openconversational.ai/user_avatar/community.openconversational.ai/goldyfruit/32/2741_2.png) [@goldyfruit](https://community.openconversational.ai/u/goldyfruit)
#### Post date: [October 29, 2021, 2:55pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/32 "2021-10-29T14:55:15Z")

</div>

It does.

```auto
$ msm
usage: msm [-h]
           [-p {kde,respeaker,mycroft_mark_2pi,picroft,default,mycroft_mark_1,mycroft_mark_2}]
           [-u REPO_URL] [-b REPO_BRANCH] [-d SKILLS_DIR] [-c REPO_CACHE] [-l]
           [-r]
           {install,remove,search,info,list,update,default} ...
msm: error: the following arguments are required: action

```

---

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 2:55pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/33 "2021-10-29T14:55:44Z")

</div>

If you managed to install it, post it also. For me its allways better to have more feedback.

---

<div class="post-metadata">

### Author: ![sparkyvision](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sparkyvision/32/3112_2.png) [@sparkyvision](https://community.openconversational.ai/u/sparkyvision)
#### Post date: [October 29, 2021, 2:57pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/34 "2021-10-29T14:57:30Z")

</div>

Oh, I’m aware of the remove option, but there’s no way to force removal of a given instance if there are identically-named skills, which apparently happened.

[Edit] Obviously, in normal circumstances, it _shouldn’t_ happen at all.

---

<div class="post-metadata">

### Author: ![sparkyvision](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sparkyvision/32/3112_2.png) [@sparkyvision](https://community.openconversational.ai/u/sparkyvision)
#### Post date: [October 29, 2021, 3:01pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/35 "2021-10-29T15:01:15Z")

</div>

```auto
2021-10-29 09:55:59.300 | ERROR | 672 | mycroft.skills.skill_loader:_communicate_load_status:351 | Skill skill-homeassistant.tony763 failed to load
Regenerated skill-homeassistant.tony763:toggle.intent.
Regenerated skill-homeassistant.tony763:cover.open.intent.
Regenerated skill-homeassistant.tony763:tracker.intent.
Regenerated skill-homeassistant.tony763:add.item.shopping.list.intent.
2021-10-29 09:58:57.514 | INFO | 762 | mycroft.skills.skill_loader:load:185 | ATTEMPTING TO LOAD SKILL: skill-homeassistant.tony763
2021-10-29 09:58:58.204 | INFO | 762 | mycroft.skills.settings:get_local_settings:83 | /opt/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 09:58:58.207 | INFO | 762 | mycroft.skills.settings:get_local_settings:83 | /opt/mycroft/skills/skill-homeassistant.tony763/settings.json
  File "/opt/mycroft/skills/skill-homeassistant.tony763/ __init__.py", line 96, in initialize
  File "/opt/mycroft/skills/skill-homeassistant.tony763/ __init__.py", line 37, in _setup
  File "/opt/mycroft/skills/skill-homeassistant.tony763/ha_client.py", line 53, in check_url
2021-10-29 09:58:58.477 | ERROR | 762 | mycroft.skills.skill_loader:_communicate_load_status:351 | Skill skill-homeassistant.tony763 failed to load

```

Is this showing what you were looking for?

---

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 3:02pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/36 "2021-10-29T15:02:24Z")

</div>

It hapened to me, too. But I cannot remember what I did to overcome it.

---

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 3:03pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/37 "2021-10-29T15:03:22Z")

</div>

did you git checkout patch-8 inside ha skill folder?

---

<div class="post-metadata">

### Author: ![sparkyvision](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sparkyvision/32/3112_2.png) [@sparkyvision](https://community.openconversational.ai/u/sparkyvision)
#### Post date: [October 29, 2021, 3:05pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/38 "2021-10-29T15:05:04Z")

</div>

I did, yes. It didn’t seem to really do anything, just printed a message that it switched to that branch.

```auto
(.venv) pi@picroft:/opt/mycroft/skills/skill-homeassistant.tony763 $ git checkout patch-8
Already on 'patch-8'
Your branch is up to date with 'origin/patch-8'.
(.venv) pi@picroft:/opt/mycroft/skills/skill-homeassistant.tony763 $

```

Do I need to make it update itself after I do this?

---

<div class="post-metadata">

### Author: ![Tony763](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tony763/32/2255_2.png) [@Tony763](https://community.openconversational.ai/u/Tony763)
#### Post date: [October 29, 2021, 3:09pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/39 "2021-10-29T15:09:08Z")

</div>

After this just restart mycroft. Then it should start up. and print debug messages.

---

<div class="post-metadata">

### Author: ![sparkyvision](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sparkyvision/32/3112_2.png) [@sparkyvision](https://community.openconversational.ai/u/sparkyvision)
#### Post date: [October 29, 2021, 3:12pm UTC](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428/40 "2021-10-29T15:12:09Z")

</div>

I cleared skills.log so I could find things easier. Here seem to be the relevant bits:

```auto
2021-10-29 10:10:49.665 | INFO | 671 | mycroft.skills.skill_loader:load:185 | ATTEMPTING TO LOAD SKILL: skill-homeassistant.tony763
2021-10-29 10:10:50.150 | INFO | 671 | mycroft.skills.settings:get_local_settings:83 | /opt/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 10:10:50.153 | INFO | 671 | mycroft.skills.settings:get_local_settings:83 | /opt/mycroft/skills/skill-homeassistant.tony763/settings.json
2021-10-29 10:10:50.268 | ERROR | 671 | HomeAssistantSkill | type: <class 'NoneType'>
2021-10-29 10:10:50.269 | ERROR | 671 | HomeAssistantSkill | content: None
2021-10-29 10:10:50.275 | INFO | 671 | HomeAssistantSkill | Removing all handlers...
2021-10-29 10:10:50.279 | WARNING | 671 | mycroft.skills.fallback_skill:remove_fallback:185 | Could not find matching fallback handler
2021-10-29 10:10:50.286 | ERROR | 671 | mycroft.skills.skill_loader:_create_skill_instance:313 | Skill initialization failed with TypeError('expected string or bytes-like object')
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.tony763/ __init__.py", line 96, in initialize
    self._setup()
  File "/opt/mycroft/skills/skill-homeassistant.tony763/ __init__.py", line 37, in _setup
    ip_address = check_url(ip_debug)
  File "/opt/mycroft/skills/skill-homeassistant.tony763/ha_client.py", line 53, in check_url
    matches = re.findall(IPV6_REGEX, ip_address)
  File "/usr/lib/python3.7/re.py", line 223, in findall
    return _compile(pattern, flags).findall(string)
TypeError: expected string or bytes-like object
2021-10-29 10:10:50.294 | ERROR | 671 | mycroft.skills.skill_loader:_communicate_load_status:351 | Skill skill-homeassistant.tony763 failed to load

```

[Previous page](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428.md?page=1)

[Next page](https://community.openconversational.ai/t/mycroft-speaks-twice-with-homeassistant-confirmations/11428.md?page=3)
