Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Raspberry pi 3 Home Assistant Camera as Motion Sensor Mqtt
Description
Raspberry pi 3 Home-assistant Camera as Motion Sensor
Usb Camera as a Motion sensor on Raspberry pi 3 Hassbian
Using "motion" the images and Videos from the Usb webcam are recorded and streamed on the (same)Rpi3 running Hassbian
but i have edited the motion.conf file to run commands when motion is detected and when the motion event ends so that it publishes Mqtt messages to the Mosquitto broker and in the Homeassistant configuration.yaml file i have made an mqtt sensor that shows motion detected TRUE or FALSE .
It works and using Automations it can be used to send mqtt messages to some other mqtt switches connected to the Hassbian to turn lights on or off or do something else ill post the results soon
in motion.conf file edited the following lines
# Command to be executed when an event starts. (default: none)
on_event_start mosquitto_pub -u newuser -P 12345 -t /house/system/motion -m "TRUE"
# Command to be executed when an event ends after a period of no motion
on_event_end mosquitto_pub -u newuser -P 12345 -t /house/system/motion -m "FALSE"
# Command to be executed when a motion frame is detected
on_motion_detected mosquitto_pub -u newuser -P 12345 -t /house/system/motion -m "TRUE"
in Configuration.YAML file
sensor 1:
- platform: mqtt
name: "Motion Detect"
state_topic: "/house/system/motion"
payload_on: "TRUE"
payload_off: "FALSE"
qos: 0
Usb Camera as a Motion sensor on Raspberry pi 3 Hassbian
Using "motion" the images and Videos from the Usb webcam are recorded and streamed on the (same)Rpi3 running Hassbian
but i have edited the motion.conf file to run commands when motion is detected and when the motion event ends so that it publishes Mqtt messages to the Mosquitto broker and in the Homeassistant configuration.yaml file i have made an mqtt sensor that shows motion detected TRUE or FALSE .
It works and using Automations it can be used to send mqtt messages to some other mqtt switches connected to the Hassbian to turn lights on or off or do something else ill post the results soon
in motion.conf file edited the following lines
# Command to be executed when an event starts. (default: none)
on_event_start mosquitto_pub -u newuser -P 12345 -t /house/system/motion -m "TRUE"
# Command to be executed when an event ends after a period of no motion
on_event_end mosquitto_pub -u newuser -P 12345 -t /house/system/motion -m "FALSE"
# Command to be executed when a motion frame is detected
on_motion_detected mosquitto_pub -u newuser -P 12345 -t /house/system/motion -m "TRUE"
in Configuration.YAML file
sensor 1:
- platform: mqtt
name: "Motion Detect"
state_topic: "/house/system/motion"
payload_on: "TRUE"
payload_off: "FALSE"
qos: 0
Keywords & Tags
More from User
03:58
Raspberry Pi 5 Volt UPS BackUp using 2 Diode Switch
Crazy Guy
04:22
TEC Peltier with Heatsinks and Fans
Crazy Guy
00:23
Control Servo,motor,Leds from WiFi-Internet Esp8266-RoboRemo
Crazy Guy
03:35
Raspberry pi 3 Home Assistant Camera as Motion Sensor Mqtt
Crazy Guy
00:36
Arduino Light Timer Switch Control using Relay,Nano,Rtc ds3231 real time clock with Sketch-Code 2017
Crazy Guy
01:42
Diy 5V UPS - Backup Supply
Crazy Guy
Related Videos
03:45
Highland St. Paving Repairs Port Elgin Ont raspberry pi camera motion pi-timolo
Nelson Trent
04:57
Raspberry Pi + Motion Sensor + Pushbullet Notification on PC,Phone,Tablet
Cuducuyow
08:00
Home Automation Demo with Home Assistant, Raspberry Pi, LIFX, and More
Pajipoc
02:05
Arduino robot car testing Ultra Sonic Sensors. Arduino,Raspberry Pi,Camera,Lithium battery,WIFI
Derickstormy 5001
03:01
The Best From Makerfaire 2014! Raspberry Pi GIF Cameras, Leap Motion Smoke Projector Screens, 3D Printed Shoes, and More - Tekzilla Bites
Tekzilla
02:08
Here is a cheap one based on raspberry pi - https://electronicsfreelancer.com/portfolio/home-made-360-camera-for-30 Just a test prototype, but works , take snapshot every N seconds then change angle by 20-80 degree depending on settings as programmed bu
Sony.R