def getDeviceIcon(self, device: Device) -> str: if not device.uid: return 'EspPir.png' if not device.connected: return 'PIR_offline.png' if device.getCustomValue( 'disabled' ): # TODO please implement "disabled" status - I don't own a PIR return 'PIR_disabled.png' if device.getCustomValue( 'cooldown' ): # TODO please implement some kind of cooldown so you can see recent acivities return 'PIR_justActivated.png' return 'EspPir.png'
def getDeviceIcon(self, device: Device) -> str: if not device.connected: return 'satellite_offline.png' if device.getCustomValue('dnd'): return 'satellite_muted.png' if not device.uid: return 'satellite.png' return 'satellite_online.png'
def getDeviceIcon(self, device: Device) -> str: if not device.uid: return 'EspSwitch.png' if not device.connected: return 'switch_offline.png' if device.getCustomValue('on'): return 'switch_on.png' else: return 'switch_off.png'