I’m on the same boat - sometimes frustrating, sometimes rewarding. But seriously, you should consider a Harmony Hub if you want real control over your media things. This is my Lovelace card that shows the current activity:
Now I can also add volume control below it, this is the next challenge ;-).
Was based on this post: Harmony Activities, Volume Slider, and Lovelace
its looking more and more like harmony hub is in my future that prolly take care of the none networked none CEC tv issue I am having as well.
so you can Control the input of the sony as well like when I get home switch on Radio tuner on the sony and power up the HTPC with kodi ?
Yes, that’s the way Activities work. Say f.e. you have activity “Watch tv”, that means: starting the tv, starting the receiver, set input channel tv on hdmi2, use output channel tv on receiver, and after that make sure that all buttons on your receiver have something to do with this. The Harmony recognizes almost any media device you throw at it. The remote doesn’t even work with infrared, so you can use it from wherever you are in the house, not in line of sight. It’s the hub that sends infrared, bluetooth, wifi to the devices. The setup takes a bit of time and thinking, but it’s ok.
Once you defined your activities, you can add them to Home Assistant and trigger them any way you like. Also, if you still want to, you can also send commands to f.e. switch hdmi inputs.
ok broke down and bought the harmony hub and remote so now have control over the dn 1040
this allows me to control my AV, kodi and my TV Via the hub
though not as straight forward as I would like for example if I use activities to turn on the radio it turns on to my FM station however if I turn off the system and turn it back on to the radio again it starts in FM then jumps to AM what I have discovered is the harmony turns on the AV then selects the input being the DN1040 tuner band is selected by the same input button press that selects the tuner so if already on the tuner then it changes the band the Fix for that is in home assistant writing a scrip instead of turning on the AV reciever if you select a input say the tuner it turns on the AV without changing the band something activities does not seem able to do. also I can set the Volume of the AV reciever to a predetirmed level through the same script by using the DLNA_DMR, so in short through multi hacks I able to get my system to do what I want it to do
this is exactly what I am trying to do, would you mind sharing the script?
I am happy to let me see if I can share via smart phone
Action type = Call service
Service = media_player.volume_set
Service data = {
“entity_id”: “media_player.sony_av”,
“volume_level”: “.8”
}
Entity is is the name of your device you are controlling
Perfect! Thank you! Now to go and try to set this all up
Try the Songpal integration, let you change volume, source and turn off (and on) your Sony STR-DN1080.
songpal will not work with a sony 1040 though
could anything be done to crudely connect the infrared input on the back of the unit to receive pre progrmmed commands that way?
my sony str-za810es was autodiscovered until yesterday now totally disappeared. WTF? I f*cking hate “auto” discovery. I hate “auto” anything frankly. Auto-broken is what they should call it.
Yet you’re "auto"mating your house with home assistant???
Yeah, but I wrote all the code.
I know ports is to daisy chain other devices so the receiver remote could control it I guess you could try connecting mini blaster ports on a harmony to it with a jumper cable and see that happens
Hello,
I would like to refresh this topic, as I also have SONY STR-DN1050, which is supported by library from https://github.com/KHerron/SonyAPILib
Even I have installed Sony Video & TV SideView: Remote and can manage my STR-DN1050.
Yes, I can use this device in as dlna_dmr, but not to manage it.
media_player:
- platform: dlna_dmr
url: http://1.1.1.1:8080/description.xml
I register my mobile to device, and little bit sniff. when you register to device, you need to add to header:
“X-CERS-DEVICE-ID: TVSideView:xx-xx-xx-xx-xx-xx”, where it’s my mobile device mac. and then API is open. for example, you can use:
curl -s -H “X-CERS-DEVICE-ID: TVSideView::xx-xx-xx-xx-xx-xx” http://1.1.1.1:50001/cers/ActionList.xml
and you get pack:
<actionList>
<action name="register" mode="1" url="http://1.1.1.1:50001/cers/register" />
<action name="getSystemInformation" url="http://1.1.1.1:50001/cers/getSystemInformation" />
<action name="getRemoteCommandList" url="http://1.1.1.1:50001/cers/getRemoteCommandList" />
<action name="getStatus" url="http://1.1.1.1:50001/cers/getStatus" />
<action name="getText" url="http://1.1.1.1:50001/cers/getText" />
<action name="sendText" url="http://1.1.1.1:50001/cers/sendText" />
</actionList>
so, then you can get remote command list, and so on… I assume bravia use the same, but only registration procedure need to be improved. as legacy devices do not use any PINs for registration.
As you can see Bravia have very similar API https://gist.github.com/trappedinspacetime/506a09a31b8829d877bd80d6ac6e13ab
also with examples how to send command. But my assumption, it should be very easy to integrate current bravia plugin to STR and other devices. I think only registration need to be updated, and API works the same.
Ed
I’m using a 1080 for 2 rooms. I use a harmony hub and ha to turn on and off the sub power supplies however the harmony hub can’t control zone 2 hdmi output. There is no direct ir command to change it. I have to use a smartphone app or the main remote and the menu structure.
This isn’t very girlfriend friendly…
Anyone know if I can get ha to change the zone 2 hdmi output please?
Or even maybe expose the 2nd hdmi output in HA then i can use HA to switch the 2nd output?
Bingo exact same issue.
I have the Harmony integration for HA, but that too doesn’t allow me to do anything besides trigger activities.
I came across this old thread when looking for an integration for my old STR 1040, which didn’t seem to exist. So, I’ve written one. If anyone’s interested, I’ve posted a media player integration for my 1040 to peteS-UK/sonyavr: Home Assistant Media Player for older Sony AVRs (github.com). If you’d like to give it a try, please post any issues to Issues · peteS-UK/sonyavr (github.com)
It’s based on the stripped code posted at Stripped version of https://github.com/aschaeffer/sony-av-indicator, modified to work with asyncio with a load of changes around notifications in particular.