homematicip.base.homematicip_object¶
homematicip.base.homematicip_object
¶
HomeMaticIPObject
¶
This class represents a generic homematic ip object to make basic requests to the access point
from_json
¶
this method will parse the homematicip object from a json object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
the json object to parse |
required |
fromtimestamp
¶
internal helper function which will create a datetime object from a timestamp
set_attr_from_dict
¶
this method will add the value from dict to the given attr name
Args: attr(str): the attribute which value should be changed data(dict): the dictionary from which the value should be extracted enum_type(AutoNameEnum): this will call enum_type.from_str(value), if a type gets provided dict_attr: the name of the attribute in the dict. Set this to None(default) to use attr addToStrOutput(str): should the attribute be returned via str()
str_from_attr_map
¶
this method will return a string with all key/values which were added via the set_attr_from_dict method