CPU usage is extremely low. Usually under 2%. Mind you, I have other add-ons running; motioneye, nodered, mqtt broker.
I just got the configuration and automations updated with the 0.8 beta and integration. I had to remove previous mqtt sensors and use the new ones. My automation used to be triggered on the old person sensor. I made a new binary sensor template.
binary_sensor:
- platform: template
sensors:
porch_person:
friendly_name: Porch Person Detected
device_class: motion
value_template: "{{states('sensor.porch_person')|float > 1}}"
Here’s my simple config (redacted)
detectors:
coral:
type: edgetpu
device: 'usb:0'
mqtt:
host: XXXX
port: XXXX
user: XXXX
password: 'XXXX'
topic_prefix: frigate
client_id: frigate
ffmpeg: {}
cameras:
porch:
ffmpeg:
inputs:
- path: 'XXXX'
roles:
- detect
- rtmp
width: 1600
height: 1200
fps: 30
snapshots:
show_timestamp: false
draw_zones: true
draw_bounding_boxes: false
objects:
track:
- person
objects:
track:
- person
filters:
person:
min_area: 15000
min_score: 0.75
I haven’t bothered with hardware acceleration, because I don’t really need to. Inference speeds are actually closer to 14ms
And just for shits and gigs here is my main node red automation:
[{"id":"1b97dcff.d01643","type":"server-state-changed","z":"38eef358.45bfcc","name":"Porch Motion Sensor","server":"fe3c14cb.872068","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.porch_person","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":161,"y":1097,"wires":[["cc583aab.658c78"]]},{"id":"cc583aab.658c78","type":"rbe","z":"38eef358.45bfcc","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":351,"y":1097,"wires":[["3a690fdc.129ba"]]},{"id":"3a690fdc.129ba","type":"switch","z":"38eef358.45bfcc","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":491,"y":1097,"wires":[["f2428608.f54e48"],[]]},{"id":"f2428608.f54e48","type":"api-current-state","z":"38eef358.45bfcc","name":"Toggle","server":"fe3c14cb.872068","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.porch_motion_notif","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":631,"y":1097,"wires":[["751e3e6e.46cbc","4d6f46ff.d53688"],[]]},{"id":"751e3e6e.46cbc","type":"trigger","z":"38eef358.45bfcc","name":"","op1":"","op2":"0","op1type":"pay","op2type":"str","duration":"0","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":801,"y":1097,"wires":[["94a72128.9fd4e"]]},{"id":"4d6f46ff.d53688","type":"api-current-state","z":"38eef358.45bfcc","name":"Toggle","server":"fe3c14cb.872068","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.test_switch_1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":770,"y":1160,"wires":[["accb08c4.c1e268"],[]]},{"id":"94a72128.9fd4e","type":"delay","z":"38eef358.45bfcc","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":981,"y":1097,"wires":[["c7763fa4.125e9"]]},{"id":"710d802f.fe44a","type":"change","z":"38eef358.45bfcc","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1740,"y":1020,"wires":[["751e3e6e.46cbc","13a42415.9006ec"]]},{"id":"accb08c4.c1e268","type":"delay","z":"38eef358.45bfcc","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":920,"y":1160,"wires":[["244eaf70.d42d2"]]},{"id":"c7763fa4.125e9","type":"http request","z":"38eef358.45bfcc","name":"HTTP REQ","method":"GET","ret":"bin","paytoqs":"ignore","url":"http://192.168.1.182:5000/porch/person/best.jpg?h=300&crop=1","tls":"","persist":false,"proxy":"","authType":"","x":1151,"y":1097,"wires":[["c7cb20e1.182bb"]]},{"id":"13a42415.9006ec","type":"trigger","z":"38eef358.45bfcc","name":"","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"30","extend":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1731,"y":1097,"wires":[["710d802f.fe44a"]]},{"id":"244eaf70.d42d2","type":"http request","z":"38eef358.45bfcc","name":"HTTP REQ","method":"GET","ret":"bin","paytoqs":"ignore","url":"http://192.168.1.182:5000/porch/person/best.jpg?h=300&crop=1","tls":"","persist":false,"proxy":"","authType":"","x":1090,"y":1160,"wires":[["2959a544.8f339a"]]},{"id":"c7cb20e1.182bb","type":"file","z":"38eef358.45bfcc","name":"SAVE","filename":"/config/www/porch_best_crop.jpg","appendNewline":false,"createDir":false,"overwriteFile":"true","encoding":"none","x":1311,"y":1097,"wires":[["162a09bc.ed9e76"]]},{"id":"162a09bc.ed9e76","type":"api-call-service","z":"38eef358.45bfcc","name":"Notify PS: Porch Motion","server":"fe3c14cb.872068","version":1,"debugenabled":false,"service_domain":"notify","service":"sarah_and_patrick","entityId":"","data":"{\"message\":\"Porch motion detected!\",\"data\":{\"entity_id\":\"camera.porch_camera\",\"push\":{\"sound\":\"health_notification.caf\",\"category\":\"camera\",\"thread-id\":\"porch\"},\"attachment\":{\"content-type\":\"jpeg\",\"url\":\"https://ha.patricklfs.com/local/porch_best_crop.jpg\"},\"data\":{\"url\":\"/lovelace/porchcam\"},\"apns_headers\":{\"apns-collapse-id\":\"backyard-motion-detected\"}}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1511,"y":1097,"wires":[["13a42415.9006ec"]]},{"id":"2959a544.8f339a","type":"file","z":"38eef358.45bfcc","name":"SAVE","filename":"/config/www/porch_best_crop.jpg","appendNewline":false,"createDir":false,"overwriteFile":"true","encoding":"none","x":1250,"y":1160,"wires":[["d1eb88e1.59a1d8"]]},{"id":"d1eb88e1.59a1d8","type":"api-call-service","z":"38eef358.45bfcc","name":"Front Lights On","server":"fe3c14cb.872068","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"group.front_lights_group","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1420,"y":1160,"wires":[["e48ccb58.b3f858","28623c70.450b74"]]},{"id":"e48ccb58.b3f858","type":"trigger","z":"38eef358.45bfcc","name":"","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"10","extend":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1610,"y":1160,"wires":[["72f80df7.3d1d94"]]},{"id":"28623c70.450b74","type":"api-call-service","z":"38eef358.45bfcc","name":"Notify PS: Porch Motion","server":"fe3c14cb.872068","version":1,"debugenabled":false,"service_domain":"notify","service":"sarah_and_patrick","entityId":"","data":"{\"message\":\"Person detected. Front lights turned on!\",\"data\":{\"entity_id\":\"camera.porch_camera\",\"push\":{\"sound\":\"health_notification.caf\",\"category\":\"camera\",\"thread-id\":\"porch\"},\"attachment\":{\"content-type\":\"jpeg\",\"url\":\"https://ha.patricklfs.com/local/porch_best_crop.jpg\"},\"data\":{\"url\":\"/lovelace/porchcam\"},\"apns_headers\":{\"apns-collapse-id\":\"backyard-motion-detected\"}}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1650,"y":1220,"wires":[[]]},{"id":"72f80df7.3d1d94","type":"api-call-service","z":"38eef358.45bfcc","name":"Front Lights Off","server":"fe3c14cb.872068","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"group.front_lights_group","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1800,"y":1160,"wires":[["6d2c88b1.2a7678"]]},{"id":"6d2c88b1.2a7678","type":"change","z":"38eef358.45bfcc","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":2000,"y":1160,"wires":[["e48ccb58.b3f858"]]},{"id":"fe3c14cb.872068","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]