steps:
- uses: actions/checkout@v3
+
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
+
- name: Install dependencies
run: |
- python -m pip install --upgrade pip
- pip install colorlog python-dateutil
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+ python3 -m pip install --upgrade pip
+ python3 -m pip install wheel colorlog python-dateutil
+ if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi
+
- name: Install Home Assistant
run: |
- pip install homeassistant
+ python3 -m pip install homeassistant
+
- name: Use dummy files for credentials
run: |
cp .secrets_dummy.yaml secrets.yaml
cp credentials/.google_dummy.json credentials/google.json
+
- name: Installing Custom Components
run: |
mkdir custom_components/
# Monitor Docker
git clone https://github.com/ualex73/monitor_docker
mv monitor_docker/custom_components/monitor_docker/ custom_components/
+
- name: Home Assistant Configuration Check
run: |
- hass -c . --script check_config --info all
+ sed -i "/\b\(mobile_app\)\b/d" configuration.yaml
+ hass --script check_config --config . --info
message: "{{ message }}"
- choose:
- - conditions:
- - condition: template
- value_template: "{{ enable_telegram }}"
- sequence:
- - service: notify.telegram
- data_template:
- title: "{{ title }}"
- message: "{{ message | regex_replace(find='_', replace='-', ignorecase=False) }}"
+ - conditions:
+ - condition: template
+ value_template: "{{ enable_telegram }}"
+ sequence:
+ - service: notify.telegram
+ data_template:
+ title: "{{ title }}"
+ message: "{{ message | regex_replace(find='_', replace='-', ignorecase=False) }}"
default: []
- service: notify.push
- service: persistent_notification.create
data_template:
- title: "{{ title }}"
- message: "{{ message }}"
- notification_id: "{{ notification_id }}"
+ title: "{{ title }}"
+ message: "{{ message }}"
+ notification_id: "{{ notification_id }}"
######################################################################
# Script: Volume Manager
selector:
select:
options:
- - "it"
- - "en"
- - "es"
+ - "it"
+ - "en"
+ - "es"
sequence:
- condition: state
notify_all:
alias: Notifiche globali (Testo+Voce)
- description: Invia notifiche sia vocali sia testiali. Le notifiche vocali sono inoltrate verso un determinato dispositivo compatibile. Si può selezionare il volume di riproduzione e la lingua. Quelle testuali possono essere inviate via mail oppure via telegram con la possibilità di notificarle direttamente sulla UI.
+ description: Invia notifiche sia vocali sia testiali.
+ Le notifiche vocali sono inoltrate verso un determinato dispositivo compatibile.
+ Si può selezionare il volume di riproduzione e la lingua.
+ Quelle testuali possono essere inviate via mail oppure via telegram con la possibilità di notificarle direttamente sulla UI.
variables:
defaultTitle: 'Home Assistant'
defaulMediaPlayer: 'media_player.google_home'
selector:
select:
options:
- - "it"
- - "en"
- - "es"
+ - "it"
+ - "en"
+ - "es"
notification_id:
description: "Id di notifica"
example: "generic"