byte4geek / SEPLOS_MQTT

Read data From Seplos BMS and send them to the Home Assistant
GNU General Public License v3.0
37 stars 13 forks source link

HA receives connection but is lost instantly #17

Closed rvdgaag closed 9 months ago

rvdgaag commented 9 months ago

Hi I can read the data when using ~/SEPLOS_MQTT/query_seplos_ha.sh 4201

The credentials for the MQTT broker on HA are fine but there is no data coming in, here is the logile from mosquito in HA:

2023-12-07 18:34:25: New connection from 192.168.1.248:38846 on port 1883. 2023-12-07 18:34:25: New client connected from 192.168.1.248:38846 as auto-F834B65A-290B-92DE-F11C-4947C000CF5F (p2, c1, k60, u'energie'). 2023-12-07 18:34:25: Client auto-F834B65A-290B-92DE-F11C-4947C000CF5F disconnected.

During the run on the raspberry this appears:

pi@raspberrypi:~ $ nohup: ignoring input and appending output to 'nohup.out' /home/pi/SEPLOS_MQTT/query_seplos_ha.sh: line 50: printf: 0x0C??: invalid hex number /home/pi/SEPLOS_MQTT/query_seplos_ha.sh: line 50: printf: 0x????: invalid hex number /home/pi/SEPLOS_MQTT/query_seplos_ha.sh: line 50: printf: 0x????: invalid hex number /home/pi/SEPLOS_MQTT/query_seplos_ha.sh: line 50: printf: 0x????: invalid hex number /home/pi/SEPLOS_MQTT/query_seplos_ha.sh: line 55: printf: 0x?]: invalid hex number /home/pi/SEPLOS_MQTT/query_seplos_ha.sh: line 13: printf: 0x?(?: invalid hex number /home/pi/SEPLOS_MQTT/query_seplos_ha.sh: line 13: printf: 0x?70B: invalid hex number (standard_in) 1: syntax error (standard_in) 1: syntax error

Any suggestions ?

rvdgaag commented 9 months ago

Issue can be closed, it's working now.

Thanks for the nice integration