Author Topic: Samsung Smart Home Plugin  (Read 4246 times)

Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #30 on: November 30, 2017, 12:33:24 pm »
i have been looking at the lua code file for the plugin as well as looking at the debug log output..

one thing i find curious is at time index 9:55:11.074 specifically the httpSRequest data = is blank. this is for auth. and it's empty but it states it's a valid token on the next line

and at time index 9:55:11.586 again the httpSRequest data = is blank. and this is for retrieving the devices.

I am going to try and reset the devices on the samsung account to see if maybe there is an issue there. Last time i had to mess with this part of it. it took me 2 days to get them to pair properly.


Offline mios.toddbt

  • Connected Objects
  • Master Member
  • *****
  • Posts: I am a geek!!
  • Karma: +0/-0
  • NaN
Re: Samsung Smart Home Plugin
« Reply #31 on: November 30, 2017, 12:34:07 pm »
This line should've returned something from Samsung.

(Samsung Appliances)::(getAppliances): response = [{"Devices":[]}] <0x2ba18680>


I got a sample from my output

50      11/30/17 19:27:25.653   luup_log:12: (Samsung Appliances)::(getAppliances): response = [{"Devices":[{"id":"**************","name":"Room A/C","multiple":false,"connected":true,"type":"Air_Conditioner","deviceSubType":"Room_Air_Conditioner","resources":["Operation","Temperatures","Mode","Wind"],"Operation":{"power":"Off"},"Temperatures":[{"id":"0","unit":"Celsius","current":21,"desired":24}],"Mode":{"modes":["Cool"],"options":["Comode_Off"]},"Wind":{"speedLevel":1}}]}] <0x76237520>


I believe you said the devices are added on the Samsung Cloud ?

They do require you to add them through their own App ( Smart Home ).

Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #32 on: November 30, 2017, 12:49:45 pm »
they are well were. i just removed them and I am re adding them. I know this process of adding them to the cloud takes a long while. The message they give "This may take a while depending on your configuration. Sit back, and relax" actually means. put your phone down and come back in an hour and it might be done..

Offline mios.toddbt

  • Connected Objects
  • Master Member
  • *****
  • Posts: I am a geek!!
  • Karma: +0/-0
  • NaN
Re: Samsung Smart Home Plugin
« Reply #33 on: November 30, 2017, 12:58:03 pm »
I sat 30 minutes looking at my phone not knowing why it could not find an AP for my air conditioner. turns out i had 4G active on my phone ... who knew.

Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #34 on: November 30, 2017, 01:00:37 pm »
I do have a question tho... How come you guys don't send out a UDP SSDP packet to discover the devices?? they do respond to to this query.

Code: [Select]
M-SEARCH * HTTP/1.1
MX: 10
ST: upnp:rootdevice
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"


Washing Machine
Code: [Select]
Received 11/30/2017 at 10:53:03 AM

NOTIFY * HTTP/1.1
NT: urn:SmartHomeAlliance-org:device:Washer:1
NTS: ssdp:alive
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age = 1800
USN: uuid:6002b418-3cd0-0000-0000-000000000000::urn:SmartHomeAlliance-org:device:Washer:1
SERVER: Linux/2.6 SHP/1.0 Washer/1.0
LOCATION: https://192.168.1.16:8888/capability

Dryer
Code: [Select]
Received 11/30/2017 at 10:52:59 AM

NOTIFY * HTTP/1.1
NT: urn:SmartHomeAlliance-org:device:Dryer:1
NTS: ssdp:alive
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age = 1800
USN: uuid:6002b404-f37b-0000-0000-000000000000::urn:SmartHomeAlliance-org:device:Dryer:1
SERVER: Linux/2.6 SHP/1.0 Dryer/1.0
LOCATION: https://192.168.1.15:8888/capability




The other thing is. That if you attempt to make a connection locally you get a bad token error. Now... I am wondering if the token that is retrieved from samsung would allow direct communication with the machines... Kinda skirt the middle man and a whole lot of issues in between. Because it has been 15 minutes now and it is still adding the first machine.. which is crazy.

Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #35 on: November 30, 2017, 01:02:11 pm »
HOORAY!!!! The dryer just finished being added

Offline mios.toddbt

  • Connected Objects
  • Master Member
  • *****
  • Posts: I am a geek!!
  • Karma: +0/-0
  • NaN
Re: Samsung Smart Home Plugin
« Reply #36 on: November 30, 2017, 01:03:24 pm »
I do have a question tho... How come you guys don't send out a UDP SSDP packet to discover the devices?? they do respond to to this query.

