domschl / python-fhem

Python FHEM (home automation server) API
MIT License
15 stars 6 forks source link

read FHEM attributes #25

Closed cheick66 closed 1 year ago

cheick66 commented 1 year ago

Hi, is it possible to get attribut settings like reading a FHEM reading?

AttrVal("<device","verbose",) ReadingsVal("","",)

For example I would like to get the verbose level of a device, to switch on more or less messages inside my Phython script.

Best regards Christian

cheick66 commented 1 year ago

Sorry, I found the documentation :-)

get_attributes(*arg, **kwargs)[source] Return attributes of a device, can use filters from get() Parameters arg – str, Get only specified attribute, return all attributes of device when parameter not given kwargs – use keyword arguments from Fhem.get() function Returns dict of FHEM devices with attributes