I have, so far, successfully moved my HA from RPi to Docker running on Mac Mini.
However, none of my 12 Google Home mini devices are showing up.
They self discovered on the RPI.
What may I not have copied across correctly or is there a way to manually add them?
Try to enter with a console into the homeassistant container and ping the GH mini IP to see if they are reachable
ashscott
(Ash)
March 13, 2019, 10:30am
3
Good idea!
I’ll need to find out how to do that.
Is it just ping 192.x.x.x.x?
if you’re running Hassio, just add the SSH & Web Terminal addon and you will have a web terminal to use.
Yes, ping ip_address
ashscott
(Ash)
March 13, 2019, 10:46am
5
I’m not running HassIO.
I got into it with Portainer.
Yes, I can ping them.
ashscott
(Ash)
March 13, 2019, 10:48am
6
This is what I see for all of them:
No state available for media_player.kitchen_speaker
{
“entity”: “media_player.kitchen_speaker”,
“type”: “media-control”
}
Where is the entity ‘media_player’ configured? I think that’s what I’m missing.
ashscott
(Ash)
March 13, 2019, 10:58am
7
I’ve copied over core.device_registry and core.entity_registry files from the Rpi to the docker HA and they now show up in the Entity Registry but still show as ‘unavailable’, as above.
it should be defined in configuration,yaml as
cast:
media_player:
- host: xxx.xxx.xxx.xxx
- host: xxx.xxx.xxx.xxx
aidbish
(Adrian)
March 13, 2019, 11:17am
9
do you have the set network_mode as host as mentioned in the documentation. i believe thats required for successful discovery
or you can use the cast integration instead of defining in configuration.yaml
ashscott
(Ash)
March 13, 2019, 11:31am
10
When I tried to add the Cast integration it said no cast devices found on the network.
Container network is set to Bridge. My MQTT devices are communicating with it fine on the same network.
You’re on the right lines though, I think. It seems to be a network config issue somewhere. I just don’t yet have the experience to find it.
aidbish
(Adrian)
March 13, 2019, 11:32am
11
pretty sure for HA to work correctly you need to set the network to use host
aidbish
(Adrian)
March 13, 2019, 11:34am
12
if using portainer you can edit/duplicate the container and also change the network mode
ashscott
(Ash)
March 13, 2019, 11:44am
13
When I attempt to join the host network it gives me an error.
In all other respects, webhooks, mqtt etc. it’s communicating fine with bridge though.
I can’t see where to duplicate the container in Portainer.
aidbish
(Adrian)
March 13, 2019, 11:49am
14
if you click on the container near the top u have stop start restart
ashscott
(Ash)
March 13, 2019, 11:53am
15
Thanks! I just found it. Deploying now with Host as the network.
ashscott
(Ash)
March 13, 2019, 1:43pm
16
That was a struggle.
Turns out that host network is not available on docker for Mac .
ashscott
(Ash)
March 13, 2019, 1:45pm
17
So, if I can ping the Google Homes from the container, publish and subscribe to MQTT broker and devices, run webhook automations from outside the network, what is it about Google Homes that is stopping them being added?
ashscott
(Ash)
March 13, 2019, 2:04pm
19
A bugger, yes, but that doesn’t explain why I can’t access the Google Homes.
ashscott
(Ash)
March 13, 2019, 2:18pm
20
Adding them like this they do show up in the front tend and also in cast integration! Progress.
However, I can make them ‘chirp’ when turning on and off from the front end but they don’t speak the entered text. They do from the RPi, however.