Python Library to communicate with local Busch-Jaeger Free@Home REST API
Project description
python_freeathome_local
The datamodel of the Free@Home Rest-API is setup the following way:
- The root-node is a SysAp
- The SysAp contains devices and a floorplan
- Each device has 1 to many channels (the behaviour of a channel is defined by the FunctionID)
- A channel has 0 to many Input- and Output-Datapoints (the behaviour of a datapoint is defined by the PairingID)
- An Input-Datapoint is used to set a value (e.g. turn on a switch) -- To change the value of an such a datapoint a PUT-call is needed
- An Output-Datapoint shows the current state (e.g. switch is on) -- All modifications are reported through a websocket-connection
- A device and a channel can have 0 to many parameters (the function of a parameter is defined by the ParameterID)
Drawback
The major drawback I see so far regarding the Rest-API is that the parameters can't be controlled. E.g. the WeatherStation has a parameter called 'par0039' (TRANSMISSION_INTERVAL), which defines how often updated values are send. This interval can be changed in the mobile app, but not through the Rest-API, additionally (what is even more worse) any modifications are not reported through the websocket. This means that after the initial load of the configuration any modifications to the parameters through the mobile app are not recognized by this library :(
Implemented channels
Name | Inputs | Outputs |
---|---|---|
BrightnessSensor | - | BrightnessLevel (float) - state BrightnessAlarm (bool) |
RainSensor | - | RainAlarm (bool) - state RainSensorActivationPercentage (float) rainSensorFrequency (float) |
TemperatureSensor | - | OutdoorTemperature (float) - state FrostAlarm (bool) |
WindSensor | - | WindSpeed (float) - state WindAlarm (bool) WindForce (float) |
Trigger | TimedStartStop - press | - |
SwitchActuator | SwitchOnOff(bool) - turnOn/turnOff Forced(bool) TimedStartStop(bool) TimedMovement(bool) |
InfoOnOff (bool) - state InfoForce (bool) InfoError (bool) |
WindowDoorSensor | - | WindowDoor (bool) - state |
MovementDetector | InfoOnOff | InfoOnOff (bool) - state BrightnessLevel (float) TimedMovement (bool) TimedPresence (bool) |
SwitchSensor | - | SwitchOnOff (bool) - state |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python_freeathome_local-0.0.3.tar.gz
.
File metadata
- Download URL: python_freeathome_local-0.0.3.tar.gz
- Upload date:
- Size: 43.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1e58a4f5c040a190ceb916cb38acdb112ba44ee136e29c972e7fbfe548f1ae4 |
|
MD5 | 2b72b85b6651db49df264e15b1087692 |
|
BLAKE2b-256 | 4698dd80e42cc4355458556166029c926b567ad1fdc40c45c8bda77b77811092 |
File details
Details for the file python_freeathome_local-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: python_freeathome_local-0.0.3-py3-none-any.whl
- Upload date:
- Size: 59.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a624930019acc205ebb4b48fedc781cf13c29c1b0c5a4f3c4382a88b0c6e4fee |
|
MD5 | 2c6beab3030454bd914e9045811e719a |
|
BLAKE2b-256 | 839770e0f7a4363af247fe2d6e7b7667b71865762cfa11ca55efa1ec2c30870b |