Hi All,
runtimeInfo:
version: 3.1.0
buildString: Release Build
locale: tr-TR
systemInfo:
configFolder: /etc/openhab
userdataFolder: /var/lib/openhab
logFolder: /var/log/openhab
javaVersion: 11.0.12
javaVendor: Azul Systems, Inc.
javaVendorVersion: Zulu11.50+19-CA
osName: Linux
osVersion: 5.10.60-sunxi
osArchitecture: arm
availableProcessors: 4
freeMemory: 91725960
totalMemory: 194772992
bindings:
- astro
- icalendar
- icloud
- kodi
- remoteopenhab
- serial
- systeminfo
I am working on the system that I described in the first topic I opened and I want to control the Relays according to the commands I receive from the real world.
I get commands like this from the real world.
I am working on the system that I described in the first topic I opened and I want to control the Relays according to the commands I receive from the real world.
I get commands like this from the real world.
DTYPE: it shows the type of device sending data
DID : it shows the ID Number of device sending data
PID : it shows which button information is coming from. (There are 75 buttons in total)
CID : shows ON OFF information.
What I want to do is to change the status of the relevant channel of the INPUT(Thing) module according to the commands coming from the buttons in the real world and to control the relevant Relay of the OUTPUT(Thing) Module that I associate with this channel.
THING INPUT 1
THING INPUT 1 Channels
THING INPUT 1 Channel 1 config
THING INPUT CODE
The command string I got over Serial Bridge; I’m thinking of passing the MAP transform to the Input Module by filtering it with Regex and transferring the ON-OFF information to change the status of the relevant channel with this information.
input_item.map
THING OUTPUT 1 Channel 1 config
THING OUTPUT 1 Channel 1
THING OUTPUT CODE
This is the lamp item I want to control
ITEM ODA 1 LAMP
I haven’t been able to control Input Things channels with the incoming string information yet.
2021-09-15 20:45:32.437 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialBridge:7ba76b895f' changed from UNINITIALIZED to INITIALIZING
2021-09-15 20:45:32.583 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialBridge:7ba76b895f' changed from INITIALIZING to ONLINE
2021-09-15 20:45:32.641 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:2c1b65a1d2' changed from UNINITIALIZED to INITIALIZING
2021-09-15 20:45:32.763 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:2c1b65a1d2' changed from INITIALIZING to ONLINE
2021-09-15 20:45:32.772 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:RGB_1' changed from UNINITIALIZED to INITIALIZING
2021-09-15 20:45:32.792 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:RGB_1' changed from INITIALIZING to ONLINE
2021-09-15 20:45:32.801 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:e9989b85d4' changed from UNINITIALIZED to INITIALIZING
2021-09-15 20:45:32.822 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:e9989b85d4' changed from INITIALIZING to ONLINE
2021-09-15 20:45:32.833 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:BlindModule_1' changed from UNINITIALIZED to INITIALIZING
2021-09-15 20:45:32.848 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'serial:serialDevice:7ba76b895f:BlindModule_1' changed from INITIALIZING to ONLINE
==> /var/log/openhab/openhab.log <==
2021-09-15 20:45:48.490 [INFO ] [af.deployer.kar.KarArtifactInstaller] - Found a .kar file to deploy.
2021-09-15 20:45:48.494 [INFO ] [af.deployer.kar.KarArtifactInstaller] - KAR openhab-addons-3.1.0.kar is already installed. Please uninstall it first.
==> /var/log/openhab/events.log <==
2021-09-15 20:47:09.497 [INFO ] [openhab.event.ChannelTriggeredEvent ] - serial:serialBridge:7ba76b895f:data triggered PRESSED
2021-09-15 20:47:09.553 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CANBUS' changed from DTYPE=11;DID=01;PID=041;CID=01
to DTYPE=11;DID=01;PID=041;CID=00
2021-09-15 20:47:14.473 [INFO ] [openhab.event.ChannelTriggeredEvent ] - serial:serialBridge:7ba76b895f:data triggered PRESSED
2021-09-15 20:47:14.486 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CANBUS' changed from DTYPE=11;DID=01;PID=041;CID=00
to DTYPE=11;DID=01;PID=041;CID=01
2021-09-15 20:47:17.053 [INFO ] [openhab.event.ChannelTriggeredEvent ] - serial:serialBridge:7ba76b895f:data triggered PRESSED
2021-09-15 20:47:17.063 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CANBUS' changed from DTYPE=11;DID=01;PID=041;CID=01
to DTYPE=11;DID=01;PID=041;CID=00
2021-09-15 20:47:19.166 [INFO ] [openhab.event.ChannelTriggeredEvent ] - serial:serialBridge:7ba76b895f:data triggered PRESSED
2021-09-15 20:47:19.173 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CANBUS' changed from DTYPE=11;DID=01;PID=041;CID=00
to DTYPE=11;DID=01;PID=042;CID=01
2021-09-15 20:47:20.668 [INFO ] [openhab.event.ChannelTriggeredEvent ] - serial:serialBridge:7ba76b895f:data triggered PRESSED
2021-09-15 20:47:20.678 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'CANBUS' changed from DTYPE=11;DID=01;PID=042;CID=01
to DTYPE=11;DID=01;PID=041;CID=00
Where am I going wrong, any suggestions?
Thank you