Open Anzic23 opened 6 years ago
Homebridge modules exist: homebridge-samsung-airconditioner as example.
Please check if the new ioBroker.ham Adapter can help here: see https://forum.iobroker.net/viewtopic.php?f=36&t=14972
This package does not work with ham.
What error you get? or is it because you use homebridge 1.x? Downgrade to 0.4.5
[Climatizzatore] Power function failed /bin/sh: 1: jq: not found
fix it with sudo apt-get install jq
homebridge 0.4.5
homebridge is running in local mode?
Now log seys:
2020-05-13 22:41:38.678 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Operation.power'
2020-05-13 22:41:38.685 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Mode.modes[0]'
2020-05-13 22:41:38.711 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Temperatures[0].desired'
2020-05-13 22:41:38.718 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] Mettere modalita
2020-05-13 22:41:38.719 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Mode.modes[0]'
2020-05-13 22:41:38.731 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Temperatures[0].current'
2020-05-13 22:41:38.749 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] azz
2020-05-13 22:41:38.750 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] Power function OK
2020-05-13 22:41:38.750 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore]
2020-05-13 22:41:38.750 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore]
2020-05-13 22:41:38.751 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] NON LO SO
2020-05-13 22:41:38.777 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] Power function OK
2020-05-13 22:41:38.777 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore]
2020-05-13 22:41:38.778 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore]
2020-05-13 22:41:38.797 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] azz
2020-05-13 22:41:38.798 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] TEMPERTURA DESIDERTA
2020-05-13 22:41:38.798 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore]
2020-05-13 22:41:38.799 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] NaN
2020-05-13 22:41:38.805 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] Power function OK
2020-05-13 22:41:38.805 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore]
2020-05-13 22:41:38.806 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:41:38 PM] [Climatizzatore] Temperatura corrente: NaN
2020-05-13 22:43:12.432 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Operation.power'
2020-05-13 22:43:12.440 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Mode.modes[0]'
2020-05-13 22:43:12.450 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Temperatures[0].desired'
2020-05-13 22:43:12.466 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] Mettere modalita
2020-05-13 22:43:12.467 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Mode.modes[0]'
2020-05-13 22:43:12.482 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] curl -s -k -H "Content-Type: application/json" -H "Authorization: Bearer 6df5f9a0-82a8-4680-9110-f10f7fbf050f" --cert /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X GET https://192.168.1.14:8888/devices|jq '.Devices[0].Temperatures[0].current'
2020-05-13 22:43:12.498 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] azz
2020-05-13 22:43:12.498 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] Power function OK
2020-05-13 22:43:12.499 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore]
2020-05-13 22:43:12.499 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore]
2020-05-13 22:43:12.500 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] NON LO SO
2020-05-13 22:43:12.507 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] TEMPERTURA DESIDERTA
2020-05-13 22:43:12.508 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore]
2020-05-13 22:43:12.509 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] NaN
2020-05-13 22:43:12.534 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] Power function OK
2020-05-13 22:43:12.535 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore]
2020-05-13 22:43:12.535 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] Temperatura corrente: NaN
2020-05-13 22:43:12.546 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] Power function OK
2020-05-13 22:43:12.547 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore]
2020-05-13 22:43:12.547 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore]
2020-05-13 22:43:12.548 - [34mdebug[39m: ham.0 (10542) [5/13/2020, 10:43:12 PM] [Climatizzatore] azz
what we found: http://clockwerx.blogspot.com/2013/01/hacking-samsung-smart-air-conditioners.html http://clockwerx.blogspot.com.au/2014/01/samsung-air-conditioners-direct.html https://bitbucket.org/CloCkWeRX/samsung-remote perl script - https://gist.github.com/freman/e7568c625545629b6466 first, you need to add the following NPM packages to the JS driver: events, util, tls, carrier, node-samsung-airconditioner then write a script that polls the air conditioner for token: