i am currently experimenting with the HEOS add-in and Lovelace. Unfortunately it seems like the power off function is not implemented when using the media player Lovelace widget. As you see in the screenshot it is available when talking to the AVR via the DENON add-in.
It is actually logic.
The HEOS player is always on. And when it is idle and the receiver is off, you still can send a new play request, it will accept it and power on the receiver part.
It seems like only the Denon AVR Integration provides a working service media_player.turn_off, but not the HEOS Integration. I guess the observation OP made is still true in 2022
Moreover, seems that there is more functionality build into HEOS API, that is not documented in the lates available API documentation. For example if you network player + integrated amp combo (like marantz model30 + sacd 30n) you can control volume from remote and from HEOS app directly on aplifier, but using HEOS API it only controls level of variable output from player. Since documentation that is available oficially via marantz web page is quite dated, I send email to marantz support asking for updated API one, but never got the response… So without updated documentation I’d not expect any changes to inegration
Apologies for the bump but could you elaborate more on how you set this up? Trying to set up my Model 40 to turn on and off via the network. The google home application on a phone has the options of on/off and the HEOS app can do it but for some reason the power options are still not available via the HEOS HA integration.
Edit: I think I figured it out. Put your code inside the configuration.yaml file and a new switch with the name model_40 showed up. Then with that I could do a simple toggle button. Thank you again.
thank you so much for this. it worked great with my pma-9000hne…any idea how to get swtich toggles for speaker a and b? i greatly appreciate it thanks a ton!
Sorry, I cannot test as my marantz is single zone intgrated only. But by similarity I’d expect something like that to work (assuming that in denon/marantz nomeclature referring to zones means referring to speaker sets):
I assume this would work in the way that when swith is on output would be redirected to specific speaker and if off then speakers would be muted/zone turned off…
Otherwise in documentation I found there is no reference to speakers sets switching.
i triedand i can not figure it out…i think i am doing it wrong. if you could take a look and see if you can figure it out and then i can test it. thank you!!!
BUT: there are few cavetas here, due to how template switch works in HA:
this set of command gives infomration how to select one of speakers setup, but not how to switch it off explicitly (well, from Denon CLI perspective it makes sense as always one option should active and there should not be possibility do disselect all of spekers). So code I provide works in the way and it is sort of toggle. Selecting spekers A (SPA) enables these and sisselect SPB. Turning this off (need to be provided for template switch) selects in fact SPB. Similarly for SPB. So here both switches works a bit like toggle between them. For both speakers (A+B) toggling works between A+B and SPA.
I’m not sure if this will work properly, as probably status of switch is only checked for switch that is activated. so using speaker_a switch might toggle properly and this switch status will be reported as ON: SPA and OFF:SPB. But in the same time, most likely, styatus of speaker_b switch will not change automatically to reflect this. Same hassle for speaker_ab switch.
I’m not sure if status of sweitch will be reported properly… I’m just guessing what will be the response of amplifier to command PSFRONT ?. If this will be something different tha my guesses, state of switch will always be OFF, even if the switch activation actually might work.
finally switches might work without checking the status (command state), and then HA will assume that command was succestully completed and switch state will change according to called command (ON or OFF), perhaps this could be somehow used…
Bottom line, we have here situation with 3 possible states (SPA, SPB A+B), that template switch is not designed to handle… Perhaps someone elso on forum knows some clever solution how to handle this… And again, I’m not able to test this with my setup
so i tried everything ps spa spb or z2 any command nothing works. i telnetted in and i tried everything no good. from the app while telnetted in i raised volume changed source muted etc. and i saw the commands in real time through telnet come through. when i click power on spa or spb on heos app NOTHING comes through on telnet…so basically denon limits you 100% to the heos app to do this? if so i am pissed… only thing i can think of is maybe switch bot to push the physical speaker button on the amp… i wish the remote had a button that would change speakers but of course not. any ideas? cause it looks like the telnet commands for speaker a/b are non existent… but then how does the heos app send over the network to it???
Well, this is the problem with Denon/Marantz, unfortunatelly. There are some cavetas in their API that are not well (or not at all) documented. For 2 years I’m struggling with volume control of my Marantz Model 30 + SACD30n combo. Documented API calls only allow to control variable output of a player, not the physical volume on the amplifier. Heos app can do this properly, though neither CLI or Heos API documentation document how to manage this, though it is clearly possible. I ended up with using logitech Harmony Hub and emulating volume button preeses to make it happen.
that is what i also was going to try…i got a broadlink ir blaster, but the problem is this there is no remote control button on the remote that can even do this… on the amp it self there is a speaker button if you press it once it shows speaker a…press again speaker b…and again speaker a+b and lastly off.
this is driving me nuts! if the heos app let you open the app and see devices when not connected to wifi network then whatever not the end of the world, but say i am not on the wifi network as the amp is connected to via ethernet then you cant even see the device. i hope you find out how to figure out your issue, because this is driving me up the wall lmao thanks for your hlep tho i appreciate it. if you see anything regarding this or think of anythign let me know!
Strange, this is not mentioned in documentation anywhere…
Have you tried to use commands (PSFRON SPA, PSFRONT SPB, PSFRONT A+B) directly from telnet?
BUT, if these are outputs you received while pressing physical buttons, there should be response to command send to receiver too…
If so, it might complete the setup of HA switches, that previously was not clear (proper switch status reading):
Tricky part is that there is no command defined to switch off particular set of of speakes, only to make selection of A, B, A+B or all off. I mean if AB is active, there is no way switch set A only off… this would require some extra logic beyond just telnet switch.