Multiple Mycroft hosts?

I just got Picroft working on a Pi3. I’m not at the point of having multiples yet, but I would like to have a few to put around the house. How would you specify multiple hosts in configuration.yaml?

something like:

mycroft:
  hosts:
  - 192.168.1.123
  - 192.168.1.456

? Or separated by commas?

I’m wondering that too. I’m currently running 2 x Mycroft Mark 1’s, with another waiting to be set up… so will need to run at least 3 altogether. I can’t even get notifications working with a single Mycroft yet though, due to this error: https://github.com/home-assistant/home-assistant/issues/16902

EDIT - the notification issue with a single Mycroft was due to port 8181 being blocked on Mycroft’s firewall in Mycroft version 18.8.1 - which I fixed by running:

sudo ufw allow 8181/tcp

on the Mycroft instance in question, which permanently opened up port 8181 on the firewall.

1 Like

@btotharye Do you know if this is possible please, and what the syntax would need to be if so?

@btotharye What I’d ideally want to be able to do is to configure each Mycroft instance individually within Home Assistant, each with its own name, e.g. ‘mycroft-lounge’ and ‘mycroft-bedroom’, and then be able to group these together too, so as to be able to send a message to an individual Mycroft or to the group (so that all Mycrofts in the group would get the message). I’ve seen this done with other types of component within Home Assistant, so I would hope it’s possible.

Btw, I’m tempted to suss this out myself given a bit of time, as it’s something I need now for my doorbell project. So if I find a solution, I’ll let you know. I’m most likely going to fork the GitHub repo and modify the code personally, testing it on my instance of hass.io at home.

1 Like

I have this question, too. How do I add multiple picroft instances to the config?

1 Like

I’ve just created a custom component to do this - https://github.com/ruth-connect/hass-multi-mycroft

This lets you specify as many Mycroft instances as you want.

2 Likes

I have a mesh-skill for Mycroft which uses mqtt to communicate to/from Mycroft by specifying the mqtt topic based on the picroft location settings. Let me know if you need a link.