コード例 #1
0
 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)'))
コード例 #2
0
 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)'))
コード例 #3
0
    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)'))
コード例 #4
0
    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)'))
コード例 #5
0
    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)
コード例 #6
0
 def __init__(self, devices):
     super().__init__(devices)
     self.devices.append(VoltageSensor(devices, 'volt', 'voltage'))
     self.devices.append(KwhSensor(devices, 'kwh', 'power'))
コード例 #7
0
 def __init__(self, devices):
     super().__init__(devices)
     self.devices.append(
         VoltageSensor(devices, 'cell', 'battery_voltage',
                       ' (Battery Voltage)'))
コード例 #8
0
    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)'))