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

Error on writing INT to register #26

Open
T1NBK opened this issue May 31, 2020 · 0 comments
Open

Error on writing INT to register #26

T1NBK opened this issue May 31, 2020 · 0 comments

Comments

@T1NBK
Copy link

T1NBK commented May 31, 2020

I get an error while trying to send an integer value from a selector type switch to a register.
It look to me it wants to write a str to the register?

Error:
2020-05-31 21:13:33.964 Error: (EASY WTW stand (write)) 'onCommand' failed 'TypeError':'can only concatenate str (not "int") to str'.
2020-05-31 21:13:33.964 Error: (EASY WTW stand (write)) ----> Line 306 in '/home/pi/domoticz/plugins/modbus-write/plugin.py', function onCommand
2020-05-31 21:13:33.964 Error: (EASY WTW stand (write)) ----> Line 222 in '/home/pi/domoticz/plugins/modbus-write/plugin.py', function onCommand

Hardware:
Type:
Modbus RTU / ASCII / TCP/IP - WRITE v2020.2D

Set-up and Configuration:
Communication Mode:
TCP/IP (+DEBUG)
RTU - Serial Port:
/dev/serial0
RTU - Port settings:
StopBits 1 / ByteSize 8 / Parity: None
RTU - Baudrate:
9600
TCP/IP - IP:Port:
192.168.8.201:502
Device ID:
1
Modbus Function:
Write Single Holding Register (Function 6)
Register number:
2032
Payload ON:
Payload OFF:

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

1 participant