Clothes Dryer Automations

Thank you! It would have taken me much longer without your config to start with.

Let me know if you see any other values for the “Wake” parameter. I haven’t had a chance to compare that parameter against the AWS endpoint. I’ll try to check when I do laundry this weekend.

The “Battery” parameter does reflect the value for “vbat” from the endpoint. I’m not sure how that value is scaled. I recently changed my battery and it has been hovering around “130”.

By the way, I recently disassembled the SmartDry sensor to check out the internals and it was caked with lint inside. I would suggest that everyone clean their sensor out at least every 6 months (along with their dryer exhaust). The sensor is only held shut with 4 internal clips around the perimeter of the case. I was able to open it without tools just using pressure with my hands.

Thank you, this works perfectly.

I had come to the same observation of the “wake” value. In all my data I’ve only ever seen 0 and 7. in binary it would be 00000111, so perhaps it’s a bytefield and it’s the self-check status of the temp, humidity and inertial sensors?

Only real way to check would be to make one fail, which… I’d rather not, since they don’t make them any more.

so i have this working with HA through the cloud, but Im not sure what I need to do/buy once they remove cloud service.

Do i need to buy a Esp32 board?

Yes, to leverage the work in this thread, you’ll need an ESP32 platform joined to your network and integrated to HA.

I too would love someone to write this up. I’m happy to document my personal experience migrating from the current platform to an ESPHome-based solution, but I don’t currently have any ESP32 devices in my network, so need the beginners guide to get started.

To get this working without the SmartDry cloud, you will need to buy an esp32 dev board. I bought this one from amazon (

Install the ESPHome addon for Home Assistant, plug your esp32 device into your computer, and open ESPHome on your computer (it should be in your Home Assistant side bar).

Click the “NEW DEVICE” button and set up your device. After it is set up, you will see the device on the ESPHome page. Click the EDIT button under your device name. Here is what my YAML file looks like, you can leave the top portion of your yaml file that was automatically set up when you added the new device, just add the important stuff to the bottom that starts with the “esp32_ble_tracker” line:

  name: smartdry

  board: esp32dev
    type: arduino

# Enable logging

# Enable Home Assistant API

  password: "xxxxxxxxxxxxx"

  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
    ssid: "Smartdry Fallback Hotspot"
    password: "xxxxxxxxxxx"

    - manufacturer_id: "01AE"
        - lambda: |-
            uint32_t temp = (x[0] + (x[1] << 8) + (x[2] << 16) + (x[3] << 24));
            uint32_t hum = (x[4] + (x[5] << 8) + (x[6] << 16) + (x[7] << 24));
            uint16_t shake = x[8] + (x[9] << 8);
            uint8_t batt = x[10];
            uint8_t wake = x[11];
            id(temp_sensor).publish_state((*(float *) &temp));
            id(hum_sensor).publish_state((*(float *) &hum));

  - platform: template
    name: "SmartDry Temperature"
    device_class: 'temperature'
    unit_of_measurement: "°C"
    accuracy_decimals: 4
    id: temp_sensor
  - platform: template
    name: "SmartDry Humidity"
    device_class: 'humidity'
    unit_of_measurement: "%"
    accuracy_decimals: 4
    id: hum_sensor
  - platform: template
    name: "SmartDry Shake"
    id: shake_sensor
  - platform: template
    name: "SmartDry Battery"
    device_class: battery
    id: batt_sensor
  - platform: template
    name: "SmartDry Awake"
    id: wake_sensor
  - platform: template
    name: "SmartDry Raw"
    id: raw_sensor

Save this file, then click the INSTALL button. After it finishes, you should have sensors for humidity, temperature, shake, and awake. You can move this esp32 device close to your dryer now and plug it in.

You can set up a dryness sensor like this (in your Home Assistant configuration.yaml):

- platform: template
      value_template: "{{ states('sensor.smartdry_humidity') | float * -1.03 + 100 }}"
      friendly_name: DryerDryness

Then you can set up an automation to notify you when the desired dryness is reached (83 seems to work well). You can also set up a dryer status sensor like this (in your Home Assistant configuration.yaml):

- platform: template
      value_template: "{{ states('sensor.smartdry_shake')  | float > 10.0  }}"
      friendly_name: Dryer
        minutes: 1
        minutes: 1

Then you can set up an automation to notify you when the dryer is stopped. I hope this helps, and all credit goes to DieKatzchen , jmtorres22 , doublebishop and others for figuring all this stuff out.


Thanks for making it into one easy-howto guide. I will be switching over on the weekend! I am unsure how this forum works but is there a way of ‘pinning’ posts?

Where do you add the dryness and status sensors? I’m a noob integrating with Hubitat.

I have no idea what Hubitat is. Hopefully someone else can help you out.

Home assistant community is specific to Home Assistant integrations… Not Hubitat.

I suggest you create a post there about converting the integration over from Home Assistant to Hubitat. Or switch to Home Assistant!

Just to clarify and not to be missunderstood. I was asking a question about Home Assistant which I am new to. Then I made a comment that I was new and I also am using and familiar with Hubitat.
Question regarding HA was, where do I add the last 2 sensors listed in the how to guide? Do I add them to the ESP32 or HA configuation.yaml? Thanks in advanced for being welcoming and for the help. The time put in to this is much appreciated.

You need to add them to your HA configuration.yaml.

Sorry for the misunderstanding!

The configuration.yaml can be edited via an addon like File Editor

Just adding on to this, the top part of Bryangerlachs config, has stuff which has api encryption key and a ota password. dont change those.

Once you have installed the new config, grab the encryption key out of the config file, then go settings → integrations → smartdry configure (ESPHome) and paste the encryption key in there

@bryangerlach Just got it all working on my end, thanks so much for writing it up in a nice concise post!


I have the ESP32 set up and smartdry sensors working. However I’m not following how to add the extra sensors mentioned, dryness and dryer status. Can someone please explain, show a screenshot or point me in the correct direction where to learn how to add to configuration.yaml? Thanks.

I’m working on adding this device in BLE monitor, a custom component for passive BLE monitoring of sensors. I do not get how you convert the temperature from the data send by the device, can you explain how you do that.

E.g. if the BLE service data is 0fffae019bc8af4108d7c34208016807, temperature data is 0x9bc8af4108 converting that to decimals in little endian ends up with 1102039195. How did you get temperature out of that?

I’m also asking on behalf of the theengs encoder @ 1technophile, who also want to add this to his decoder.

1 Like

@Ernst I am not the one who figured this stuff out, but I believe in your example, the temperature is 9bc8af41, so you have to take those 4 values in decimal and add them together to get 155 + 200 + 175 + 65 = 595, so you have 59.5 degrees Celsius which is 139.1 degrees Fahrenheit. I think that this is correct, but again I am not the one who figured this out, and only used others formulas to write how I got it working for me.

First open Home Assistant, go to Settings, click on Add-ons, then click on ADD-ON STORE. Search for File editor and install this addon. After it installs, there will be a File editor link in your menu. Click on that and it will open the file editor. At the top there will be a folder icon, click that and then select configuration.yaml. Now just copy the above mentioned sensors and paste them at the bottom of the configuration.yaml file. Then save the file and reload home assistant or restart the host computer.

1 Like

I have file editor installed. I keep getting errors or it won’t create a device or sensor. Should I add something before the -platform: template?
error is
end of the stream or a document separator is expected at line 65, column 1:
- platform: template
OK I added sensor: on the line before and it worked. Thanks