I removed the code for alert on motion and I leaved only the code for alarm.
This is because I undestood the structure of home genie.
This is only a connection for AV Media, motion on alert could be a second program that use an generic avmedia.
With this version, the module is always connected with the squeeyebox.
I have only a question, with the function
Action<string> HandleMessageReceived = (string message) => {
string[] msg = ((string)message).Split(' ');
switch(msg[1])
{
case "mixer":
if (string.Compare(Program.Parameter("HomeAutomation.SqueezeBox.volume").Value,msg[3]) != 0 && string.Compare(msg[2], "volume")==0) {
Program.Parameter("HomeAutomation.SqueezeBox.volume").Value = msg[3];
Program.RaiseEvent("HomeAutomation.SqueezeBox.volume", msg[3], "Squeeze box Volume");
}
}
};
I catch the change of volume on Squeeyebox, how I can update the structure AVMEdia with the new volume number?
In other word, if I change volume on my squeeyebox I wold like to see on homegenie..
Thnk you