Just wondered if anyone had come up with a smart way to merge or hide inactive Google Homes in HA?
I now have 3 Google Homes and want a couple more to cover the whole house. They work awesome with HA (even my wife approves).
We have a couple of speaker groups setup such as downstairs, upstairs, whole house etc and the issue is every group shows in HA as a separate media player in either an off or unavailable state.
I have a view for my living room with 3 Google Assistant media players (the device itself plus downstairs and whole house groups).
I’ve played with universal media player and it seems to take the state of the group speakers of unavailable when the main device is in a off state.
Yes I have but I don’t use multiple views and scripts etc and it references HTML files. It’s not clear how to put those media players in a group… or maybe it’s just the standard way? I might give that a go.
This is what i ended up with. Mostly the same as what @anon43302295 posted but I changed the input_text icon so if it’s unavailable on HA startup I don’t get that input text icon.
I’ve also made the media_player icons different for the speakers and speaker groups as a easy way to tell the difference
This was working perfectly for me until I upgraded to 0.70. Now I only get the group heading with no media players and I have several of these errors in my log:
http:// 192.168.1.xxx:8123/frontend_latest/app-653721033e62144d6a686dab25ef1429.js:2:12049 Uncaught TypeError: Cannot read property ‘computeStateName’ of undefined