rxseger / homebridge-camera-motion

Motion detector camera plugin for Homebridge
MIT License
48 stars 9 forks source link

No notifications received #9

Open ca13ra1 opened 6 years ago

ca13ra1 commented 6 years ago

I've setup the plugin for home bridge but without any success of Motion triggering an notification for HomeKit also using Raspberry Pi Camera v2 :

    "platforms": [
        {
                "platform": "CameraMotion",
                "name": "Camera",
        "name_motion": "Motion Sensor",
        "motion_pipe": "/tmp/motion-pipe",
        "motion_timeout": 2000,
        "snapshot_path": "/tmp/lastsnap.jpg"
        }
    ]

My motion.conf:

videodevice /dev/video0
stream_port 8081
stream_localhost off
despeckle EedDl
smart_mask_speed 0
webcontrol_localhost off
webcontrol_port 8082
rotate 180
height 480
width 640
output_pictures off
on_picture_save printf '%f\t%n\t%v\t%i\t%J\t%K\t%L\t%N\t%D\n' > /tmp/motion-pipe
target_dir /tmp

Manually triggering snapshot works just fine and receives notification on my iPhone: http://raspberrypi.local:8082/0/action/snapshot

Motion Output:
event_newfile: File of type 2 saved to: /tmp/01-20170929202737-snapshot.jpg

Homebridge Output:
got from pipe: |/tmp/01-20170929202737-snapshot.jpg 2   01  0   14  0
|
filename is /tmp/01-20170929202737-snapshot.jpg

Output after motion detection nothing happens and no notifications are sent and no motion is triggered in homebridge:

event_new_video Source FPS 30
motion_detected: Motion detected - starting event 1

Not sure what else to try. I've tried on Jessie and Stretch. Both lite images. Using node version v8.6.0 and have proper permissions on the tmp folder with the motion-pipe created with mkfifo /tmp/motion-pipe. Any help would be much appreciated.

ayman commented 6 years ago

Homekit had me manually turn on the notification settings on the motion sensor device. Click Details on the sensor and there is a control page for Status and Notifications. It defaults to off; I was able to set it to send notifications only if nobody is home.

Minims commented 6 years ago

@ayman has been merge. @ca13ra1 do you still have the problem with stretch ?

npm install -g rxseger/homebridge-camera-motion#master to install last version.