Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
I have been reading and playing for days with the Echo Ha bridge and eventghost. I have all kinds of home automation running great but I am stumped on the following.
I have created a device in ha bridge called receiver. I use it to control the power off and on on my Denon receiver. I am trying to use the dim function to set specific volumes. I need to send the command MV30 where the 30 is the volume I want to set. I have the bridge sending the command as HTTP.denon.dim [u'30']. The problem I am having is sending this on to my Denon using python. The Denon expects to receive this with the 30 as an integer and the only way I see to send it is as a string. Here is the code I have.
Well I don't completely understand it but I did get it to work. I am completely new to python so I have just been reading and trying things. Here is the code that finally worked. I am sure there is a better way but this works.
I am using that plugin. This is a custom action using that plugin to send a specific volume to my receiver instead of just and up or down volume command. The line "eg.plugins.NetworkSender.Send_Custom_Action" uses that plugin to send the command to my reciever. It works great except that the plugin keeps losing its connection to the receiver.
toadleyb wrote:I am using that plugin. This is a custom action using that plugin to send a specific volume to my receiver instead of just and up or down volume command. The line "eg.plugins.NetworkSender.Send_Custom_Action" uses that plugin to send the command to my reciever. It works great except that the plugin keeps losing its connection to the receiver.
how do you know it's losing connection??
i know with some of these network attached receivers if they are doing something else your request gets blocked. so what you may have to do is have the script send the folume command and then query the avr for the current volume and see if they match and if no or you do not get a response then to send the command again.
or does it tell you it's not connected?
and does the plugin for the avr have an option to do an automatic connection and one to do a static and have you tried both?
If you like the work I have been doing then feel free to
Thank you for all the help kgschlosser. It appears the problem is with my receiver dropping its network connection. Not an issue with Eventghost. I am working on troubleshooting that now.