On windows 10, i’m Trying out the new OpenHAB 2.4 alongside the OpenHAB2.1 I have already got installed. Everything else apart from the issue below is working fine.
Sending messages to the serial COM port worked fine in 2.1 but exactly the same items and rules doesn’t work in 2.4. In the event logs, the item registers receiving a message, but doesn’t actually send it through to the serial port:
In an items file:
String Arduino “Arduino [%s]” (arduino) {serial=“COM3”}
Switch SwitchFireplace “Fireplace” [ “Switchable” ]
In a rules file:
rule “SwitchFireplaceOn”
when
Item SwitchFireplace received command ON
then
sendCommand (Arduino , “1;1;6730310\n”)
end
Has the handling of serial messages changed from 2.1 to 2.4?
It did a search on this forum but nothing related to 2.4 came up.
Can COM port be accessed by 2 applications at the same time or only by one?
Could it be that your openHAB 2.1 accesses the COM3 and blocks the communication for openHAB 2.4?
Thanks for the suggestion.
I close down 2.1 before starting 2.4, so they are not running at the same time.
However, one thing I haven’t done is restart the pc. I’ll try that and report back.