Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/69220c71-1b68-800c-9d67-d90d67ec7eb1
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 1. Home Assistant script (4-hour sauna session) ==== <syntaxhighlight lang="yaml">script: sauna_4_hour_session: alias: "Start Sauna (4-hour session)" mode: restart sequence: # --- Start Saunum heater on Profile 1 and run fan at 3 for first hour --- * alias: "Start Saunum heater on Profile 1" # CHANGE THIS to whatever actually starts your Saunum profile 1. # Example if you have a select for profiles: service: select.select_option target: entity_id: select.saunum_profile data: option: "Profile 1" # If you also need to explicitly turn the heater on, add something like: # - service: switch.turn_on # target: # entity_id: switch.sauna_heater * alias: "Set fan speed to 3 for warm-up hour" # CHANGE this entity_id to your AC Infinity fan speed control service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 3 * alias: "Warm-up hour (1 hour delay)" delay: "01:00:00" # --- Hours 2 & 3: music on + dynamic fan control by CO₂ --- * alias: "Start Sauna Vibes playlist on Sonos" # Shuffle ON first service: media_player.shuffle_set target: entity_id: media_player.sauna # CHANGE to your Sonos Amp entity data: shuffle: true * alias: "Set Sonos volume to 25%" service: media_player.volume_set target: entity_id: media_player.sauna data: volume_level: 0.25 # 0.0–1.0 * alias: "Play Sauna Vibes playlist" # CHANGE media_content_id to your actual Spotify playlist URI or name service: media_player.play_media target: entity_id: media_player.sauna data: media_content_id: "spotify:playlist:YOUR_SAUNA_VIBES_PLAYLIST_ID" media_content_type: "playlist" * alias: "Dynamic fan control for 2 hours based on CO₂" repeat: sequence: * alias: "Read CO₂ level" variables: co2: "{{ states('sensor.sauna_co2') | int(0) }}" # CHANGE entity if needed * alias: "Set fan speed based on CO₂" choose: * conditions: "{{ co2 > 900 }}" sequence: * service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 9 * conditions: "{{ co2 > 700 }}" sequence: * service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 7 * conditions: "{{ co2 > 600 }}" sequence: * service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 6 * conditions: "{{ co2 > 500 }}" sequence: * service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 5 * conditions: "{{ co2 > 400 }}" sequence: * service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 4 default: * service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 3 * alias: "Wait 1 minute before checking CO₂ again" delay: "00:01:00" # 2 hours ≈ 120 minutes → 120 loops of 1 minute until: * condition: template value_template: "{{ repeat.index >= 120 }}" # --- Hour 4: cool-down, fan at 3, no music --- * alias: "Stop music for cool-down hour" service: media_player.media_stop target: entity_id: media_player.sauna * alias: "Set fan to 3 for final cool-down hour" service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 3 * alias: "Cool-down hour (final hour)" delay: "01:00:00" # --- End of 4 hours: stop everything --- * alias: "Turn off Saunum heater" # CHANGE to your actual off service (switch, climate, etc.) service: switch.turn_off target: entity_id: switch.sauna_heater * alias: "Turn off fan at end of session" # If fan can be turned off (0), do that; otherwise you can leave at 3. service: number.set_value target: entity_id: number.sauna_fan_speed data: value: 0 </syntaxhighlight> ===== Things you’ll need to customize ===== * select.saunum_profile → your actual Saunum entity (or the service that starts Profile 1). * switch.sauna_heater → your heater on/off entity (if needed). * number.sauna_fan_speed → your AC Infinity fan speed entity (could be number.xxx, select.xxx, or a custom service). * sensor.sauna_co2 → the actual CO₂ sensor entity in Home Assistant. * media_player.sauna → your Sonos Amp entity. * spotify:playlist:YOUR_SAUNA_VIBES_PLAYLIST_ID → real Spotify playlist URI for “Sauna Vibes”. If the fan uses a select instead of number, the service lines become: <syntaxhighlight lang="yaml">service: select.select_option data: option: "3" </syntaxhighlight> instead of number.set_value.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)