whaleygeek / pyenergenie

A python interface to the Energenie line of products
MIT License
82 stars 51 forks source link

Switching code #24

Closed whaleygeek closed 8 years ago

whaleygeek commented 8 years ago

Asked by @LibanO:

I was wonder if you have a switching.py example available? Or is there a command I can use on Monitor.py to switch the MIHO005?

whaleygeek commented 8 years ago

Response:

There is already a switching message inside monitor.py, and the default code turns the switch on and off repeatedly every few seconds.

here: https://github.com/whaleygeek/pyenergenie/blob/master/src/monitor.py#L109

and here: https://github.com/whaleygeek/pyenergenie/blob/master/src/monitor.py#L109

The default time is currently set to toggle every 60 seconds, set here: https://github.com/whaleygeek/pyenergenie/blob/master/src/monitor.py#L151

whaleygeek commented 8 years ago

Issue resolved by answer above, closing.