def __init__(self, devices):
        super().__init__(devices)

        mode_switch = SelectorSwitch(devices, 'mode', 'system_mode', ' (Mode)')
        mode_switch.add_level('Off', 'off')
        mode_switch.add_level('Auto', 'auto')
        mode_switch.add_level('Cool', 'cool')
        mode_switch.add_level('Heat', 'heat')
        mode_switch.add_level('Emergency Heating', 'emergency heating')
        mode_switch.add_level('Precooling', 'precooling')
        mode_switch.add_level('Fan only', 'fan only')
        mode_switch.add_level('Dry', 'dry')
        mode_switch.add_level('Sleep', 'sleep')
        mode_switch.set_selector_style(SelectorSwitch.SELECTOR_TYPE_MENU)
        mode_switch.set_icon(15)

        self.devices.append(
            TemperatureSensor(devices, 'temp', 'local_temperature',
                              ' (Temperature)'))
        self.devices.append(
            SetPoint(devices, 'sp1', 'occupied_heating_setpoint',
                     ' (Occupied Setpoint)'))
        self.devices.append(
            SetPoint(devices, 'sp2', 'unoccupied_heating_setpoint',
                     ' (Unoccupied Setpoint)'))
        self.devices.append(mode_switch)
    def __init__(self, devices):
        super().__init__(devices)

        mode_switch = SelectorSwitch(devices, 'mode', 'system_mode', ' (Mode)')
        mode_switch.add_level('Off', 'off')
        mode_switch.add_level('Auto', 'auto')
        mode_switch.add_level('Manual', 'manual')
        mode_switch.add_level('Comfort', 'comfort')
        mode_switch.add_level('Eco', 'eco')
        mode_switch.add_level('Boost', 'boost')
        mode_switch.add_level('Complex', 'complex')
        mode_switch.set_selector_style(SelectorSwitch.SELECTOR_TYPE_MENU)
        mode_switch.set_icon(15)

        preset = SelectorSwitch(devices, 'preset', 'preset', ' (Preset)')
        preset.add_level('Away', 'away')
        preset.add_level('Schedule', 'schedule')
        preset.add_level('Manual', 'manual')
        preset.add_level('Comfort', 'comfort')
        preset.add_level('Eco', 'eco')
        preset.add_level('Boost', 'boost')
        preset.add_level('Complex', 'complex')
        preset.set_selector_style(SelectorSwitch.SELECTOR_TYPE_MENU)
        preset.set_icon(15)

        week_format = SelectorSwitch(devices, 'week', 'week', ' (Week Format)')
        week_format.add_level('5+2', '5+2')
        week_format.add_level('6+1', '6+1')
        week_format.add_level('7', '7')

        self.devices.append(mode_switch)
        self.devices.append(preset)
        self.devices.append(week_format)
        self.devices.append(
            SetPoint(devices, 'spoint', 'current_heating_setpoint',
                     ' (Setpoint)'))
        self.devices.append(
            SetPoint(devices, 'sp_eco', 'eco_temperature', ' (Eco Setpoint)'))
        self.devices.append(
            SetPoint(devices, 'sp_cmf', 'comfort_temperature',
                     ' (Comfort Setpoint)'))
        self.devices.append(
            TemperatureSensor(devices, 'temp', 'local_temperature',
                              ' (Temperature)'))
        self.devices.append(
            LevelSwitch(devices, 'level', 'position', ' (Valve position)'))
        self.devices.append(
            OnOffSwitch(devices, 'wnd', 'window_detection',
                        ' (Window Detection)'))
        self.devices.append(
            OnOffSwitch(devices, 'child', 'child_lock', ' (Child Lock)'))
 def __init__(self, devices):
     super().__init__(devices)
     self.devices.append(
         TemperatureSensor(devices, 'temp', 'local_temperature',
                           ' (Temperature)'))
     self.devices.append(
         SetPoint(devices, 'spoint', 'current_heating_setpoint',
                  ' (Setpoint)'))
Beispiel #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)'))
Beispiel #5
0
    def __init__(self, devices):
        super().__init__(devices)

        temperature_sensor = TemperatureSensor(devices, 'temp', 'local_temperature',' (Temperature)')
        self.devices.append(temperature_sensor)

        setpoint = SetPoint(devices, 'sp1', 'occupied_heating_setpoint',' (Occupied Setpoint)')
        self.devices.append(setpoint)

        mode_switch = SelectorSwitch(devices, 'mode', 'system_mode', ' (Mode)')
        mode_switch.add_level('Off', 'idle')
        mode_switch.add_level('Heat', 'heat')
        mode_switch.set_selector_style(SelectorSwitch.SELECTOR_TYPE_MENU)
        mode_switch.set_icon(15)
        self.devices.append(mode_switch)
    def __init__(self):
        super().__init__()

        mode_switch = SelectorSwitch('mode', 'system_mode', ' (Mode)')
        mode_switch.add_level('Off', 'off')
        mode_switch.add_level('Auto', 'auto')
        mode_switch.add_level('Heat', 'heat')
        mode_switch.set_selector_style(SelectorSwitch.SELECTOR_TYPE_BUTTONS)
        mode_switch.set_icon(15)

        self.devices.append(
            TemperatureSensor('temp', 'local_temperature', ' (Temperature)'))
        self.devices.append(
            SetPoint('spoint', 'current_heating_setpoint', ' (Setpoint)'))
        self.devices.append(mode_switch)