sclaflin / Plate-Minder

Monitor a video source for license plates and record them. Zero cloud dependencies.
MIT License
154 stars 22 forks source link

Home assistant #30

Closed hjkss closed 1 year ago

hjkss commented 1 year ago

Hi

I followed all the steps and got the plate-minder running, Its shows up in the mqtt explorer. But for some reason its not showing up in home assistant. Any help would be much appreciated.

Deckoz2302 commented 1 year ago

Do you have mqtt integration setup to auto add entities? Screenshot_20230621-101538~2

hjkss commented 1 year ago

image Yes

sclaflin commented 1 year ago

Is your config using the same MQTT discovery prefix as Home Assistant?

hjkss commented 1 year ago

Yes that's correct

sclaflin commented 1 year ago

If you're seeing the plate-minder topics within the homeassistant discovery topic, that's really all that plate-minder is doing. At this point, all I can point to is something wrong within your home assistant configuration.

Do you have other things adding topics to the homeassistant discovery topic? If so, are those showing up?

sclaflin commented 1 year ago

I discovered an issue that recently cropped up with newer versions of home assistant. Please pull the latest plate-minder image (sclaflin/plate-minder:latest) and let me know if it solves your problem.

hjkss commented 1 year ago

Get this error in the logs now: 2023-08-17 12:28:56 npm ERR! path /app 2023-08-17 12:28:56 npm ERR! command failed 2023-08-17 12:28:56 npm ERR! signal SIGTERM 2023-08-17 12:28:56 npm ERR! command sh -c -- node index.js 2023-08-17 12:28:56 2023-08-17 12:28:56 npm ERR! A complete log of this run can be found in: 2023-08-17 12:28:56 npm ERR! /home/app/.npm/_logs/2023-08-17T06_55_52_290Z-debug-0.log 2023-08-17 12:37:29 npm ERR! path /app 2023-08-17 12:37:29 npm ERR! command failed 2023-08-17 12:37:29 npm ERR! signal SIGTERM 2023-08-17 12:37:29 npm ERR! command sh -c -- node index.js 2023-08-17 12:37:29 2023-08-17 12:37:29 npm ERR! A complete log of this run can be found in: 2023-08-17 12:37:29 npm ERR! /home/app/.npm/_logs/2023-08-17T07_00_00_348Z-debug-0.log 2023-08-17 12:30:00 2023-08-17 12:30:00 > plate-minder@0.2.2 start 2023-08-17 12:30:00 > node index.js 2023-08-17 12:30:00 2023-08-17 12:30:03 always restart: false 2023-08-17 12:37:59 2023-08-17 12:37:59 > plate-minder@0.2.2 start 2023-08-17 12:37:59 > node index.js 2023-08-17 12:37:59 2023-08-17 12:38:02 always restart: false

hjkss commented 1 year ago

image Shows online in MQTT explorer

sclaflin commented 1 year ago

The messages in your log aren't sequential, which makes it harder to read. It looks like you had some initialization issues but managed to get plate-minder running after resolving them.

Based on your screenshot, plate-minder is connected and running against your MQTT server. I don't see anything wrong with what you've provided.

Have you had a license plate scanned successfully, yet?

From the README:

Please note that entities will not appear until the first license plate has been detected.

sclaflin commented 1 year ago

Hi @hjkss,

I'm closing this issue since it's been a few weeks since I heard back from you. If you're still having trouble, let me know!