Satel Binding 2.3.0


(Fausto) #1

Dear,
I’m using Satel Binding 2.3.0 and it is ok, but I’d know if satel actions are present as in 1.x binding (https://www.openhab.org/addons/actions/satel/#actions) version because there is not documentation about them.

Thanks
Fausto


(Vincent Regaud) #2

That IS the documentation about them

Install the action on the PaperUI:

And follow the docs


(Fausto) #3

Thanks for the info.
I installed Satel Action, but now I’ve this log (periodically):


(Vincent Regaud) #4

Can’t read that,
Copy and paste the log using How to use code fences


(Fausto) #5
20:35:32.370 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:29.000+0100 to 2018-10-28T20:35:30.000+0100
20:35:35.271 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.1.60:7094
20:35:35.338 [INFO ] [g.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
20:35:35.404 [ERROR] [g.satel.internal.protocol.SatelModule] - Unexpected exception occurred during writing a message
java.net.SocketException: Broken pipe (Write failed)
        at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:?]
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) [?:?]
        at java.net.SocketOutputStream.write(SocketOutputStream.java:134) [?:?]
        at org.openhab.binding.satel.internal.protocol.SatelModule.writeMessage(SatelModule.java:306) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.communicationLoop(SatelModule.java:369) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.access$1(SatelModule.java:341) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule$CommunicationWatchdog$2.run(SatelModule.java:473) [235:org.openhab.binding.satel:1.12.0]
        at java.lang.Thread.run(Thread.java:748) [?:?]
20:35:35.570 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
20:35:35.837 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:30.000+0100 to 2018-10-28T20:35:34.000+0100
20:35:36.225 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.1.60:7094
20:35:36.245 [INFO ] [g.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
20:35:36.264 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
20:35:36.597 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:34.000+0100 to 2018-10-28T20:35:35.000+0100
20:35:36.839 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'chromecast:chromecast:7e808e8f77b98c88810c540e03d8b1ad' changed from OFFLINE (COMMUNICATION_ERROR): No route to host (Host unreachable) to ONLINE
20:35:37.225 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.1.60:7094
20:35:37.251 [INFO ] [g.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
20:35:37.271 [ERROR] [g.satel.internal.protocol.SatelModule] - Unexpected exception occurred during writing a message
java.net.SocketException: Broken pipe (Write failed)
        at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:?]
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) [?:?]
        at java.net.SocketOutputStream.write(SocketOutputStream.java:143) [?:?]
        at org.openhab.binding.satel.internal.protocol.SatelModule.writeMessage(SatelModule.java:311) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.communicationLoop(SatelModule.java:369) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.access$1(SatelModule.java:341) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule$CommunicationWatchdog$2.run(SatelModule.java:473) [235:org.openhab.binding.satel:1.12.0]
        at java.lang.Thread.run(Thread.java:748) [?:?]
20:35:37.443 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
20:35:37.661 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:35.000+0100 to 2018-10-28T20:35:36.000+0100
20:35:38.230 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.1.60:7094
20:35:38.251 [INFO ] [g.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
20:35:38.270 [ERROR] [g.satel.internal.protocol.SatelModule] - Unexpected exception occurred during writing a message
java.net.SocketException: Broken pipe (Write failed)
        at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:?]
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) [?:?]
        at java.net.SocketOutputStream.write(SocketOutputStream.java:134) [?:?]
        at org.openhab.binding.satel.internal.protocol.SatelModule.writeMessage(SatelModule.java:306) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.communicationLoop(SatelModule.java:369) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.access$1(SatelModule.java:341) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule$CommunicationWatchdog$2.run(SatelModule.java:473) [235:org.openhab.binding.satel:1.12.0]
        at java.lang.Thread.run(Thread.java:748) [?:?]
20:35:38.372 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
20:35:38.419 [INFO ] [smarthome.event.ItemStateChangedEvent] - KNX_TEMP_CAMERETTA changed from 21.900000000000002131628207280300557613372802734375 to 21.699999999999999289457264239899814128875732421875
20:35:38.587 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:36.000+0100 to 2018-10-28T20:35:37.000+0100
20:35:39.227 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.1.60:7094
20:35:39.266 [INFO ] [g.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
20:35:39.312 [ERROR] [g.satel.internal.protocol.SatelModule] - Unexpected exception occurred during writing a message
java.net.SocketException: Broken pipe (Write failed)
        at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:?]
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111) [?:?]
        at java.net.SocketOutputStream.write(SocketOutputStream.java:134) [?:?]
        at org.openhab.binding.satel.internal.protocol.SatelModule.writeMessage(SatelModule.java:306) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.communicationLoop(SatelModule.java:369) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule.access$1(SatelModule.java:341) [235:org.openhab.binding.satel:1.12.0]
        at org.openhab.binding.satel.internal.protocol.SatelModule$CommunicationWatchdog$2.run(SatelModule.java:473) [235:org.openhab.binding.satel:1.12.0]
        at java.lang.Thread.run(Thread.java:748) [?:?]