Code: [Select]
M-SEARCH * HTTP/1.1
MX: 10
ST: upnp:rootdevice
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"


Washing Machine
Code: [Select]
Received 11/30/2017 at 10:53:03 AM

NOTIFY * HTTP/1.1
NT: urn:SmartHomeAlliance-org:device:Washer:1
NTS: ssdp:alive
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age = 1800
USN: uuid:6002b418-3cd0-0000-0000-000000000000::urn:SmartHomeAlliance-org:device:Washer:1
SERVER: Linux/2.6 SHP/1.0 Washer/1.0
LOCATION: https://192.168.1.16:8888/capability

Dryer
Code: [Select]
Received 11/30/2017 at 10:52:59 AM

NOTIFY * HTTP/1.1
NT: urn:SmartHomeAlliance-org:device:Dryer:1
NTS: ssdp:alive
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age = 1800
USN: uuid:6002b404-f37b-0000-0000-000000000000::urn:SmartHomeAlliance-org:device:Dryer:1
SERVER: Linux/2.6 SHP/1.0 Dryer/1.0
LOCATION: https://192.168.1.15:8888/capability




The other thing is. That if you attempt to make a connection locally you get a bad token error. Now... I am wondering if the token that is retrieved from samsung would allow direct communication with the machines... Kinda skirt the middle man and a whole lot of issues in between. Because it has been 15 minutes now and it is still adding the first machine.. which is crazy.


Short answer : Samsung requirements :)

Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #37 on: November 30, 2017, 01:05:59 pm »
Scratch that.. It just found it. It just added it. and now it says it's disconnected. WTF!!!! This is why I have decided to no longer purchase any samsung product. their API sucks! and since they locked out the controls on the TV's (i know there is a half working solution) I am done with them.

Offline mios.toddbt

  • Connected Objects
  • Master Member
  • *****
  • Posts: I am a geek!!
  • Karma: +0/-0
  • NaN
Re: Samsung Smart Home Plugin
« Reply #38 on: November 30, 2017, 01:09:59 pm »
See if at least it appears on Vera.

My AC is disconnected as well in their app, but i can control it on my unit.


Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #39 on: November 30, 2017, 01:10:13 pm »
well... You can still use the UPNP discovery to detect the devices. and if the device is not on their account you can at the very least provide a popup stating either the Samsung device(s) they have are not supported or give directions on how to add them.. I am not sure if there is a common denominator in the uuid that could identify a specific model series... might be worth looking into and this could be used to place the icons in the add devices menu on the UI if in fact there are devices that are supported.


Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #40 on: November 30, 2017, 01:11:59 pm »
Nope there is no device listed. I will check the logs again.


Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #41 on: November 30, 2017, 01:12:58 pm »
logs still state there are no devices found.


Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #42 on: November 30, 2017, 01:26:33 pm »
I want to make sure that these things are compatible

https://www.samsung.com/us/support/owners/product/electric-dryers-with-steam-dv457evgs
https://www.samsung.com/us/support/owners/product/front-load-washer-with-touchscreen-control-wf457args

it specifically states these model numbers right on the add devices page.

Samsung Samsung Touch Screen LCD Front-Load Washer
WF457ARGSGR/A2
Samsung Samsung Touch Screen LCD Dryer
DV457EVGSGR/A1 & AA

But i want to make sure



Offline mios.toddbt

  • Connected Objects
  • Master Member
  • *****
  • Posts: I am a geek!!
  • Karma: +0/-0
  • NaN
Re: Samsung Smart Home Plugin
« Reply #43 on: November 30, 2017, 01:36:51 pm »
Have you followed instructions here ?

http://downloadcenter.samsung.com/content/UM/201405/20140507113428770/GRACE-S_Manual_DC68-02836J-06.pdf

On Page 46 on the bottom ?

Maybe there's some helpful info there. I remember this is a model from the beginning implementations of Samsung Smart Home, so they may have required some additional settings as opposed to what's in the newer ones, more plug'n'play.

Offline kdschlosser

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +2/-5
Re: Samsung Smart Home Plugin
« Reply #44 on: November 30, 2017, 02:25:18 pm »
I would if they would A work and B the software they mention existed.


if i use the "Easy Connection" setup when i get to the point of selecting an AP it does not list any. and it also does not allow me to type in an SSID.

Also they refer to a "Plug-in app (Dryer)" and "Plug-in app (W/M) " neither of which exist.