I’m currently working on an enigma2 binding. I know there is one for oh1 but not for oh2.
The main question is, has anybody an idea how i could manage to detect a enigma2 automatically?
I currently use mDNS but this does not really work i want i to do. However, i now had the idea, that i could check if http://ipaddress/web/about sends any requests.
Here is the current version, if anybody wants to have a look at. I know it is not ready at all!
I have no specific information or tests done using wireshark, but I know I see my VU+ Solo2 in Windows. So Windows is able to discover the box. The best chance to try is simple service Discovery Protocol (SSDP). But I can try this and look in the wireshark trace if I find SSDP entries from the enigma2 ip address.
Yes separate thread may make sense. Just link it here once. But definitely interesting plugin for the reverse direction. Maybe with the help of this plugin the binding could get some events or status info that are currently not accessible.
So would be interesting to react on changing the mode from TV to radio and vice versa for example.
This was my motivation to write the plugin, but I finally did not implement such feature. I wanted to turn on lights in my living room when pause or stop is pressed on box’s pilot, but it would not be the best idea in all cases.
But I liked much manual controlling of lights and other devices using pilot. I usually turn off light when I start watching tv.
Of course this binding works with http request on the webinterface. But i don’t think you can do this with simple http binding requests. You would need a lot of rules to manage this. E.g. How would you implement a slider for the volume with the http binding? How would you switch the channel? With the binding you are able to switch the channel by sending the name as String. The simpiest thing would probably be to get the current titel. But the return value is a XML formated String. So you would need to manipulate it with a rule.
So perhaps it is possible so manage this with the http binding, but it would not be easy