Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The service starts and stops #63

Open
saeedesmaili78 opened this issue Jun 18, 2023 · 3 comments
Open

The service starts and stops #63

saeedesmaili78 opened this issue Jun 18, 2023 · 3 comments

Comments

@saeedesmaili78
Copy link

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
Copy link

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

@saeedesmaili78
Copy link
Author

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
Copy link

DariusNeciunas commented Jul 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants