The detector should be plugged into HA using a USB lead which provides both power and serial comms to the device. The captured data is published to a MQTT broker.
Installation is by putting the gitgub files to your addon’s directory.
Hi there. Thanks for the effort. I’m trying to use your addon with a GQ GMC-300S but it does not seem to work.
The GMC is conncted to /dev/ttyUSB. Credentials of MQTT are correct. The addon starts with no problem.
Versions:
Home Assistant 2023.2.5
Supervisor 2023.01.1
Operating System 9.5
Frontend-versie: 20230202.0 - latest
23-02-27 17:26:51 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on local/amd64-addon-gmc3xx_monitor with version 1.0.0
The addon itself gives me following output:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun gmc320 (no readiness notification)
s6-rc: info: service legacy-services successfully started
[17:26:51] INFO: Starting gmc3xx
[17:26:55] INFO: Device serial number: 0000000
[17:26:55] INFO: Start sending data
The serial number “0000000” does not seem correct to me. The sensor chapter in the MQTT is defined and does not give me errors. Only “CPM” and “Serial” are defined. All values are “0”.
The device itself is set at a fixed baudrate of 115200 when connected to the HA instance (Intel NUC). The device works when connected to a PC but at a baud rate of 57600 but I think thats the limitation of the GQ software.
Do you have an idea why the add on is not receiving data from the device?
I picked up a GMC-300 and I know I can successfully read from the unit by using a python script, but I’m having issues with this addon.
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun gmc320 (no readiness notification)
s6-supervise gmc320: warning: unable to spawn ./run (waiting 60 seconds): Permission denied
s6-supervise gmc320: warning: unable to spawn ./run (waiting 60 seconds): Permission denied
I’m using /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 as the port. I’ve also tried /dev/ttyUSB0
Originally I had the unit set to 57600 (defaults) and then changed it to 115200, but again no joy. I found another post saying it needed to be 19200, so it’s now set to that, but it’s also not working.