Closed luca776 closed 6 years ago
Thanks for the PR! I unfortunately don't have devices to quickly test with, and it's been a while since I've used this. I have a vague recollection of running into problems with SSDP when running on JRuby. If it's not too much trouble, mind verifying that this works in that environment?
Ok, you were right, there was an issue with JRuby, I fixed it on SSDP and the author was very fast to merge my Pull Request. Now I added the dependency to the new gem version (>=1.1.6) and I removed some duplicate code in the Insight sublclass.
@gisikw do you think it's okay?
So sorry for the delay on this. Thanks for getting it working with JRuby - excited not to be shelling out :)
Instead of maintaining the list of MAC addresses, the search is performed through the SSDP protocol. Insight class add support to "standby?" state and can determine the power consumption of the device.