Satel binding - support, announcements and feature requests

Hi,

I am trying to migrate to openhab2 version of the satel module though I am encountering connection issues I cannot seem to fix.
Java JCE is installed, though I am not using encryption for now. Here is my thing definition:

Bridge satel:ethm-1:home [ host="example.lan", refresh=5000, userCode="xxxxxx" ] {

Here are the errors in debug mode:

 [.satel.internal.protocol.SatelModule] - Send/receive timeout, disconnecting module.
 [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
 [satel.internal.event.EventDispatcher] - Distributing event: org.openhab.binding.satel.internal.event.ConnectionStatusEvent: connected = false, reason = Send/receive timeout
 [.satel.internal.protocol.SatelModule] - Communication thread stopped
 [.satel.internal.protocol.SatelModule] - Communication thread started
 [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at example.lan:7094
 [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
 [.satel.internal.protocol.SatelModule] - Sending message: Message: command = 7C, payload =
 [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh

Satel1 module works fine with the same settings. Version 2 loops with the ebove messages. I tried not only disabling satel1 but uninstalling it, restarting openhab etc, nothing helped.
Reinstalling satel1 works immediately.

Do you have any idea what else I could try?

Thank you

Hi @sim0nx
Do you have other things (besides bridge thing) and items configured in OH?

Hi,

Yes I have a couple of partition, zone and system and event-log configured.
No items assigned yet though.

Try to add at least one item. The binding does not update thing channel if there are no items linked to it.

I tried to add a zone item though the binding loops in

[.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at example.lan:7094
[.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
[.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module

I had exactly the same problem - connection restarting more less every minute. The root cause in my case was quite surprising for me - missing addon. I found following entry in logs (also every minute):

[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-restdocs'

It turns out that the addon loader is restarting all addons every minute trying to load the invalid one… More details:

With such little information it is really hard to guess the reason.
Similar behaviour had other users, have you read this and my answer below?

New version is available at the Marketplace. It contains new rule action for reading the event log.
Check updated docs for syntax and full example.
I created a MR as well, hopefully it will be merged soon.

Enjoy :slight_smile:

This feature has been merged and is present in 2.5.4 release.

Hi, I would like to ask for help with the initial setup. Last month, a new Satel installation was deployed to my parent’s house and I would like to connect it with openHAB. To be able to do that, I forced them to also include the ETHM-1 Plus module. Currently, connection with DLOADX or mobile phone is working. But nevertheless of configuration, I am getting errors with openHAB binding. Could someone help me, what should be configured and where? For reference, I am posting a screenshot of the configuration of ETHM-1 module:

In openHAB, I´ve installed Satel binding and add ETHM-1 thing (bridge). There I´ve configured IP address of the ETHM-1 and that is where I´ve ended with my confidence about configuration.

Firstly, I´ve let the default port (7094) and save. That ended with error and log messages:

2020-04-21 18:51:36.373 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.210.50:7094
2020-04-21 18:51:36.396 [DEBUG] [.satel.internal.protocol.SatelModule] - Connection failed
org.openhab.binding.satel.internal.protocol.SatelModule$ConnectionFailureException: IO error occurred while connecting socket
	at org.openhab.binding.satel.internal.protocol.Ethm1Module.connect(Ethm1Module.java:83) ~[bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.SatelModule.communicationLoop(SatelModule.java:387) [bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.SatelModule.access$1(SatelModule.java:374) [bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.SatelModule$CommunicationWatchdog$2.run(SatelModule.java:523) [bundleFile:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_232]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:1.8.0_232]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0_232]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0_232]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_232]
	at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_232]
	at org.openhab.binding.satel.internal.protocol.Ethm1Module.connect(Ethm1Module.java:72) ~[bundleFile:?]
	... 4 more
2020-04-21 18:51:36.403 [DEBUG] [satel.internal.event.EventDispatcher] - Distributing event: org.openhab.binding.satel.internal.event.ConnectionStatusEvent: connected = false, reason = IO error occurred while connecting socket
2020-04-21 18:51:36.453 [DEBUG] [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh

Then I´ve tried port 7091 and as the Encryption key, I´ve configured the GUARDX key from ETHM-1 configuration. But this is also not working. The bridge in Paper UI is still showing OFFLINE - COMMUNICATION_ERROR. The only repeating message in the log is

2020-04-21 19:58:52.158 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.210.50:7091

Lastly, I´ve tried to configure port 7090 and DLOADX key as Encryption key. Also, no success here, the log is showing

2020-04-21 18:56:12.724 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.210.50:7090
2020-04-21 18:56:12.745 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
2020-04-21 18:56:12.767 [ERROR] [.satel.internal.protocol.SatelModule] - Unexpected exception occurred during reading a message
java.io.IOException: Too few bytes read. Read: 15, expected: 157
	at org.openhab.binding.satel.internal.protocol.Ethm1Module$EncryptedCommunicationChannel.readMessage(Ethm1Module.java:192) ~[bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.Ethm1Module$EncryptedCommunicationChannel.access$0(Ethm1Module.java:180) ~[bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.Ethm1Module$EncryptedCommunicationChannel$1.read(Ethm1Module.java:146) ~[bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.SatelModule.readMessage(SatelModule.java:263) [bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.SatelModule.communicationLoop(SatelModule.java:416) [bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.SatelModule.access$1(SatelModule.java:374) [bundleFile:?]
	at org.openhab.binding.satel.internal.protocol.SatelModule$CommunicationWatchdog$2.run(SatelModule.java:523) [bundleFile:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
2020-04-21 18:56:12.767 [INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module

What I am doing wrong? What is the correct configuration on both sides?

According to the docs:

For ETHM-1 the binding uses integration protocol, so it must be enabled and properly configured

I hope it helps :wink:

I definitely have the integration protocol enabled. I have been using satel1 addon for a long time. When switching to it using debug logging it works immediately:

[DEBUG] [.satel.internal.protocol.SatelModule] - Sending message: Message: command = 7F, payload =
[DEBUG] [.satel.internal.protocol.SatelModule] - Got response: Message: command = 7F, payload = FE FD E7 FB FF
[DEBUG] [satel.internal.event.EventDispatcher] - Distributing event: NewStatesEvent: changed = [01,02,03,04,05,06,07,08,0A,0B,0C,0D,0E,0F,10,11,12,15,16,17,18,19,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27]
[DEBUG] [.satel.internal.protocol.SatelModule] - Sending message: Message: command = 1A, payload =
[DEBUG] [.satel.internal.protocol.SatelModule] - Got response: Message: command = 1A, payload = 20 20 05 02 23 14 14 45 22
[DEBUG] [satel.internal.event.EventDispatcher] - Distributing event: IntegraStatusEvent: type = 2, time = Sat May 02 23:14:14 CEST 2020, service mode = false, troubles = true, troubles memory = true, ACU-100 = false, INT-RX = false, grade 2/3 = false
[DEBUG] [.binding.satel.internal.SatelBinding] - Updating item state: item = alarm_clear_troubles_memory, state = ON, event = IntegraStatusEvent: type = 2, time = Sat May 02 23:14:14 CEST 2020, service mode = false, troubles = true, troubles memory = true, ACU-100 = false, INT-RX = false, grade 2/3 = false

Using the new module with the same config just gives (encryption disabled for both modules satel1 and satel…):

[DEBUG] [.satel.internal.protocol.SatelModule] - Communication thread started
[INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at satala.lan:7094
[INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
[DEBUG] [.satel.internal.protocol.SatelModule] - Sending message: Message: command = 7C, payload =
[DEBUG] [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh
[DEBUG] [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh
[DEBUG] [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh
[DEBUG] [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh
[DEBUG] [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh
[DEBUG] [.internal.handler.SatelBridgeHandler] - Module not initialized yet, skipping refresh
[ERROR] [.satel.internal.protocol.SatelModule] - Send/receive timeout, disconnecting module.
[INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module

-> it continues looping here.

I am using openHAB 2.5.4.

I did check your other posts you mentioned, though that did not help.
I did clear all caches (in /var/lib/openhab2…), any config and jsondb residues, tmp folder.
I also tried removing the addons.cfg file.

Is there anything else I could try or any information I could provide you are missing?

Have you tried this:

Is OH the only client connecting to ETHM-1? The module accepts only one connection, so make sure you don’t have another client (for instance OH 1.x) connected to it.
You could also disconnect ethernet cable for a moment in case your ETHM-1 hung up on an old connection.

?

OH is the only one connecting to it. satel1 is properly removed (double checked in the list of bindings via ssh). I have tried disconnecting the cable and reconnecting it after a couple of minutes.
Unfortunately is still behaves the same (connect successful, disconnect due to send/receive timeout, etc).

That’s really weird, because the core of the binding is almost the same in version 2 as in version 1.
What do you have in the log for OH 1.x version of the binding when it is starting?

I don’t think details about your alarm configuration could help, as version 1 works well. Do you have the same binding configuration in version 2 as in 1? I mean refresh time, encryption, timeouts.

I have similar problem under OH 2.5.4 after upgrade from OH 2.4:

2020-05-06 07:09:14.550 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 10.10.110.95:7094

2020-05-06 07:09:14.561 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully

2020-05-06 07:09:20.555 [ERROR] [.satel.internal.protocol.SatelModule] - Send/receive timeout, disconnecting module.

2020-05-06 07:09:20.657 [INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module

2020-05-06 07:09:21.556 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 10.10.110.95:7094

2020-05-06 07:09:21.568 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully

2020-05-06 07:09:27.565 [ERROR] [.satel.internal.protocol.SatelModule] - Send/receive timeout, disconnecting module.

2020-05-06 07:09:27.666 [INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module

2020-05-06 07:09:28.566 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 10.10.110.95:7094

2020-05-06 07:09:28.576 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully

2020-05-06 07:09:34.568 [ERROR] [.satel.internal.protocol.SatelModule] - Send/receive timeout, disconnecting module.

2020-05-06 07:09:34.669 [INFO ] [.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module

So I decided to downgrade from OH 2.5 to 2.4 and it works

2020-05-06 07:12:48.593 [INFO ] [.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 10.10.110.95:7094

2020-05-06 07:12:48.609 [INFO ] [.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully

2020-05-06 07:12:48.664 [INFO ] [.satel.internal.protocol.SatelModule] - Connection to Integra 32 initialized. Version: 1.16 2016-07-15.

That’s really interesting. Theoretically I should have the same version, but it is built by me not the one from the distribution. Anyway that’s something I need to check.

@sim0nx if you could install 2.5.3 and check the binding is working correctly for you, that would be really helpful.

@greg161 Could you please try 2.5.3? I the mean time I will try to upgrade my OH to 2.5.4…

I tried 2.5.3 and 2.5.4 , unfortunately it does not work for me, log shows the same problem, I installed OH by sudo apt-get install openhab2=2.5.3-1 , when I came back to 2.4.0 it started working again without any problem.