<commit_before>#
# LoPresti smart home - scripts
#
#######################################

# this is executed either automatically or as response to statocasa changed to 'Notte'
nightmode:
  alias: Modo notte
  sequence:
    - alias: Spegni lume
      service: homeassistant.turn_off
      entity_id: switch.smartplug
    - alias: Chiudi finestre
      service: cover.close_cover
      entity_id: group.all_covers

# this is executed as response to statocasa changed to 'Festa'
partymode:
  alias: Modo festa
  sequence:
#    - alias: LED arcobaleno
#      service: homeassistant.turn_on
#      entity_id: light.led_salone
#      ...: rainbow

# this is executed by the 'Spegni cinema' scene
lucesalone:
  alias: Luce salone dopo cinema
  sequence:
    - condition: template
      value_template: >
        {% if is_state('sun.sun', 'below_horizon') %}
          true
        {% else %}
          false
        {% endif %}
    - service: homeassistant.turn_on
      entity_id: switch.smartplug

# this is available in the Media center group to e.g. stop the radio
stopaudio:
  alias: Stop audio
  sequence:
    - alias: Reset Internet radio
      service: input_select.select_option
      data:
        entity_id: input_select.internet_radio
        option: 'Scegli...'
    - alias: Spegni ChromeCast
      service: media_player.turn_off
      entity_id: media_player.chromecast
    - alias: Spegni Amplificatore
      service: media_player.turn_off
      entity_id: media_player.amplificatore_onkyo<commit_msg>Temporarily added script for KIRA for the record - not working<commit_after>#
# LoPresti smart home - scripts
#
#######################################

# this is executed either automatically or as response to statocasa changed to 'Notte'
nightmode:
  alias: Modo notte
  sequence:
    - alias: Spegni lume
      service: homeassistant.turn_off
      entity_id: switch.smartplug
    - alias: Chiudi finestre
      service: cover.close_cover
      entity_id: group.all_covers

# this is executed as response to statocasa changed to 'Festa'
partymode:
  alias: Modo festa
  sequence:
#    - alias: LED arcobaleno
#      service: homeassistant.turn_on
#      entity_id: light.led_salone
#      ...: rainbow

# this is executed by the 'Spegni cinema' scene
lucesalone:
  alias: Luce salone dopo cinema
  sequence:
    - condition: template
      value_template: >
        {% if is_state('sun.sun', 'below_horizon') %}
          true
        {% else %}
          false
        {% endif %}
    - service: homeassistant.turn_on
      entity_id: switch.smartplug

# this is available in the Media center group to e.g. stop the radio
stopaudio:
  alias: Stop audio
  sequence:
    - alias: Reset Internet radio
      service: input_select.select_option
      data:
        entity_id: input_select.internet_radio
        option: 'Scegli...'
    - alias: Spegni ChromeCast
      service: media_player.turn_off
      entity_id: media_player.chromecast
    - alias: Spegni Amplificatore
      service: media_player.turn_off
      entity_id: media_player.amplificatore_onkyo

# test for KIRA
projectorpower:
  alias: Accendi/spegni proiettore
  sequence:
    - alias: Send IR
      service: remote.send_command
      data:
        entity_id: remote.kira_remote
        command: sony_projector_power
        num_repeats: 1
{'fraction_non_alphanumeric': 0.09487951807228916, 'fraction_numerical': 0.00030120481927710846, 'mean_word_length': 2.857142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6159777', 'n_tokens_mistral': 1038, 'n_tokens_neox': 1002, 'n_words': 292}