Photo by kevin Baquerizo / Unsplash

Turn Your Shower Time into a High-Tech Experience!

Home Assistant Nov 18, 2023

Ready to make your daily shower something straight out of a sci-fi movie? With Home Assistant, your bathroom can become the smartest room in the house! Let me walk you through two awesome setups I've been playing with – a script to prep your bathroom for shower time, and an automation that adds some pizzazz while you're sudsing up.

Prep Your Bathroom with the "Duschen Vorbereiten" Script

Check out this clever script called "Duschen Vorbereiten" (that's German for "Prepare Shower"). It's like having a personal bathroom butler!

The Code:

alias: Duschen Vorbereiten
  - service: notify.alexa_media
      message: "Ich bereite das Badezimmer fΓΌr dich vor..."
        method: all
        type: announce
        - media_player.echo_badezimmer
        - media_player.echo_flur
        - media_player.echo_schlafzimmer
  - service: climate.set_temperature
      hvac_mode: heat
      temperature: 22
      entity_id: climate.heizung_badezimmer
  - service: input_boolean.turn_on
        - input_boolean.duschen_vorbereiten
        - input_boolean.duschen_besetzt
mode: single
icon: fas:shower

What It Does:

  1. Alexa Announcement: Sets Alexa to tell you that your shower is being prepped.
  2. Warm Things Up: Heats up your bathroom to a cozy 22Β°C.
  3. Set the Scene: Activates switches to show your shower is being prepared and the bathroom is occupied.

Keep the Vibe Going with the "Duschen" Automation

Now, for the real fun part. The "Duschen" automation makes your shower time more than just about getting clean.

The Code:

alias: Duschen
  - platform: state
    entity_id: binary_sensor.aqara_water_badezimmer_water_leak
    from: "off"
    to: "on"
  - platform: state
    entity_id: binary_sensor.mmwave_badezimmer
    from: "on"
    to: "off"
  - condition: state
    entity_id: input_boolean.duschen_besetzt
    state: "on"
  - choose:
      - conditions:
          - condition: trigger
            id: waterBadezimmerOn
          - delay: 10
          - service: media_player.volume_set
            target: media_player.echo_badezimmer
              volume_level: 0.4
          - service: media_player.play_media
            target: media_player.echo_badezimmer
              media_content_id: shuffle 37i9dQZF1DWSqmBTGDYngZ
              media_content_type: SPOTIFY
      - conditions:
          - condition: trigger
            id: mmwaveDuschenAus
          - service: media_player.media_stop
            target: media_player.echo_badezimmer
          - service: climate.set_hvac_mode
            target: climate.heizung_badezimmer
              hvac_mode: "off"
          - service: input_boolean.turn_off
            target: input_boolean.duschen_besetzt
mode: single

What Happens:

  1. Shower Tunes: Starts playing your favorite Spotify playlist when the shower starts.
  2. Smart Shutdown: Stops the music, turns off the heating, and resets the bathroom status when you're done.

Bringing It All Together

Merging these two setups makes your shower routine something to look forward to. You've got a personal assistant to prep your bathroom, some mood music while you're in there, and everything resets automatically when you're done.

Final Thoughts

So, there you go! A bit of coding and smart home integration, and your daily shower turns into a high-tech pampering session. Whether you're a tech whiz or just love adding fun twists to your home, these Home Assistant scripts and automations are just the beginning. Time to make those showers legendary! πŸšΏπŸ’‘πŸŽ΅

Don't forget, you can always tweak these to fit your vibe. Dive in, get creative, and make your smart home experience uniquely yours. Happy high-tech showering! πŸŒˆπŸ›βœ¨

As always you will find the the code for this automation in my GitHub Repository!