def __init__(self, values, temp_unit): """Initialize the Z-Wave climate device.""" ZWaveDeviceEntity.__init__(self, values, DOMAIN) self._target_temperature = None self._current_temperature = None self._current_operation = None self._operation_list = None self._operation_mapping = None self._operating_state = None self._current_fan_mode = None self._fan_list = None self._fan_state = None self._current_swing_mode = None self._swing_list = None self._unit = temp_unit _LOGGER.debug("temp_unit is %s", self._unit) self._zxt_120 = None # Make sure that we have values for the key before converting to int if (self.node.manufacturer_id.strip() and self.node.product_id.strip()): specific_sensor_key = ( int(self.node.manufacturer_id, 16), int(self.node.product_id, 16)) if specific_sensor_key in DEVICE_MAPPINGS: if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND_ZXT_120: _LOGGER.debug( "Remotec ZXT-120 Zwave Thermostat workaround") self._zxt_120 = 1 self.update_properties()
def __init__(self, value): """Initialize the zwave hvac.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._node = value.node self._target_temperature = None self._current_temperature = None self._current_operation = None self._operation_list = None self._current_operation_state = None self._current_fan_mode = None self._fan_list = None self._current_swing_mode = None self._swing_list = None self._unit = None self._zxt_120 = None self.update_properties() # register listener dispatcher.connect( self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED) # Make sure that we have values for the key before converting to int if (value.node.manufacturer_id.strip() and value.node.product_id.strip()): specific_sensor_key = (int(value.node.manufacturer_id, 16), int(value.node.product_id, 16), value.index) if specific_sensor_key in DEVICE_MAPPINGS: if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND_ZXT_120: _LOGGER.debug("Remotec ZXT-120 Zwave Thermostat as HVAC") self._zxt_120 = 1
def __init__(self, values, temp_unit): """Initialize the Z-Wave climate device.""" ZWaveDeviceEntity.__init__(self, values, DOMAIN) self._target_temperature = None self._current_temperature = None self._current_operation = None self._operation_list = None self._operation_mapping = None self._operating_state = None self._current_fan_mode = None self._fan_list = None self._fan_state = None self._current_swing_mode = None self._swing_list = None self._unit = temp_unit _LOGGER.debug("temp_unit is %s", self._unit) self._zxt_120 = None # Make sure that we have values for the key before converting to int if (self.node.manufacturer_id.strip() and self.node.product_id.strip()): specific_sensor_key = (int(self.node.manufacturer_id, 16), int(self.node.product_id, 16)) if specific_sensor_key in DEVICE_MAPPINGS: if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND_ZXT_120: _LOGGER.debug( "Remotec ZXT-120 Zwave Thermostat workaround") self._zxt_120 = 1 self.update_properties()
def __init__(self, value): """Initialize the zwave climate device.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._node = value.node self._target_temperature = None self._current_temperature = None self._current_operation = None self._operation_list = None self._current_fan_mode = None self._fan_list = None self._current_swing_mode = None self._swing_list = None self._unit = None self._zxt_120 = None self.update_properties() # register listener dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED) # Make sure that we have values for the key before converting to int if (value.node.manufacturer_id.strip() and value.node.product_id.strip()): specific_sensor_key = (int(value.node.manufacturer_id, 16), int(value.node.product_id, 16)) if specific_sensor_key in DEVICE_MAPPINGS: if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND_ZXT_120: _LOGGER.debug("Remotec ZXT-120 Zwave Thermostat" " workaround") self._zxt_120 = 1
def __init__(self, sensor_value): from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, sensor_value, DOMAIN) dispatcher.connect( self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave rollershutter.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._node = value.node dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, sensor_value): from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, sensor_value, DOMAIN) dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave rollershutter.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._node = value.node dispatcher.connect( self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave garage door.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._state = value.data dispatcher.connect( self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave garage door.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._state = value.data dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value, sensor_class): self._sensor_type = sensor_class # pylint: disable=import-error from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value, sensor_class): self._sensor_type = sensor_class # pylint: disable=import-error from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) dispatcher.connect( self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave rollershutter.""" import libopenzwave from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._lozwmgr = libopenzwave.PyManager() self._lozwmgr.create() self._node = value.node self._current_position = None dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, values): """Initialize the zwave rollershutter.""" ZWaveDeviceEntity.__init__(self, values, DOMAIN) # pylint: disable=no-member self._open_id = None self._close_id = None self._current_position = None self._workaround = workaround.get_device_mapping(values.primary) if self._workaround: _LOGGER.debug("Using workaround %s", self._workaround) self.update_properties()
def __init__(self, value): """Initialize the zwave rollershutter.""" import libopenzwave from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._lozwmgr = libopenzwave.PyManager() self._lozwmgr.create() self._node = value.node self._current_position = None dispatcher.connect( self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, hass, values, invert_buttons): """Initialize the Z-Wave rollershutter.""" ZWaveDeviceEntity.__init__(self, values, DOMAIN) self._network = hass.data[zwave.const.DATA_NETWORK] self._open_id = None self._close_id = None self._current_position = None self._invert_buttons = invert_buttons self._workaround = workaround.get_device_mapping(values.primary) if self._workaround: _LOGGER.debug("Using workaround %s", self._workaround) self.update_properties()
def __init__(self, value): from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._brightness, self._state = brightness_state(value) # Used for value change event handling self._refreshing = False self._timer = None dispatcher.connect(self._value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._brightness, self._state = brightness_state(value) # Used for value change event handling self._refreshing = False self._timer = None dispatcher.connect( self._value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave thermostat.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._node = value.node self._target_temperature = None self._current_temperature = None self._current_operation = STATE_IDLE self._current_operation_state = STATE_IDLE self._unit = None self.update_properties() # register listener dispatcher.connect( self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave thermostat.""" from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._node = value.node self._target_temperature = None self._current_temperature = None self._current_operation = STATE_IDLE self._current_operation_state = STATE_IDLE self._unit = None self.update_properties() # register listener dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
def __init__(self, value): """Initialize the zwave rollershutter.""" ZWaveDeviceEntity.__init__(self, value, DOMAIN) # pylint: disable=no-member self._node = value.node self._open_id = None self._close_id = None self._current_position = None self._workaround = None if (value.node.manufacturer_id.strip() and value.node.product_id.strip()): specific_sensor_key = (int(value.node.manufacturer_id, 16), int(value.node.product_type, 16)) if specific_sensor_key in DEVICE_MAPPINGS: if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND: _LOGGER.debug("Controller without positioning feedback") self._workaround = 1
def __init__(self, value): """Initialize the zwave rollershutter.""" import libopenzwave from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._lozwmgr = libopenzwave.PyManager() self._lozwmgr.create() self._node = value.node self._current_position = None self._workaround = None dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED) if value.node.manufacturer_id.strip() and value.node.product_id.strip(): specific_sensor_key = (int(value.node.manufacturer_id, 16), int(value.node.product_type, 16)) if specific_sensor_key in DEVICE_MAPPINGS: if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND: _LOGGER.debug("Controller without positioning feedback") self._workaround = 1
def __init__(self, value): """Initialize the zwave rollershutter.""" import libopenzwave from openzwave.network import ZWaveNetwork from pydispatch import dispatcher ZWaveDeviceEntity.__init__(self, value, DOMAIN) self._lozwmgr = libopenzwave.PyManager() self._lozwmgr.create() self._node = value.node self._current_position = None self._workaround = None dispatcher.connect(self.value_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED) if (value.node.manufacturer_id.strip() and value.node.product_id.strip()): specific_sensor_key = (int(value.node.manufacturer_id, 16), int(value.node.product_type, 16)) if specific_sensor_key in DEVICE_MAPPINGS: if DEVICE_MAPPINGS[specific_sensor_key] == WORKAROUND: _LOGGER.debug("Controller without positioning feedback") self._workaround = 1
def __init__(self, value): """Initialize the zwave garage door.""" ZWaveDeviceEntity.__init__(self, value, DOMAIN)
def __init__(self, values): """Initialize the zwave garage door.""" ZWaveDeviceEntity.__init__(self, values, DOMAIN) self.update_properties()
def __init__(self, values): """Initialize the zwave garage door.""" ZWaveDeviceEntity.__init__(self, values, DOMAIN) self._state = None self.update_properties()