Hi all,
I am a newbie to HASSIO, I am having an issue when setting up USB camera (Logitec C270) for using with Motion add-on.
I follow these topics:
to add the Motion add-on from: GitHub - dcmartin/hassio-addons: Home-Assistant add-ons
But I can’t make it works properly, it stuck here:
Publishing configuration to core-mosquitto topic motion/hostname/start
Unable to connect (Lookup error.).
Do you have some suggestions to help me fix it? Thank you very much.
My current configuration:
SW Version:
|Version|150|
HW Configuration:
serial:
/dev/ttyAMA0
input:
UVC Camera (046d:0825)
disk:
/dev/sda1
/dev/sda
gpio:
gpiochip0
gpiochip100
gpiochip128
audio:
0:
name: bcm2835_alsa - bcm2835 ALSA
type: ALSA
devices:
[object Object]
[object Object]
1:
name: USB-Audio - USB Device 0x46d:0x825
type: U0x46d0x825
devices:
[object Object]
+ Motion configuration:
{
"log_level": "info",
"log_motion": 2,
"devicedb": "motion",
"name": "hostname",
"username": "",
"password": "",
"timezone": "America/Los_Angeles",
"unit_system": "imperial",
"cloudant": {
"url": "",
"username": "",
"password": ""
},
"watson": {
"url": "",
"apikey": "",
"classifier": "",
"date": "",
"version": ""
},
"digits": {
"url": "",
"jobid": ""
},
"mqtt": {
"host": "core-mosquitto",
"port": 1990
},
"cameras": [
{
"name": "sample",
"device": "devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0",
"type": "ps3eye",
"palette": 15,
"fov": 75,
"width": 640,
"height": 480,
"fps": 5
}
]
}
Another configuration are left default. I only update the device path, as found from kernel log:
[ 2.692439] input: UVC Camera (046d:0825) as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[ 2.694919] usbcore: registered new interface driver uvcvideo
Motion log:
By: David C Martin <[email protected]>
-----------------------------------------------------------
aarch64 / HassOS 2.10 / HA 0.90.0 / SU 150 / stable
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing...
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Thu Mar 21 21:33:23 CET 2019 /usr/bin/run.sh
Setting name hostname [MOTION_DEVICE_NAME]
Setting www hostname.local
Setting devicedb motion [MOTION_DEVICE_DB]
Setting TIMEZONE America/Los_Angeles
Using MQTT at core-mosquitto
Using MQTT port: 1990
Watson Visual Recognition not specified
DIGITS not specified
+++ MOTION
Set daemon to on
Set log_type to all
Set auto_brightness to off
Set locate_motion_mode to off
Set locate_motion_style to box
Set output_pictures to on
Set picture_type to jpeg
Set threshold_tune to off
Set netcam_keepalive to on
Set motion log_level to 2
Set pre_capture to 0
Set post_capture to 0
Set event_gap to 10
Set minimum_motion_frames to 1
Set quality to 75
Set width to 640
Set height to 480
Set framerate to 5
Set minimum_frame_time to 0
Set brightness to 0
Set contrast to 0
Set saturation to 0
Set hue to 0
Set rotate to 0
Set webcontrol_port to 8080
Set stream_port to 8090
Set stream_quality to 50
Set threshold to 1500
Set lightswitch to 0
WARNING: no username and password; stream and webcontrol limited to localhost only
Set target_dir to /var/www/localhost/htdocs/cameras
*** Found 1 cameras
CAMERA #: 0 CONF: /etc/motion/motion.conf NUM: 0
+++ CAMERA 0
Set name to sample
Set target_dir to /var/www/localhost/htdocs/cameras/sample
Set fov to 75
Set fps to 5
Set type to ps3eye
Set stream_port to 8090
Set device to devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
Set palette to 15
Set netcam_keepalive to on
Set netcam_userpass to null
Set stream_quality to 50
Set threshold to 1500
Set width to 640
Set height to 480
Set rotate to 0
Set models to
Set unit_system to imperial
Set latitude to 0.0
Set longitude to 0.0
Set elevation to 0
Set interval to 0
Set minimum_animate to 2
Set post_pictures to center
Set share_dir to /share/motion
Publishing configuration to core-mosquitto topic motion/hostname/start
Unable to connect (Lookup error.).
[cmd] /usr/bin/run.sh exited 15
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.