code: def handle_event(self, event):
          
          string = '{id:<32} '
          if 'command' in event:
              string += '{command}'
          elif 'version' in event:
              if 'hardware' in event:
                  string += '{hardware} {firmware} '
              string += 'V{version} R{revision}'
          else:
              string += '{value}'
              if event.get('unit'):
                  string += ' {unit}'
  
          print(string.format(**event))
docs: Default handling of incoming event (print).