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.