20:35:39.486 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
20:35:39.702 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:37.000+0100 to 2018-10-28T20:35:38.000+0100
20:35:39.920 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'chromecast:chromecast:cc24affc37d77665b26fff2f278b063d' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): No route to host (Host unreachable)
20:35:40.314 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Connecting to ETHM-1 module at 192.168.1.60:7094
20:35:40.335 [INFO ] [g.satel.internal.protocol.Ethm1Module] - ETHM-1 module connected successfully
20:35:40.373 [INFO ] [g.satel.internal.protocol.Ethm1Module] - Closing connection to ETHM-1 module
20:35:40.625 [INFO ] [.core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-action-satel'
20:35:40.646 [INFO ] [smarthome.event.ExtensionEvent       ] - Extension 'action-satel' has been uninstalled.
20:35:40.856 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:38.000+0100 to 2018-10-28T20:35:39.000+0100
20:35:41.271 [INFO ] [ab.core.service.AbstractActiveService] - Satel Refresh Service has been shut down
20:35:41.605 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:39.000+0100 to 2018-10-28T20:35:40.000+0100
20:35:41.797 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'chromecast:chromecast:cc24affc37d77665b26fff2f278b063d' changed from OFFLINE (COMMUNICATION_ERROR): No route to host (Host unreachable) to ONLINE
20:35:42.618 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:40.000+0100 to 2018-10-28T20:35:41.000+0100
20:35:43.120 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'chromecast:chromecast:7e808e8f77b98c88810c540e03d8b1ad' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): No route to host (Host unreachable)
20:35:43.691 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:41.000+0100 to 2018-10-28T20:35:42.000+0100
20:35:43.785 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'yamahareceiver:zone:9ab0c000_f668_11de_9976_00a0defe66b5:Main_Zone' has been updated.
20:35:43.874 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'yamahareceiver:zone:9ab0c000_f668_11de_9976_00a0defe66b5:Zone_2' has been updated.
20:35:44.602 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:42.000+0100 to 2018-10-28T20:35:43.000+0100
20:35:45.590 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:43.000+0100 to 2018-10-28T20:35:44.000+0100
20:35:46.620 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:44.000+0100 to 2018-10-28T20:35:45.000+0100
20:35:46.825 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'chromecast:chromecast:7e808e8f77b98c88810c540e03d8b1ad' changed from OFFLINE (COMMUNICATION_ERROR): No route to host (Host unreachable) to ONLINE
20:35:47.603 [INFO ] [smarthome.event.ItemStateChangedEvent] - SATEL_DATETIME changed from 2018-10-28T20:35:45.000+0100 to 2018-10-28T20:35:46.000+0100

(Vincent Regaud) #6

Did you install an configure the Satel binding 1.x version?
Because that is needed to run the actions: https://www.openhab.org/addons/actions/satel/#prerequisites


(Fausto) #7

I cannot install binding 1.x because I’m using binding 2.3 and if I install 1.x binding I receive the same error.


(Vincent Regaud) #8

Then you won’t be able to use the action.
Or, remove the 2.3 binding and use the 1.x binding with the action


(Fausto) #9

I imagined. I was hoping to have the “Action” available also in version 2.3.
Currently in 2.3 without the “Actions” it is not possible to obtain the logs.

Thank you


(Vincent Regaud) #10

Prego


(druciak) #11

I started working on event log support in the binding some time ago, check out the version from Eclipse Marketplace. Updated documentation is here.


(Fausto) #12

THanks!!!
I don’t understand how I must install update in my raspberry openhab…


(druciak) #13

Regarding installing the new version from the marketplace you can read here.
Alternatively you can download jar file from the link above and put it to addons directory.


(Fausto) #14

I installed Eclipse Marketplace on my openhab and after I activated also the marketpace satel binding, but my question is:
The log thing is auto (as the other satel things) or I must to define it in a things file?

In the first case I have not log thing visibile in my paper UI.

Thanks

Fausto


(druciak) #15

You can configure the binding either in the files or in PaperUI - what is more convenient for you.

If you choose PaperUI you can add the thing manually or make discovery for the binding. It should appear as one of the first discovered things.


(Fausto) #16

In Paper UI (manual mode) I cannot see " event-log" object


(druciak) #17

Then you don’t have the marketplace version installed on your system. Please double check you installed correct version and you don’t have satel binding in addons.cfg.


(Fausto) #18

my situation is:

# Satel ETHM-1 module hostname or IP.
# Leave this commented out for INT-RS module.  
#host=192.168.1.60

# ETHM-1 port to use (optional, defaults to 7094), if host setting is not empty.
# INT-RS port to use, if host setting is empty.
#port=

# timeout value for both ETHM-1 and INT-RS (optional, in milliseconds, defaults to 5000)
#timeout=

# refresh value (optional, in milliseconds, defaults to 10000)
#refresh=

# user code for Integra control (optional, if empty binding works in read-only mode)
#user_code=0001

# encryption key (optional, if empty communication is not encrypted)
#encryption_key=

# encoding for texts returned by the module (optional, defaults to windows-1250)
#encoding=



(druciak) #19

I just realized that you have both Satel bindings installed - one from OH installation and another one from the Marketplace. You must remove the first one and then try to add Event Log thing.


(Fausto) #20

PERFECT!!!
Thanks very much!!!