MatterVN / ModbusTCP2MQTT

Sungrow & SMA Solar Inverter addon for Home Assistant using mobusTCP
MIT License
67 stars 50 forks source link

The service starts and stops #63

Open saeedesmaili78 opened 1 year ago

saeedesmaili78 commented 1 year ago

Hello,

The ModbusTCP2MQTT starts and stops.

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 s6-rc: info: service legacy-services successfully started [00:06:25] INFO: Configured'core-mosquitto' mqtt broker. [00:06:25] INFO: Generated config file. 2023-06-19 00:06:26 INFO Starting SunGather 0.3.8 2023-06-19 00:06:26 INFO Loaded config: config.sg 2023-06-19 00:06:28 INFO Loaded registers: //registers-sungrow.yaml 2023-06-19 00:06:28 INFO Registers file version: 0.2.0 Traceback (most recent call last): File "/sungather.py", line 596, in main() File "/sungather.py", line 506, in main logger.handlers[0].setLevel(config_inverter['log_console']) File "/usr/lib/python3.11/logging/init.py", line 940, in setLevel self.level = _checkLevel(level) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/logging/init.py", line 207, in _checkLevel raise ValueError("Unknown level: %r" % level) ValueError: Unknown level: 'TRUE' s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

DariusNeciunas commented 1 year ago

Hi, same problem. In config can't save correct value. But on start have same error. image

saeedesmaili78 commented 1 year ago

Hi, Are you running the home assistant on a single-board computer like Raspberry pi or Asus Tinker board? I faced this issue on a tinker board. On a PC it works without issue.

DariusNeciunas commented 1 year ago

Hi, HA running on raspberrPI. i think that config validation is not valid. log_level and warn_for_low_spase values are swaped. I can't save correct config.