You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using this command line : python3 sofar2mqtt-v2.py --broker 192.168.10.231 --config-file sofar-hyd-ep.json --device /dev/ttyUSB0 --retry 5 --daemon
i get the following result :
2024-03-12 15:31:51,718 - INFO - MQTT connecting to broker 192.168.10.231 port 1883 without auth
2024-03-12 15:31:51,728 - INFO - MQTT Connection Accepted.
2024-03-12 15:31:51,731 - INFO - Subscribing to homeassistant/status
2024-03-12 15:31:51,736 - INFO - Subscribing to sofar/rw/energy_storage_mode
2024-03-12 15:31:51,737 - INFO - Subscribing to sofar/rw/time_of_use_charge_soc
2024-03-12 15:31:51,738 - INFO - Subscribing to sofar/rw/desired_power
Traceback (most recent call last):
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 580, in
main()
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 576, in main
sofar.main()
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 364, in main
self.read()
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 268, in read
self.read_and_publish()
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 216, in read_and_publish
value = self.read_value(
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 441, in read_value
value = self.instrument.read_long(
TypeError: read_long() got an unexpected keyword argument 'number_of_registers'
as a matter of fact, there is nothing created in mqtt.
could you guide me on a solution ?
Claude
The text was updated successfully, but these errors were encountered:
I have been unable to reproduce this issue. If you can provide me with the output from pip3 list that shows you minimalmodbus>=2.1.1 then I will gladly re-open.
hi,
using this command line : python3 sofar2mqtt-v2.py --broker 192.168.10.231 --config-file sofar-hyd-ep.json --device /dev/ttyUSB0 --retry 5 --daemon
i get the following result :
2024-03-12 15:31:51,718 - INFO - MQTT connecting to broker 192.168.10.231 port 1883 without auth
2024-03-12 15:31:51,728 - INFO - MQTT Connection Accepted.
2024-03-12 15:31:51,731 - INFO - Subscribing to homeassistant/status
2024-03-12 15:31:51,736 - INFO - Subscribing to sofar/rw/energy_storage_mode
2024-03-12 15:31:51,737 - INFO - Subscribing to sofar/rw/time_of_use_charge_soc
2024-03-12 15:31:51,738 - INFO - Subscribing to sofar/rw/desired_power
Traceback (most recent call last):
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 580, in
main()
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 576, in main
sofar.main()
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 364, in main
self.read()
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 268, in read
self.read_and_publish()
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 216, in read_and_publish
value = self.read_value(
File "/home/pi/sofar2mqtt-python/sofar2mqtt-v2.py", line 441, in read_value
value = self.instrument.read_long(
TypeError: read_long() got an unexpected keyword argument 'number_of_registers'
as a matter of fact, there is nothing created in mqtt.
could you guide me on a solution ?
Claude
The text was updated successfully, but these errors were encountered: