code: def get_hkr_state(self):
          
          self.update()
          try:
              return {
                  126.5: 'off',
                  127.0: 'on',
                  self.eco_temperature: 'eco',
                  self.comfort_temperature: 'comfort'
              }[self.target_temperature]
          except KeyError:
              return 'manual'
docs: Get the thermostate state.