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(KwhSensor(devices, 'power', ['power'], ' (Power)'))
def __init__(self, devices): super().__init__(devices) self.devices.append(OnOffSwitch(devices, 'switch', 'state', ' (State)')) self.devices.append(TemperatureSensor(devices, 'temp', 'cpu_temperature', ' (CPU Temperature)')) self.devices.append(TemperatureSensor(devices, 'temp_e', 'external_temperature', ' (External Temperature)')) self.devices.append(VoltageSensor(devices, 'adc', 'adc_volt', ' (ADC Voltage)'))
def __init__(self): super().__init__() if domoticz.get_plugin_config('useBatteryDevices'): self.devices.append( VoltageSensor('cell', 'battery_voltage', ' (Battery Voltage)')) self.devices.append( PercentageSensor('btperc', 'battery', ' (Battery)'))
def __init__(self): super().__init__() self.devices.append( VoltageSensor('cell', 'voltage', ' (Battery Voltage)')) self.devices.append(PercentageSensor('btperc', 'battery', ' (Battery)')) self.devices.append( TemperatureSensor('temp', 'local_temperature', ' (Temperature)')) self.devices.append( SetPoint('spoint', 'occupied_heating_setpoint', ' (SetPoint)'))
def __init__(self, devices): super().__init__(devices) kwh_consumed = KwhSensor(devices, 'cons', ['power', 'energyconsumed'], ' (Consumed)') kwh_consumed.energy_multiplier = 1 kwh_produced = KwhSensor(devices, 'prod', ['power', 'energyproduced'], ' (Produced)') kwh_produced.energy_multiplier = 1 self.devices.append(TemperatureSensor(devices, 'temp', 'temperature', ' (Temperature)')) self.devices.append(VoltageSensor(devices, 'volt', 'voltage', ' (Voltage)')) self.devices.append(CurrentSensor(devices, 'ampere', 'current', ' (Current)')) self.devices.append(kwh_consumed) self.devices.append(kwh_produced)
def __init__(self, devices): super().__init__(devices) self.devices.append(VoltageSensor(devices, 'volt', 'voltage')) self.devices.append(KwhSensor(devices, 'kwh', 'power'))
def __init__(self, devices): super().__init__(devices) self.devices.append( VoltageSensor(devices, 'cell', 'battery_voltage', ' (Battery Voltage)'))
def __init__(self, devices): super().__init__(devices) self.devices.append(KwhSensor(devices, 'kwh', ['power'])) self.devices.append(VoltageSensor(devices, 'volt', 'voltage', ' (Voltage)')) self.devices.append(TemperatureSensor(devices, 'temp', 'temperature', ' (Temperature)'))