Sure, possible...when this request can be made into domoticz toherwise it would be chaotic in the modbus settings
https://github.com/domoticz/domoticz/issues/4137
Moderator: leecollings
Sure, possible...when this request can be made into domoticz toherwise it would be chaotic in the modbus settings
I have the exact same problem but but don't know which script is meant in the above solution.malp wrote: ↑Tuesday 21 August 2018 23:07 2018-08-21 23:33:38.790 Status: (Modbus-1) Started.
2018-08-21 23:33:38.884 Error: (Modbus) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/modbus-read/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2018-08-21 23:33:38.885 Error: (Modbus-1) Module Import failed, exception: 'ImportError'
2018-08-21 23:33:38.885 Error: (Modbus-1) Module Import failed: ' Name: pymodbus'
2018-08-21 23:33:38.885 Error: (Modbus-1) Error Line details not available.
2018-08-21 23:35:00.924 Error: Modbus-1 hardware (5) thread seems to have ended unexpectedly
pymodbus and pymodbusTCP are installed:
Solution:
I added the following in the script:
sys.path.append('/usr/lib/python2.7/site-packages')
sys.path.append('/usr/local/lib/python2.7/site-packages')
sys.path.append('/usr/local/lib/python3.5/dist-packages')
just specified the path where serial, pymodbus etc are located (in my case)
The name of module you are missing is stated in the error messaage, read it again
Code: Select all
2020-08-29 15:06:07.528 Error: (ModbusREAD) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/modbus-read/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload:/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages'.
2020-08-29 15:06:07.528 Error: (Modbus - SMA) Module Import failed, exception: 'ImportError'
2020-08-29 15:06:07.528 Error: (Modbus - SMA) Module Import failed: ' Name: pymodbus'
2020-08-29 15:06:07.528 Error: (Modbus - SMA) Error Line details not available.
Code: Select all
admin@RackStation:/volume1/@appstore/py3k/usr/local/lib$ dir
total 2708
drwxr-xr-x 3 root root 4096 Jan 29 2018 .
drwxr-xr-x 5 root root 4096 Jan 29 2018 ..
lrwxrwxrwx 1 root root 20 Jan 29 2018 libpython3.5m.so -> libpython3.5m.so.1.0
-r-xr-xr-x 1 root root 2750840 Jan 29 2018 libpython3.5m.so.1.0
-r-xr-xr-x 1 root root 5848 Jan 29 2018 libpython3.so
drwxr-xr-x 36 root root 4096 Aug 1 13:40 python3.5
Hmm the error:
have you used pip3 (not pip) for python 3?
Code: Select all
2020-10-08 16:54:09.306 Error: (Modbus2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/modbus-device/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-10-08 16:54:09.306 Error: (Test) Module Import failed, exception: 'SyntaxError'
2020-10-08 16:54:09.306 Error: (Test) Import detail: File: /home/pi/domoticz/plugins/modbus-device/modbusregister.py, Line: 19, offset: 19
2020-10-08 16:54:09.307 Error: (Test) Error Line ' if devide<>"":
2020-10-08 16:54:09.307 '
2020-10-08 16:55:17.009 Error: Test hardware (11) thread seems to have ended unexpectedly
I am having the same problem can get it to work with my ABB B23 kwh meter.
I have the same issue, also value "1, 2834,454" and in domoticz it won't show anything.Domoberry wrote: ↑Thursday 19 November 2020 8:03 For power I have selected in the hardware settings the Sensor Type "usage" and as a result, a device appears with a correct icon, the value and the axis indication 'Watt'. Perfect!
For energy, I have selected the Sensor Type 'kWh' and the result is not as expected: In the devices list a new device appears, which has as Data two values separated by a comma: 1,495.427.....
201119 EVSE kWh device data.JPG
There is no error in the log.
The 495.427... is the correct number of kWh, I'm not sure what the 1 represents.
However, the corresponding icon in the Utility tab shows no value nor daily total as other kWh icons do.
Code: Select all
2021-01-10 21:54:58.888 Error: (Modread) Modbus error decoding or received no data (RTU/ASCII/RTU over TCP)!, check your settings!
2021-01-10 21:54:58.910 Error: (Modread) Modbus error decoding or received no data!, check your settings!
webrazor wrote: ↑Tuesday 05 January 2021 9:37I have the same issue, also value "1, 2834,454" and in domoticz it won't show anything.Domoberry wrote: ↑Thursday 19 November 2020 8:03 For power I have selected in the hardware settings the Sensor Type "usage" and as a result, a device appears with a correct icon, the value and the axis indication 'Watt'. Perfect!
For energy, I have selected the Sensor Type 'kWh' and the result is not as expected: In the devices list a new device appears, which has as Data two values separated by a comma: 1,495.427.....
201119 EVSE kWh device data.JPG
There is no error in the log.
The 495.427... is the correct number of kWh, I'm not sure what the 1 represents.
However, the corresponding icon in the Utility tab shows no value nor daily total as other kWh icons do.
Also tried the Custom sensor but them you won't have a daily kWh usage.
Users browsing this forum: Bing [Bot] and 1 guest