Hey everyone! Completely new to Home Assistant but I already love basics so far.
We recently purchased a couple of Symfonisk speakers from IKEA, including this handy remote.
I originally had everything set up with the IKEA hub, but that was pretty limiting and I’ve since moved to a completely HA setup (SONOFF Zigbee 3.0 connected to a NUC).
I’m still trying to wrap my head around some of the scripting and automations, but I wanted to quickly ask the community if they could point me in the right direction to solve my issue.
We’ve got two separate speaker systems in our living room and dining room which are adjacent to each other. I’ve already been able to setup the remote through automations to increase and decrease volume to both simultaneously, but I want to do something a little more advance now.
The remote has two buttons on it, a single dot button and a double dot button.
I want to use those two buttons to change the “state” of the remote to be able to switch between adjusting the living room speakers, or the dining room speakers.
How can I go about enabling this? I feel like scripts are the answer, but I haven’t found anything yet that I believe would work for what I’m trying to do.
FYI, I have a background in programming, so I can work my way around a script if that’s the answer.
You can create a helper boolean (toggle) and this can be which one is currently in use.
So if it’s true/on then it’s for speaker 1 else 2.
So have the automation flip this on/off depending on button 1 or 2 on the remote.
Then probably as you have, trigger on volume up set the id: up
, have a choose condition triggered by up
.
In the sequence you have a if/then or choose with condition of the boolean.
And depending on the state of the boolean send up command to the correct media player
This is the easiest way that you can do with clicking in the UI and very few keyboard strokes
I have an automation blueprint for the Symfonisk remote which among other things does precisely this. Probably should get around to finishing up the last few pieces of documentation and release it…
That would be awesome to see! I haven’t had time to read into blueprints, but this seems like it would be very helpful in my situation. If you have something to share then I’d be happy to collaborate
I’ve put up the current version of the blueprint at GitHub. Copy the URL, then go to Automations & scenes > Blueprints > Import Blueprint and paste it in.
Most of the settings in the blueprint should be pretty self-explanatory. In order to support multiple players and switching between them the current player must be stored somewhere, which is that the dropdown helper is for. If you add the dropdown helper to a dashboard you can see in real time which player the remote currently controls and also switch between them from the dashboard.
“One dot” cycles backwards in the player list, “two dots” forwards. Hold the button to jump to the first/last player, though if you only have two players (and don’t enable the option to cycle around) the actions will be equivalent.
Also supports going back to the start of the current track before jumping to the previous track (like every other media player in existance), sending volume up/down/mute commands to grouped players, mute/unmute if you hold volume down/up, etc.
Ohh, and this is for ZHA only. If you use Z2M all the triggers will need to be modified.