einige von euch kennen sie ja bereits, aber dennoch möchte ich sie euch vorstellen.
mit dieser Library ist es möglich die HMIP Cloud direkt anzusprechen.
Es können Werte wie Temperatur (soll/ist), Zustand diverser Schalter ausgelesen bzw. gesetzt werden.
Github: https://github.com/coreGreenberet/homematicip-rest-api
Zusätzlich wird ein kleines CLI Skript mitgeliefert, welches bereits jetzt schon fast alles auslesen und setzen kann.
Code: Alles auswählen
usage: hmip_cli.py [-h] [--config_file CONFIG_FILE]
[--debug-level DEBUG_LEVEL] [--version]
[--dump-configuration] [--anonymize] [--list-devices]
[--list-groups] [--list-group-ids] [--list-firmware]
[--list-rssi] [--list-events] [--list-last-status-update]
[--list-security-journal] [--list-rules] [-d DEVICE]
[-g GROUP] [-r RULES] [--turn-on] [--turn-off]
[--set-dim-level DEVICE_DIM_LEVEL]
[--set-shutter-level DEVICE_SHUTTER_LEVEL]
[--set-shutter-stop] [--set-label DEVICE_NEW_LABEL]
[--set-display {actual,setpoint,actual_humidity}]
[--enable-router-module] [--disable-router-module]
[--reset-energy-counter]
[--set-protection-mode {presence,absence,disable}]
[--set-pin NEW_PIN] [--delete-pin] [--old-pin OLD_PIN]
[--set-zones-device-assignment]
[--external-devices EXTERNAL_DEVICES [EXTERNAL_DEVICES ...]]
[--internal-devices INTERNAL_DEVICES [INTERNAL_DEVICES ...]]
[--activate-absence ACTIVATE_ABSENCE]
[--deactivate-absence] [--list-profiles]
[--activate-profile GROUP_ACTIVATE_PROFILE]
[--set-group-shutter-level GROUP_SHUTTER_LEVEL]
[--set-group-shutter-stop]
[--set-point-temperature GROUP_SET_POINT_TEMPERATURE]
[--set-boost] [--set-boost-stop]
[--set-boost-duration GROUP_BOOST_DURATION] [--enable-rule]
[--disable-rule]
a cli wrapper for the homematicip API
optional arguments:
-h, --help show this help message and exit
--config_file CONFIG_FILE
the configuration file. If nothing is specified the
script will search for it.
--debug-level DEBUG_LEVEL
the debug level which should get used(Critical=50,
DEBUG=10)
--version show program's version number and exit
--list-security-journal
display the security journal
--list-rules display all automation rules
-d DEVICE, --device DEVICE
the device you want to modify (see "Device Settings").
You can use * to modify all devices or enter the
parameter multiple times to modify more devices
-g GROUP, --group GROUP
the group you want to modify (see "Group Settings")
-r RULES, --rule RULES
the automation you want to modify (see "Automation
Rule Settings"). You can use * to modify all
automations or enter the parameter multiple times to
modify more automations
Display Configuration:
--dump-configuration dumps the current configuration from the AP
--anonymize used together with --dump-configuration to anonymize
the output
--list-devices list all devices
--list-groups list all groups
--list-group-ids list all groups and their ids
--list-firmware list the firmware of all devices
--list-rssi list the reception quality of all devices
--list-events prints all the events
--list-last-status-update
prints the last status update of all systems
Device Settings:
--turn-on turn the switch on
--turn-off turn the switch off
--set-dim-level DEVICE_DIM_LEVEL
set dimmer to level (0..1)
--set-shutter-level DEVICE_SHUTTER_LEVEL
set shutter to level (0..1)
--set-shutter-stop stop shutter
--set-label DEVICE_NEW_LABEL
set a new label
--set-display {actual,setpoint,actual_humidity}
set the display mode
--enable-router-module
enables the router module of the device
--disable-router-module
disables the router module of the device
--reset-energy-counter
resets the energy counter
Home Settings:
--set-protection-mode {presence,absence,disable}
set the protection mode
--set-pin NEW_PIN set a new pin
--delete-pin deletes the pin
--old-pin OLD_PIN the current pin. used together with --set-pin or
--delete-pin
--set-zones-device-assignment
sets the zones devices assignment
--external-devices EXTERNAL_DEVICES [EXTERNAL_DEVICES ...]
sets the devices for the external zone
--internal-devices INTERNAL_DEVICES [INTERNAL_DEVICES ...]
sets the devices for the internal zone
--activate-absence ACTIVATE_ABSENCE
activates absence for provided amount of minutes
--deactivate-absence deactivates absence
Group Settings:
--list-profiles displays all profiles for a group
--activate-profile GROUP_ACTIVATE_PROFILE
activates a profile by using its index or its name
--set-group-shutter-level GROUP_SHUTTER_LEVEL
set all shutters in group to level (0..1)
--set-group-shutter-stop
stop all shutters in group
--set-point-temperature GROUP_SET_POINT_TEMPERATURE
sets the temperature for the given group. The group
must be of the type "HEATING"
--set-boost activates the boost mode for a HEATING group
--set-boost-stop deactivates the boost mode for a HEATING group
--set-boost-duration GROUP_BOOST_DURATION
sets the boost duration for a HEATING group in minutes
Automation Rule Settings:
--enable-rule activates the automation rules
--disable-rule deactivates the automation rules
Letzte VERSION: 0.10.6