toddmedema / echo

For controlling local devices with the Amazon Echo
207 stars 84 forks source link

[Help Wanted] Set "off" state based on ping #11

Closed rix1337 closed 6 years ago

rix1337 commented 6 years ago

I have successfully enhanced this script to allow WOL for multiple of my home devices. I struggle to find the code section in fauxmo.py where the Device state is handled.

Ideally I would like to implement a ping function (if ping to an IP is successfull, show device as ON). Second best would be a code change to show the device as always OFF.

Could anyone nudge me in either direction?

rix1337 commented 6 years ago

Unnecessary Alexa does not care about on/of state.. so I can do consecutive WOL without switching off the virtual adapter.