A configurable timeout would be very nice!
New version uploaded. I found a way that was within reasonable amount of effort. I have added a variable for the timeout that can be configured from an external python script (or other application) during the RFXtrx plugin runtime .
To configure a 24 hours timeout, simply run a python script or command like this while the RFXtrx plugin is running:
Code: Select all
eg.plugins.RFXtrx.plugin.sensorLostTimeOut = 86400.0
If you you restart the RFXtrx plugin or EG, it will default back to 600.0 seconds. So the best is to setup the configuration like this:
Autostart -> your plugins including the RFXtrx plugin ->Wait (5.0 seconds) ->The python script
Once up and running, you can change it again if needed at any time by running the script with another value
The setting will affect all sensor brands and types with the following exceptions that will keep their settings unchanged:
types = {
'00': 'RFXSensor temperature',
'01': 'RFXSensor A/D',
'02': 'RFXSensor voltage',
'03': 'RFXSensor message'
}
6000.0 seconds (#100 minutes timeout)
types = {
'00':'RFXMeter normal data packet',
'0f':'Identification packet'
}
3900.0 seconds (#65 minutes timeout)
types = {
'00': 'X10 security door/window sensor',
'01': 'X10 security motion sensor',
'02': 'X10 security remote',
'03': 'KD101',
'04': 'Visonic PowerCode door/window sensor',
'05': 'Visonic PowerCode motion sensor',
'06': 'Visonic CodeSecure',
'07': 'Visonic PowerCode door/window sensor ÔÇô auxiliary contact',
'08': 'Meiantech',
'09': 'Alecto SA30'
}
15000.0 seconds (#250 minutes timeout)