OS is MAC OS Yosemite
I have two Samsung AC internal Unit
Discovery works lmost as expected from docs:
java -cp addons/org.openhab.binding.samsungac-1.7.0.jar org.binding.openhab.samsungac.communicator.SsdpDiscovery
Got the following response from Samsung Air Conditioner: {LOCATION=http://192.168.1.119, SERVICE_NAME=ControlServer-MLib, IP=192.168.1.119, MESSAGE_TYPE=DEVICEDESCRIPTION, FIRMCODE=01538A130723, HOST=255.255.255.255:1900, NTS=ssdp:alive, CACHE_CONTROL=max-age=60, NODE_ADDRESS=BC8CCD77D2BD0000, SPEC_VER=MSpec-1.00, MODELCODE=SAMSUNG_DEVICE, NICKNAME=536D61727420412F432842433843434437374432424429, SERVER=SSDP,SAMSUNG-AC-RAC_2013, MAC_ADDR=BC8CCD77D2BD, ROOT_ADDRESS=BC8CCD77D2BD0000, GROUP_ADDRESS=BC8CCD77D2BDFFFF}
java -cp addons/org.openhab.binding.samsungac-1.7.0.jar org.binding.openhab.samsungac.communicator.SsdpDiscovery
Got the following response from Samsung Air Conditioner: {LOCATION=http://192.168.1.109, SERVICE_NAME=ControlServer-MLib, IP=192.168.1.109, MESSAGE_TYPE=DEVICEDESCRIPTION, FIRMCODE=01538A140403, HOST=255.255.255.255:1900, NTS=ssdp:alive, CACHE_CONTROL=max-age=60, NODE_ADDRESS=BC8CCDB1B7E40000, SPEC_VER=MSpec-2.00, MODELCODE=SAMSUNG_DEVICE, NICKNAME=536D61727420412F432842433843434442314237453429, SERVER=SSDP,SAMSUNG-AC-RAC_2013, MAC_ADDR=BC8CCDB1B7E4, ROOT_ADDRESS=BC8CCDB1B7E40000, GROUP_ADDRESS=BC8CCDB1B7E4FFFF}
but sometimes it shows null.
In the console log, (start_debug.sh, I see sometimes:
20:03:58.792 [DEBUG] [.s.internal.SamsungTvActivator:34 ] - Samsung TV binding has been started.
20:04:00.300 [DEBUG] [.s.internal.SamsungAcActivator:34 ] - Samsung AC binding has been started.
20:04:00.311 [INFO ] [.b.s.internal.SamsungAcBinding:61 ] – active
tail -f openhab.log |grep AirConditioner
show nothing. No mention regarding the TOKEN that should be requested, issued the first time
My openhab.cfg
###### MQTT
mqtt:mybroker.url=tcp://localhost:1883
mqtt:mybroker.clientId=OHAB1
samsungac:Livingroom.host=192.168.1.109
samsungac:Livingroom.mac=BC8CCDB1B7E4
samsungac:Livingroom.host=192.168.1.119
samsungac:Livingroom.mac=BC8CCD77D2BD
Sometimes, after starting openhab runtime I get the following stack in the console.log
./start_debug.sh |grep SamsungAcBinding
20:28:38.235 [INFO ] [.b.s.internal.SamsungAcBinding:61 ] - active
20:28:38.236 [INFO ] [.b.s.internal.SamsungAcBinding:187 ] - No refresh interval configured, using default: 60000 ms
20:28:38.236 [DEBUG] [.b.s.internal.SamsungAcBinding:193 ] - Configuration key is: Livingroom.host
20:28:38.237 [DEBUG] [.b.s.internal.SamsungAcBinding:193 ] - Configuration key is: Livingroom.mac
20:28:38.237 [DEBUG] [.b.s.internal.SamsungAcBinding:193 ] - Configuration key is: service.pid
20:28:38.237 [DEBUG] [.b.s.internal.SamsungAcBinding:239 ] - There is no existing Samsung AC binding configuration => refresh cycle aborted!
no libsigar-universal64-macosx.dylib in java.library.path
org.hyperic.sigar.SigarException: no libsigar-universal64-macosx.dylib in java.library.path
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172)
at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:100)
at org.openhab.binding.systeminfo.internal.SysteminfoBinding.initializeSystemMonitor(SysteminfoBinding.java:409)
at org.openhab.binding.systeminfo.internal.SysteminfoBinding.updated(SysteminfoBinding.java:403)
at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183)
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
samsungac:Livingroom.host=192.168.1.109
samsungac:Livingroom.mac=BC8CCDB1B7E4
samsungac:Bedroom.host=192.168.1.119
samsungac:Bedroom.mac=BC8CCD77D2BD
2015-07-21 00:14:37.505 [INFO ] [.service.AbstractActiveService] - Samsung Air Conditioner service has been started
2015-07-21 00:14:37.506 [INFO ] [.b.s.internal.SamsungAcBinding] - Broken connection found for '<Living>', attempting to reconnect...
2015-07-21 00:14:37.556 [INFO ] [.service.AbstractActiveService] - NTP Refresh Service has been started
2015-07-21 00:14:37.580 [INFO ] [.service.AbstractActiveService] - HTTP Refresh Service has been started
2015-07-21 00:14:37.661 [INFO ] [runtime.busevents ] - Date state updated to 2015-07-21T00:14:37
2015-07-21 00:14:38.016 [DEBUG] [.b.s.internal.SamsungAcBinding] - java.lang.Exception: Cannot connect to 192.168.1.177:2878 : javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
2015-07-21 00:14:38.016 [INFO ] [.b.s.internal.SamsungAcBinding] - Reconnect failed for '<Living>', will retry in 60s
---------------Config---------
# Host and port of the first AC to control
samsungac:<Living>.host=192.168.1.177
samsungac:<Living>.mac=XXXXXXXXXXXX
#samsungac:<Living>.token=
--------Java version -------
java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
Also tried with java 1.6.
Thank you!
Can You please help me bind my ac?
You can see my problem in my post. :(
Thank You!
If it's not the discovery one, I'll try it when I will arrive home.