i hope that somebody from the Modbus experts can help me to establish a connection to my Amtron Wallbox.
I’ve read a lot of the post about to establish a Modbus connection but i don’t know exactely what i have to enter in the different ‘Things’ and ‘Items’.
First I have a document that describes the Modbus Data for my Wallbox (Coils, Input Register, Holding Register)
as you can see the connection ans read out worked as described in the document from Amtron, expect that i only need to enter three digit’s for the address ( 774 instead of 30774)
than i created in Openhab 3.2 a Thing ‘Modbus Slave TCP’ from the Binding
Number Amtron_State “State [%d]” {channel=“modbus:data:afaee27397:d5bf26d9f8:number”}
but i receive only ‘NULL’ in the Item (what i expect like the doc is 0: Idle or 3: Charging
i have changed the ‘Start Address’ in Poller and Data Thing from 769 to 30769 with the right lenght to reach 774 or 30774 but there is no change.
I have no errors in event.log or openhab.log and all Things as you can see are green and online.
I know this worked in your Radzio tool, but it tastes bad. ID above 250 are usually considered “reserved” for stuff like gateway management, so you do not see them used very often.
If you are able to change your device ID (slave ID number) you might do that.
To exactly duplicate your Radzio example, I think you would need to set 768. openHAB binding counts addresses from 0, Radzio counts register numbers from 1.
See your example - ask for 769, get 30768. (3xxxx just means “input” type)
I am a stupid idiot , i haven’t seen that i forgot to remove the ‘localhost’ i frontb of the IP, but when you search all over the other things you got blind for that.
I removed the bullshit in front of the IP and every thing is working fine