Skip to content

3.6.0 DPT helpers and timezone

Latest
Compare
Choose a tag to compare
@farmio farmio released this 19 Feb 08:02
· 3 commits to main since this release

Devices

  • Datetime: Accept datetime.tzinfo for timezone argument to send time information for specific timezone. Boolean works like before: If True use system localtime. If False an arbitrary time can be sent.

DPT

  • Add DPTBase.dpt_number_str and DPTBase.dpt_name classmethods for human readable DPT number (eg. "9.001") and class name (eg. "DPTTemperature (9.001)").
  • Add DPTBase.get_dpt classmethod to get a DPT class by its number, name or DPTBase type.

Internal

  • Collect group addresses with decoding errors at eager decoder in xknx.group_address_dpt.ga_decoding_error set.