def __init__(self, devices): super().__init__(devices) # self.devices.append(TemperatureSensor(devices, 'temp', 'temperature', ' (Temperature)')) # self.devices.append(HumiditySensor(devices, 'hum', 'humidity', ' (Humidity)')) self.devices.append( TemperatureHumiditySensor(devices, 'all', 'combined', ' (Temperature + Humidity)')) self.devices.append(CustomSensor(devices, 'voc', 'voc', ' (Voc)'))
def __init__(self, devices): super().__init__(devices) self.devices.append( VoltageSensor(devices, 'volt', 'voltage', ' (Voltage)')) self.devices.append( CurrentSensor(devices, 'ampere', 'current', ' (Current)')) self.devices.append(CustomSensor(devices, 'power', 'power', ' (Power)'))
def __init__(self, devices): super().__init__(devices) self.switch = SelectorSwitch(devices, 'cube', 'action') self.switch.add_level('Off', None) self.switch.add_level('Flip 90', 'flip90') self.switch.add_level('Flip 180', 'flip180') self.switch.add_level('Tap', 'tap') self.switch.add_level('Shake', 'shake') self.switch.add_level('Fall', 'fall') self.switch.add_level('Slide', 'slide') self.switch.add_level('Rotate Left', 'rotate_left') self.switch.add_level('Rotate Right', 'rotate_right') self.switch.set_selector_style(SelectorSwitch.SELECTOR_TYPE_MENU) self.devices.append(self.switch) self.devices.append(CustomSensor(devices, 'angle', 'angle', ' (Rotation Angle)')) self.devices.append(CustomSensor(devices, 'side', 'side', ' (Side)'))
def __init__(self): super().__init__() self.devices.append( TemperatureSensor('temp', 'temperature', ' (Temperature)')) self.devices.append(HumiditySensor('hum', 'humidity', ' (Humidity)')) self.devices.append( TemperatureHumiditySensor('all', 'combined', ' (Temperature + Humidity)')) self.devices.append(CO2Sensor('eco2', 'eco2', ' (CO2)')) self.devices.append(CustomSensor('voc', 'voc', ' (Vok)'))
def __init__(self): super().__init__() self.switch = SelectorSwitch('action', 'action') self.switch.add_level('Off', None) self.switch.add_level('Vibration', 'vibration') self.switch.add_level('Drop', 'drop') self.switch.add_level('Tilt', 'tilt') self.switch.set_selector_style(SelectorSwitch.SELECTOR_TYPE_MENU) self.devices.append(self.switch) self.devices.append(CustomSensor('stgth', 'strength', ' (Strength)')) self.devices.append(JSONSensor('angle', 'angle_raw', ' (Angle)'))
def __init__(self): super().__init__() sensitivity_switch = SelectorSwitch('sens', 'sensitivity', ' (Sensivity)') sensitivity_switch.add_level('Low', 'low') sensitivity_switch.add_level('Medium', 'medium') sensitivity_switch.add_level('High', 'high') self.devices.append(SmokeSensor('smoke', 'smoke')) self.devices.append(OnOffSwitch('test', 'test_state', ' (Test)')) self.devices.append(sensitivity_switch) self.devices.append( CustomSensor('dnsty', 'smoke_density', ' (Smoke Density)'))
def __init__(self, devices): self.devices = [] self.devices.append( CustomSensor(devices, 'signal', 'linkquality', ' (Link Quality)'))
def __init__(self): super().__init__() self.devices.append( TemperatureHumiditySensor('all', 'combined', ' (Temperature + Humidity)')) self.devices.append(CustomSensor('voc', 'voc', ' (Voc)'))
def __init__(self, domoticz_devices): self.devices = [] if domoticz.get_plugin_config('trackLinkQuality'): self.devices.append(CustomSensor(domoticz_devices, 'signal', 'linkquality', ' (Link Quality)'))