'Initialize node.'

def __init__(self, node, network, new_entity_ids):

    super().__init__()
    from openzwave.network import ZWaveNetwork
    from pydispatch import dispatcher
    self._network = network
    self.node = node
    self.node_id = self.node.node_id
    self._name = node_name(self.node)
    self._product_name = node.product_name
    self._manufacturer_name = node.manufacturer_name
    self.old_entity_id = '{}.{}_{}'.format(DOMAIN, slugify(self._name), self.node_id)
    self.new_entity_id = '{}.{}'.format(DOMAIN, slugify(self._name))
    if (not new_entity_ids):
        self.entity_id = self.old_entity_id
    self._attributes = {}
    self.wakeup_interval = None
    self.location = None
    self.battery_level = None
    dispatcher.connect(self.network_node_changed, ZWaveNetwork.SIGNAL_VALUE_CHANGED)
    dispatcher.connect(self.network_node_changed, ZWaveNetwork.SIGNAL_NODE)
    dispatcher.connect(self.network_node_changed, ZWaveNetwork.SIGNAL_NOTIFICATION)
    dispatcher.connect(self.network_node_event, ZWaveNetwork.SIGNAL_NODE_EVENT)
    dispatcher.connect(self.network_scene_activated, ZWaveNetwork.SIGNAL_SCENE_EVENT)
