Hi.
about cheapest iCSee camera.
some tips.
- do not enable ONVIF. it’s useless
- if you enable ONVIF do not add cam to HASS as ONVIF cam! Otherwise, you will get a cam boot loop
do not use http://192.168.1.49/webcapture.jpg?user=admin&password=admin&command=snap&channel=1 as picture for your glance. After 4-5h, 80’ cam port will die. Only reboot can solve this issue.
some tips how to add cam to hass:
- add cam as Generic Camera
- add title image like http://homeassistant.local:8123/local/cam-outdoors.png (see details below)
- add rstp url as rtsp://192.168.1.49:554/user=admin_password=admin_channel=1_stream=1.sdp?real_stream
where l: admin p: admin - use for automation NODE-RED
NODE-RED:
note: please add ffmpeg package if you use hass os
- enable Alarm server in camera configuration
- set ip addres and port HASS
- add flow
[{"id":"f554d78497bfa9b6","type":"debug","z":"d5c119a54699eca1","name":"debug 51","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":60,"wires":[]},{"id":"e26ef121319774dc","type":"tcp in","z":"d5c119a54699eca1","name":"","server":"server","host":"","port":"15002","datamode":"single","datatype":"buffer","newline":"","topic":"","trim":false,"base64":false,"tls":"","x":140,"y":80,"wires":[["4cf774deb97fe2f9"]]},{"id":"4cf774deb97fe2f9","type":"function","z":"d5c119a54699eca1","name":"dvr-alarm-server","func":"var data = msg.payload.slice(20);\nmsg.payload = JSON.parse(String.fromCharCode(...data));\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":340,"y":60,"wires":[["f554d78497bfa9b6","ea86aaab4ba99a92"]]},{"id":"ea86aaab4ba99a92","type":"switch","z":"d5c119a54699eca1","name":"HumanDetect","property":"payload.Event","propertyType":"msg","rules":[{"t":"eq","v":"HumanDetect","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":520,"y":100,"wires":[["c704a8f66fc0560b"]]},{"id":"d875af1754de2349","type":"debug","z":"d5c119a54699eca1","name":"debug 52","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":860,"y":60,"wires":[]},{"id":"c704a8f66fc0560b","type":"switch","z":"d5c119a54699eca1","name":"Event start","property":"payload.Status","propertyType":"msg","rules":[{"t":"eq","v":"Start","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":710,"y":100,"wires":[["d875af1754de2349","ac3ea8c3d3c165f1"]]}]
so, now you can catch any motion here.
Next step and about title image http://homeassistant.local:8123/local/cam-outdoors.png
as I said before, do not use native snap URL - it’s kill 80 cam port’s
so,
drop exec node and provide run command
ffmpeg -y -i rtsp://192.168.1.49:554/user=admin_password=admin_channel=1_stream=1.sdp?real_stream -vframes 1 -f image2pipe -vcodec png -
next step pass output to file node
add inject node to periodical polling
And finally, you can pass motion to telegram.
Connect switch “Event start” node to telegram bot.
enjoy
WBR, Oleg
UPD: the last iCSee FW fix issues with webcapture