I’m new to openhab but not to HA or software. I’m moving from a 15-yr-old Misterhouse installation, and starting to get the hang of it, but I’m stuck on this one!!
I’m trying to get openhab2 to connect to my weeder WTDIO modules , ideally over an Ethernet to RS232 interface. I can control them manually with serial messages (and via the legacy Misterhouse system), but I’m new to openhab and not sure how to parse the ASCII messages to make them appear as items.
I’ve read about using .map files for TCP/IP which looks useful if it was just a single device, but the device has 14 independent I/O lines and I can’t understand how to map multiple devices onto the single TCP/IP item.
I will have one Weeder device with device name set to ‘A’, accessible at 192.168.123.234 port 1111 (for example), with up to fourteen I/O lines available. I need to send commands like:
AHB (set device A output B high)
AHL (set device A output B low)
for the output devices and
ASC (set pin ‘C’ as a switch input)
and then parse messages like
ACL (input C has gone low)
ACH (input C has gone high)
ARC (read input C)
How can I add all these items?