d0ugal / python-rfxcom

A Python 3.3+ library for working with your RFXTrx and automating your home.
BSD 3-Clause "New" or "Revised" License
8 stars 10 forks source link

Only set the RFXtrx mode at startup if needed. #13

Closed d0ugal closed 10 years ago

d0ugal commented 10 years ago

Currently the mode is set at startup, but a response from the STATUS packet will tell us if this is needed as it will show the protocols that are enabled.

d0ugal commented 10 years ago

Issue #7 is also related here, but a slightly different problem.

d0ugal commented 10 years ago

One point to note about how the MODE works within the RFXtrx.

When setting the mode for the RFXtrx it is reset each time the device is unplugged unless the save command is also sent. At the moment we just set the move on startup but never save it. This could be changed, I went for the simplest option that allowed us to easily change the mode. Eventually it would be better to have an easier way to enable and disable protocols without having to edit a bytearray :)