Loader

Useful for creating a Service or Characteristic.

class pyhap.loader.Loader(path_char='/home/docs/checkouts/readthedocs.org/user_builds/hap-python/checkouts/latest/pyhap/resources/characteristics.json', path_service='/home/docs/checkouts/readthedocs.org/user_builds/hap-python/checkouts/latest/pyhap/resources/services.json')[source]

Looks up type descriptions based on a name.

See also

pyhap/resources/services.json

See also

pyhap/resources/characteristics.json

classmethod from_dict(char_dict=None, serv_dict=None)[source]

Create a new instance directly from json dicts.

get_char(name)[source]

Return new Characteristic object.

get_service(name)[source]

Return new service object.