30 lines
592 B
Python
30 lines
592 B
Python
|
# -*- coding: utf8 -*-
|
||
|
'''
|
||
|
Home by SFR wrapping class
|
||
|
Plain use of your Home by SFR device from a Python 3 library
|
||
|
|
||
|
Warning:
|
||
|
This is a wrap aroud website, this could stop working without prior notice
|
||
|
'''
|
||
|
|
||
|
# TODO:
|
||
|
## Write the library
|
||
|
|
||
|
authors = (
|
||
|
)
|
||
|
name = 'homesfr for Python 2'
|
||
|
version = '0.8-20160521'
|
||
|
|
||
|
# Settable modes
|
||
|
MODE_OFF = 0
|
||
|
MODE_CUSTOM = 1
|
||
|
MODE_ON = 2
|
||
|
|
||
|
# Sensors names
|
||
|
PRESENCE_DETECTOR = 'PIR_DETECTOR'
|
||
|
MAGNETIC_OPENNING_DETECTOR = 'MAGNETIC'
|
||
|
SMOKE_DETECTOR = 'SMOKE'
|
||
|
SIREN = 'SIREN'
|
||
|
REMOTE_CONTROLER = 'REMOTE'
|
||
|
KEYPAD_CONTROLER = 'KEYPAD'
|
||
|
PRESENCE_CAMERA_DETECTOR = 'PIR_CAMERA'
|