Example #1
0
 def get_icon(self):
     if self._cmdId == 666:#Sensor
         return homepilot_utils.get_action_sensor_icon()
     if self._param is not None:
         return homepilot_utils.get_icon(self._iconset, self._iconsetInverted, self._param, type)
     else:
         return homepilot_utils.get_icon(self._iconset, self._iconsetInverted, 0, type)
Example #2
0
 def get_icon(self):
     if self._cmdId == 666:  #Sensor
         return homepilot_utils.get_action_sensor_icon()
     elif self._param is not None:
         return homepilot_utils.get_icon(self._iconset,
                                         self._iconsetInverted, self._param,
                                         type)
     elif self._cmdId == 10 or self._cmdId == 2:
         return homepilot_utils.get_icon(self._iconset,
                                         self._iconsetInverted, 100, type)
     else:
         return homepilot_utils.get_icon(self._iconset,
                                         self._iconsetInverted, 0, type)
Example #3
0
    def get_icon(self):

        return homepilot_utils.get_icon(self._icon_set,
                                        self._icon_set_inverted,
                                        self._position, self._deviceGroup)
Example #4
0
    def get_icon(self):

        return homepilot_utils.get_icon(self._icon_set, self._icon_set_inverted, self._position, self._deviceGroup)