'Set up for access to the Netatmo camera events.'

def __init__(self, data, camera_name, module_name, home, timeout, offset, camera_type, sensor):

    self._data = data
    self._camera_name = camera_name
    self._module_name = module_name
    self._home = home
    self._timeout = timeout
    self._offset = offset
    if home:
        self._name = '{}    /    {}'.format(home, camera_name)
    else:
        self._name = camera_name
    if module_name:
        self._name += ('    /    ' + module_name)
    self._sensor_name = sensor
    self._name += ('    ' + sensor)
    camera_id = data.camera_data.cameraByName(camera=camera_name, home=home)['id']
    self._unique_id = 'Netatmo_binary_sensor    {0}    -    {1}'.format(self._name, camera_id)
    self._cameratype = camera_type
    self._state = None
