Can I add a certificate with the Rest-integration?

I bought a Samsung washing machine that can communicate with Samsung SmartThings via wifi. Since I want to try to communicate locally with devices as much as possible, I have been looking for a way to do this with my “smart” washing machine.

I can’t find an integration that allows me to talk to my washing machine locally, so I looked for a local API on te web, and I found one! I am absolutely not familiar with APIs, but with a lot of reading online and trial en error, I managed to get this status information from the washing machine:

{
   "Devices" : [
      {
         "name" : "Washer",
         "resources" : [
            "Alarms",
            "Configuration",
            "Diagnosis",
            "EnergyConsumption",
            "Information",
            "Mode",
            "Operation",
            "Washer"
         ],
         "EnergyConsumption" : {
            "saveLocation" : "/files/usage.db"
         },
         "InformationLink" : {
            "href" : "/devices/0/information"
         },
         "Washer" : {
            "supportedRinseCycles" : [
               "0",
               "1",
               "2",
               "3",
               "4",
               "5"
            ],
            "supportedWaterTemperature" : [
               "None",
               "Cold",
               "20",
               "30",
               "40",
               "60",
               "95"
            ],
            "waterTemperature" : "40",
            "rinseCycles" : "3",
            "supportedSpinLevel" : [
               "RinseHold",
               "NoSpin",
               "400",
               "800",
               "1200",
               "1400"
            ],
            "spinLevel" : "1400"
         },
         "type" : "Washer",
         "id" : "0",
         "Mode" : {
            "options" : [
               "EnergyKW_396",
               "TimeSync_NotSupported",
               "NoCheck_SC",
               "Course_5B",
               "DeviceType_0167",
               "QuickWash_Off",
               "UsagesDB_ok",
               "LaundryOutTime_0",
               "AddWashSet_0",
               "AddWashAvailable_7",
               "AddWashIndicator_Off",
               "QuickWashSet_5B847E933FA53F"
            ],
            "supportedOptions" : [
               "35B847E933FA53F5C841E923FA53F5D8102923FA43F66841E930FA30F5E831E920FA2075F867E943FA53F60831E930FA43F61841E943FA43F6385209204A204648000913FA53F6B80009000A53E65841E920FA30F67843E923FA43F688430923FA53F"
            ]
         },
         "uuid" : "********-****-0000-0000-000000000000", # UUID is hidden, don't know of this is importend?
         "Alarms" : [],
         "Diagnosis" : {
            "diagnosisStart" : "Ready"
         },
         "connected" : true,
         "description" : "TP6X_WW6500(C097277E0429)",
         "Operation" : {
            "kidsLock" : "Ready",
            "progressPercentage" : 1,
            "progress" : "None",
            "supportedProgress" : [
               "None",
               "Weightsensing",
               "Wash",
               "Rinse",
               "Spin",
               "Finish"
            ],
            "remainingTime" : "03:20:00",
            "state" : "Ready",
            "power" : "On"
         },
         "ConfigurationLink" : {
            "href" : "/devices/0/configuration"
         }
      }
   ]
}

BUT this is on my computer in a python environment or with curl commands, now I would like to try to use the rest integration of Home Assistant.

to communicate you need a self-signed certificate.

MY QUESTION: Does anyone know if I can add a certificate with the Rest-integration?

If some-one is interested that can can build a real integration for this please contact me, i try to give you as much information about what i so far figured out. it looks that this local api is working also for connected dryers, dishwashers en air-conditioners.

My washing machine just packed up and looking for a new one. I had Samsung in mind and looking for one with WiFi. Are you happy with yours? Can you confirm the model?
If I end up get one I’ll defo look at creating an integration if not too difficult.
Back to your question, you’ll need to get a list of commands that can be sent. If it’s via curl, that’s ok, we just need to know what the command is…

Hi Lolouk44,

I can definitely recommend the washing machine, we have had it for 2 years now and it always works, is quiet and the WiFi function is a nice extra feature. mainly because you get a notification when the machine is ready, and you could also set or start the machine remotely. But I won’t be doing this anytime soon. But with Home Assistant and an automation you could, for example, start your washing machine when your solar panels generate a lot. The model is: Samsung Addwash 8kg WW80K6405SW

It would be great if you could build an integration for this, I have familiarized myself with python and would like to be able to do it myself, but unfortunately I do not have enough knowledge to make a well-functioning integration.

the information I gathered comes mainly from this github form and the hardest step was getting a bear token from the machine, because for this you need to set up a simple server script that listens to port 8889 while making a token request on port 8888.

more info can be found here: Same principle, HA climate integration
or here: Github conversation about AC in Openhab

I’m going to try to figure out what commands I can send to the machine.

How did you get the washing machine token? In the air conditioning you have to press a button.