title: Automations
path: automations
icon: "mdi:robot"
panel: true
cards:
  - type: custom:mod-card
    style:
      layout-card:
        $:
          horizontal-layout:
            $:
              .: |
                #columns {
                  margin: 0 20px;
                  grid-gap: 20px;
                }
    card:
      type: custom:layout-card
      layout_type: custom:horizontal-layout
      layout:
        max_cols: 3
      cards:
        - type: entities
          title: Misc
          show_header_toggle: false
          entities:
            - type: custom:template-entity-row
              name: Reload Automations
              icon: mdi:reload
              tap_action:
                action: call-service
                service: automation.reload
            - entity: sensor.automations_count
              icon: mdi:pound
            - automation.titanium_turn_off_when_idle
            - automation.titanium_notify_on_vibration_sensor_move
            - automation.slack_meeting_starts
            - automation.slack_meeting_ends
            - automation.hallway_tablet_set_to_home_after_10_minutes
            - automation.hallway_tablet_leaving_goodbye_after_door_opened

        - type: entities
          title: Presence
          show_header_toggle: false
          entities:
            - input_boolean.routine_welcome_home
            - automation.presence_georgi_arrival_detection
            - automation.presence_player_2_arrival_detection
            - automation.presence_coming_home
            - automation.presence_leaving_home
            - automation.routine_coming_home_left_work
            - automation.presence_leaving_work

        - type: entities
          title: Switches
          show_header_toggle: false
          icon: mdi:switch
          entities:
            - automation.living_room_opple
            - automation.living_room_desk_switch
            - automation.bedroom_opple
            - automation.bedroom_bedside_switch
            - automation.bedroom_aqara_switch
            - automation.bathroom_switch

        - type: entities
          title: Lighting
          show_header_toggle: false
          icon: mdi:lightbulb
          entities:
            - automation.lighting_turn_on_ceiling_lights_after_sunset
            - automation.lighting_turn_off_all_lights_after_sunrise
            # - type: divider
            # - automation.lighting_temperature_adjust_based_on_time
            - type: divider
            - automation.lighting_living_room_temperature_adjust_on_start
            - automation.lighting_living_room_temperature_sunset
            - automation.lighting_living_room_temperature_night
            - type: divider
            - automation.lighting_bedroom_door_open
            - automation.lighting_bedroom_temperature_adjust_on_start
            - automation.lighting_bedroom_temperature_sunset
            - automation.lighting_bedroom_temperature_night
            - type: divider
            - automation.lighting_kitchen_motion_on
            - automation.lighting_kitchen_night_motion_off
            - automation.lighting_kitchen_day_motion_off
            - automation.lighting_kitchen_temperature_main_adjust_on_start
            - automation.lighting_kitchen_temperature_secondary_adjust_on_start
            - automation.lighting_kitchen_temperature_main_sunset
            - automation.lighting_kitchen_temperature_secondary_sunset
            - automation.lighting_kitchen_temperature_main_night
            - automation.lighting_kitchen_temperature_secondary_night
            - type: divider
            - automation.lighting_hallway_motion_on
            - automation.lighting_hallway_motion_off
            - type: divider
            - automation.lighting_sync_tasmota_states_on_start_up
            - automation.lighting_sync_zigbee_states_on_start_up
            - type: divider
            - automation.trust_remote_dimming
            - automation.trust_remote_turn_on
            - automation.trust_remote_turn_off

        - type: entities
          title: Media
          show_header_toggle: false
          icon: mdi:play-box-outline
          entities:
            - automation.tv_join_beam_to_sonos_group_when_off
            - automation.tv_state_sync_on_tv_on
            - automation.tv_state_sync_on_tv_off
            - automation.tv_state_sync_on_shield_on
            - automation.tv_state_sync_on_shield_off
            - automation.tv_prepare_for_casting
            - type: divider
            - automation.tv_plex_setup_house_for_plex
            - automation.tv_plex_restore_house_after_plex
            - automation.youtube_download_latest_pds
            - automation.media_sonos_put_beam_in_night_mode
            - automation.media_sonos_put_beam_in_day_mode

        - type: entities
          title: Notifications
          show_header_toggle: false
          icon: mdi:play-box-outline
          entities:
            - automation.notification_phone_battery_low
            - automation.notification_door_opened

        - type: entities
          title: House Mode
          show_header_toggle: false
          entities:
            - automation.house_mode_set_to_day
            - automation.house_mode_set_to_bed
            - automation.house_mode_set_to_night
            - automation.house_mode_set_to_day_if_bedroom_door_was_opened

        - type: entities
          title: Guest mode
          show_header_toggle: false
          entities:
            - automation.guest_mode_enable
            - automation.guest_mode_disable
            - automation.guest_mode_enable_from_telegram
            - automation.guest_mode_disable_from_telegram

        - type: entities
          title: Domestina
          show_header_toggle: false
          entities:
            - automation.domestina_automate_start
            - automation.domestina_start
            - automation.domestina_automate_end
            - automation.domestina_end

        - type: entities
          title: Security
          show_header_toggle: false
          icon: mdi:shield-home
          entities:
            - automation.security_door_opened_while_away

        - type: entities
          title: Clock
          show_header_toggle: false
          icon: mdi:clock
          entities:
            - automation.alarm_wake_up
            - automation.alarm_set_time

        - type: entities
          title: Climate
          show_header_toggle: false
          icon: mdi:air-purifier
          entities:
            - automation.cliamate_air_quality_alert_when_opening_a_window
            - automation.cliamate_air_quality_alert_when_aqi_drops
            - automation.cliamate_air_quality_turn_on_purifier_in_bedroom_on_window_open
            - type: divider
            - script.turn_on_all_radiators
            - automation.climate_heating_turn_on_all_radiators_at_5_am
            - automation.climate_heating_link_living_room_radiator_to_windows
            - type: divider
            - automation.climate_ac_turn_on_if_hot
            - automation.climate_ac_turn_off
            - type: divider
            - automation.purifier_on_start_sync_and_update_state
            - automation.purifier_change_preset_mode
            - automation.purifier_sync_preset_mode
            - automation.purifier_change_speed
            - automation.purifier_sync_speed
            - automation.purifier_change_humidity
            - automation.purifier_sync_humidity
            - automation.purifier_turn_on_low_humidity
            - automation.purifier_turn_on_low_air_quality
            - automation.purifier_turn_off_okay_humidity
            - automation.purifier_turn_off_air_quality_returned_to_normal

        - type: entities
          title: System
          show_header_toggle: false
          icon: mdi:cogs
          entities:
            - automation.system_announce_start
            - automation.system_telegram_announce_status
            - automation.speech_telegram_action_do_nothing
            - automation.ifttt_call_service

        - type: entities
          title: Wallmote
          show_header_toggle: false
          icon: mdi:light-switch
          entities:
            - automation.wallmote_living_room_1_tap_toggle_lights
            - automation.wallmote_living_room_1_toggle_pc_light
            - automation.wallmote_living_room_2_tap_toggle_music
            - automation.wallmote_living_room_2_hold_play_music
            - automation.wallmote_living_room_3_tap_toggle_main_lights
            - automation.wallmote_living_room_3_hold_toggle_ambient_lights
            - automation.wallmote_living_room_4_tap_toggle_ac
            - automation.wallmote_living_room_4_hold_toggle_cover

        - type: entities
          title: Magic Cube
          show_header_toggle: false
          entities:
            - automation.magic_cube_mode_change
            - automation.magic_cube_lighting_toggle_on_knock
            - automation.magic_cube_lighting_dim_on_rotate_left
            - automation.magic_cube_lighting_brighten_on_rotate_right
            - automation.magic_cube_music_play_pause_on_knock
            - automation.magic_cube_music_volume_down_on_rotate_left
            - automation.magic_cube_music_volume_up_on_rotate_right

        - type: entities
          title: Simulation
          icon: mdi:robot
          show_header_toggle: false
          entities:
            - automation.simulation_mode_enable
            - automation.simulation_mode_disable
            - automation.simulation_mode_0300
            - automation.simulation_mode_1100
            - automation.simulation_mode_1400
            - automation.simulation_mode_1700
            - automation.simulation_mode_2200

        - type: entities
          title: Covers
          icon: mdi:blinds
          show_header_toggle: false
          entities:
            - automation.cover_living_room_open_at_morning
            - automation.cover_living_room_close_after_sunset
