code: def list_all(fritz, args):
      
      devices = fritz.get_devices()
  
      for device in devices:
          print('#' * 30)
          print('name=%s' % device.name)
          print('  ain=%s' % device.ain)
          print('  id=%s' % device.identifier)
          print('  productname=%s' % device.productname)
          print('  manufacturer=%s' % device.manufacturer)
          print("  present=%s" % device.present)
          print("  lock=%s" % device.lock)
          print("  devicelock=%s" % device.device_lock)
  
          if device.present is False:
              continue
  
          if device.has_switch:
              print(" Switch:")
              print("  switch_state=%s" % device.switch_state)
          if device.has_switch:
              print(" Powermeter:")
              print("  power=%s" % device.power)
              print("  energy=%s" % device.energy)
              print("  voltage=%s" % device.voltage)
          if device.has_temperature_sensor:
              print(" Temperature:")
              print("  temperature=%s" % device.temperature)
              print("  offset=%s" % device.offset)
          if device.has_thermostat:
              print(" Thermostat:")
              print("  battery_low=%s" % device.battery_low)
              print("  battery_level=%s" % device.battery_level)
              print("  actual=%s" % device.actual_temperature)
              print("  target=%s" % device.target_temperature)
              print("  comfort=%s" % device.comfort_temperature)
              print("  eco=%s" % device.eco_temperature)
              print("  window=%s" % device.window_open)
              print("  summer=%s" % device.summer_active)
              print("  holiday=%s" % device.holiday_active)
          if device.has_alarm:
              print(" Alert:")
              print("  alert=%s" % device.alert_state)
docs: Command that prints all device information.