From b72ad4ac708db5173e49090769019c5b3f22579b Mon Sep 17 00:00:00 2001 From: ewilly Date: Mon, 3 Jan 2022 21:34:04 +0100 Subject: [PATCH 01/11] Move from SQlite to MySQL --- conf/homeassistant_conf_files/configuration.yaml | 3 +++ conf/systemd.service | 2 +- scripts/_common.sh | 4 +++- scripts/backup | 5 +++++ scripts/install | 7 +++++++ scripts/remove | 6 ++++++ scripts/restore | 8 ++++++++ scripts/upgrade | 14 ++++++++++++++ 8 files changed, 47 insertions(+), 2 deletions(-) diff --git a/conf/homeassistant_conf_files/configuration.yaml b/conf/homeassistant_conf_files/configuration.yaml index a500827..d00ad1e 100644 --- a/conf/homeassistant_conf_files/configuration.yaml +++ b/conf/homeassistant_conf_files/configuration.yaml @@ -11,6 +11,9 @@ http: - 127.0.0.1 - ::1 +recorder: + db_url: mysql+pymysql://__DB_USER__:__DB_PWD__@localhost:3306/__DB_NAME__?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4 + # Apply default set of integrations default_config: diff --git a/conf/systemd.service b/conf/systemd.service index a42c0db..2e35f8e 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,6 +1,6 @@ [Unit] Description=Home Assistant -After=network.target +After=network.target mysql.service [Service] Type=simple diff --git a/scripts/_common.sh b/scripts/_common.sh index 0bfac6b..298ee78 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ VERSION=2021.12.7 # Package dependencies -PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5" +PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libmariadbclient-dev libmariadb-dev-compat" # Requirements (Major.Minor.Patch) # PY_VERSION=$(curl -s "https://www.python.org/ftp/python/" | grep ">3.9" | tail -n1 | cut -d '/' -f 2 | cut -d '>' -f 2) @@ -135,6 +135,8 @@ myynh_install_homeassistant () { && source "$final_path/bin/activate" \ && echo 'install last version of wheel' \ && pip --cache-dir "$data_path/.cache" install --upgrade wheel \ + && echo 'install last version of mysqlclient' \ + && pip --cache-dir "$data_path/.cache" install --upgrade mysqlclient \ && echo 'install Home Assistant' \ && pip --cache-dir "$data_path/.cache" install --upgrade $app==$VERSION \ " diff --git a/scripts/backup b/scripts/backup index 02d2ff8..8333b29 100644 --- a/scripts/backup +++ b/scripts/backup @@ -17,6 +17,7 @@ data_path=$(ynh_app_setting_get --app="$app" --key=data_path) log_file=$(ynh_app_setting_get --app="$app" --key=log_file) path_url=$(ynh_app_setting_get --app="$app" --key=path_url) python=$(ynh_app_setting_get --app="$app" --key=python) +db_name=$(ynh_app_setting_get --app=$app --key=db_name) # backup source & conf files ynh_print_info --message="Declaring files to be backed up..." @@ -28,4 +29,8 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="$(dirname "$log_file")" +# backup the MySQL database +ynh_print_info --message="Backing up the MySQL database..." +ynh_mysql_dump_db --database="$db_name" > db.sql + ynh_print_info --message="Backup of $app completed" diff --git a/scripts/install b/scripts/install index 6778034..57e09ac 100644 --- a/scripts/install +++ b/scripts/install @@ -59,6 +59,13 @@ chown -R $app: "$data_path" ynh_script_progression --message="Installing dependencies..." myynh_install_dependencies --python="$PY_REQUIRED_VERSION" +# create a MySQL database +ynh_script_progression --message="Creating a MySQL database..." +db_name=$(ynh_sanitize_dbid --db_name=$app) +db_user=$db_name +ynh_app_setting_set --app=$app --key=db_name --value=$db_name +ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name + # installation in a virtual environment ynh_script_progression --message="Installing Home Assistant in a virtual environment..." ynh_exec_fully_quiet myynh_install_homeassistant diff --git a/scripts/remove b/scripts/remove index 9fb0765..0d240cc 100644 --- a/scripts/remove +++ b/scripts/remove @@ -14,6 +14,8 @@ data_path=$(ynh_app_setting_get --app="$app" --key=data_path) log_file=$(ynh_app_setting_get --app="$app" --key=log_file) path_url=$(ynh_app_setting_get --app="$app" --key=path_url) python=$(ynh_app_setting_get --app="$app" --key=python) +db_name=$(ynh_app_setting_get --app=$app --key=db_name) +db_user=$db_name # Remove a service from the admin panel, added by `yunohost service add` if ynh_exec_warn_less yunohost service status "$app" >/dev/null ; then @@ -29,6 +31,10 @@ ynh_remove_systemd_config --service="$app" ynh_script_progression --message="Removing logrotate configuration..." ynh_remove_logrotate +# remove the MySQL database +ynh_script_progression --message="Removing the MySQL database..." +ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name + # remove metapackage and its dependencies ynh_script_progression --message="Removing dependencies..." ynh_remove_app_dependencies diff --git a/scripts/restore b/scripts/restore index 1a4a152..2ae8093 100644 --- a/scripts/restore +++ b/scripts/restore @@ -23,6 +23,8 @@ data_path=$(ynh_app_setting_get --app="$app" --key=data_path) log_file=$(ynh_app_setting_get --app="$app" --key=log_file) path_url=$(ynh_app_setting_get --app="$app" --key=path_url) python=$(ynh_app_setting_get --app="$app" --key=python) +db_name=$(ynh_app_setting_get --app=$app --key=db_name) +db_user=$db_name # check domain/path availability ynh_script_progression --message="Validating recovery parameters..." @@ -53,6 +55,12 @@ ynh_restore_file --origin_path="$(dirname "$log_file")" ynh_script_progression --message="Restoring the packages dependencies..." myynh_install_dependencies --python="$python" +# restore the MySQL database +ynh_script_progression --message="Restoring the MySQL database..." +db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) +ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd +ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql + # restore the systemd service ynh_script_progression --message="Restoring the dedicated service..." ynh_restore_file --origin_path="/etc/systemd/system/$app.service" diff --git a/scripts/upgrade b/scripts/upgrade index d75fd2d..0e8f29a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,6 +77,20 @@ if [ ! -f "$log_file" ]; then myynh_create_dir "$(dirname "$log_file")" touch "$log_file" fi +if [ -z $(ynh_app_setting_get --app="$app" --key=db_name) ]; then + # create a MySQL database + db_name=$(ynh_sanitize_dbid --db_name=$app) + db_user=$db_name + ynh_app_setting_set --app=$app --key=db_name --value=$db_name + ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name + db_pwd=$(ynh_app_setting_get --app="$app" --key=mysqlpwd) + if [ -z $(sed -n "/recorder:/=" configuration.yaml) ]; then + sed -i "$ a recorder:" "$data_path/configuration.yaml" + sed -i "$ a \ db_url: mysql+pymysql://$db_user:$db_pwd@localhost:3306/$db_name?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4" "$data_path/configuration.yaml" + else + sed -i "/recorder:/a \ db_url: mysql+pymysql://$db_user:$db_pwd@localhost:3306/$db_name?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4" "$data_path/configuration.yaml" + fi +fi # installation in a virtual environment ynh_script_progression --message="Installing Home Assistant in a virtual environment..." From dfecb47b06fca10abf7cb9343b504dc76fb49285 Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 4 Jan 2022 09:15:44 +0100 Subject: [PATCH 02/11] Fix MySQL config --- conf/homeassistant_conf_files/configuration.yaml | 2 +- scripts/_common.sh | 2 +- scripts/upgrade | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/homeassistant_conf_files/configuration.yaml b/conf/homeassistant_conf_files/configuration.yaml index d00ad1e..1da5ac6 100644 --- a/conf/homeassistant_conf_files/configuration.yaml +++ b/conf/homeassistant_conf_files/configuration.yaml @@ -12,7 +12,7 @@ http: - ::1 recorder: - db_url: mysql+pymysql://__DB_USER__:__DB_PWD__@localhost:3306/__DB_NAME__?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4 + db_url: mysql://__DB_USER__:__DB_PWD__@127.0.0.1/__DB_NAME__?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4 # Apply default set of integrations default_config: diff --git a/scripts/_common.sh b/scripts/_common.sh index 298ee78..4894c5b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ VERSION=2021.12.7 # Package dependencies -PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libmariadbclient-dev libmariadb-dev-compat" +PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0 libmariadbclient-dev libmariadb-dev-compat" # Requirements (Major.Minor.Patch) # PY_VERSION=$(curl -s "https://www.python.org/ftp/python/" | grep ">3.9" | tail -n1 | cut -d '/' -f 2 | cut -d '>' -f 2) diff --git a/scripts/upgrade b/scripts/upgrade index 0e8f29a..773b940 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,9 +86,9 @@ if [ -z $(ynh_app_setting_get --app="$app" --key=db_name) ]; then db_pwd=$(ynh_app_setting_get --app="$app" --key=mysqlpwd) if [ -z $(sed -n "/recorder:/=" configuration.yaml) ]; then sed -i "$ a recorder:" "$data_path/configuration.yaml" - sed -i "$ a \ db_url: mysql+pymysql://$db_user:$db_pwd@localhost:3306/$db_name?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4" "$data_path/configuration.yaml" + sed -i "$ a \ db_url: mysql://$db_user:$db_pwd@127.0.0.1/$db_name?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4" "$data_path/configuration.yaml" else - sed -i "/recorder:/a \ db_url: mysql+pymysql://$db_user:$db_pwd@localhost:3306/$db_name?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4" "$data_path/configuration.yaml" + sed -i "/recorder:/a \ db_url: mysql://$db_user:$db_pwd@127.0.0.1/$db_name?unix_socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4" "$data_path/configuration.yaml" fi fi From f4dc3a18e1ddabb9dc0c25b3d8ff9d75747bc84a Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 4 Jan 2022 09:16:07 +0100 Subject: [PATCH 03/11] Trying to fix restore script --- scripts/restore | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/scripts/restore b/scripts/restore index 2ae8093..0f90dca 100644 --- a/scripts/restore +++ b/scripts/restore @@ -39,6 +39,10 @@ ynh_script_progression --message="Restoring dedicated user and rights folders... ynh_system_user_create --username="$app" --groups="$USER_GROUPS" ynh_restore_file --origin_path="/etc/sudoers.d/$app" +# restore nginx +ynh_script_progression --message="Restoring nginx web server..." +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" + # restore source ynh_script_progression --message="Restoring the app..." ynh_restore_file --origin_path="$final_path" @@ -77,18 +81,17 @@ sed --in-place "/ExecStart/s/$/ --verbose/" "/etc/systemd/system/$app.service" ynh_systemd_action --service_name="$app" --action=start --line_match="Home Assistant initialized" --log_path="$log_file" --timeout=900 # remove --verbose from service and restart -ynh_replace_string --match_string=" --verbose" --replace_string="" --target_file="/etc/systemd/system/$app.service" -ynh_store_file_checksum --file="/etc/systemd/system/$app.service" -systemctl daemon-reload -ynh_systemd_action --service_name="$app" --action=restart +#ynh_replace_string --match_string=" --verbose" --replace_string="" --target_file="/etc/systemd/system/$app.service" +#ynh_store_file_checksum --file="/etc/systemd/system/$app.service" +#systemctl daemon-reload +#ynh_systemd_action --service_name="$app" --action=restart # restore logrotate ynh_script_progression --message="Restoring logrotate..." ynh_restore_file --origin_path="/etc/logrotate.d/$app" -# restore nginx -ynh_script_progression --message="Restoring nginx web server..." -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +# reload nginx +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload -ynh_script_progression --message="Recovery of $app completed" --last +ynh_script_progression --message="Restoration completed for $app" --last From af1c5cfa5af5835727c346e985a93d69b997d068 Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 4 Jan 2022 11:55:24 +0100 Subject: [PATCH 04/11] Fix user group --- scripts/_common.sh | 11 +++++++++-- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4894c5b..1e46465 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -13,8 +13,15 @@ PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl # Pyhton 3.9.2 will be shiped with bullseye PY_REQUIRED_VERSION=3.9.2 -# System groups allowed to homeassistant user -USER_GROUPS="dialout gpio i2c" +# Create homeassistant user +mynh_user_create () { + USER_GROUPS="" + [ ynh_system_group_exists --group=dialout ] && USER_GROUPS="${USER_GROUPS} dialout" + [ ynh_system_group_exists --group=gpio ] && USER_GROUPS="${USER_GROUPS} gpio" + [ ynh_system_group_exists --group=i2c ] && USER_GROUPS="${USER_GROUPS} i2c" + ynh_system_user_create --username="$app" --groups="$USER_GROUPS" +} + # Check if directory/file already exists (path in argument) myynh_check_path () { diff --git a/scripts/install b/scripts/install index 57e09ac..b958ae9 100644 --- a/scripts/install +++ b/scripts/install @@ -41,7 +41,7 @@ ynh_app_setting_set --app="$app" --key=path_url --value="$path_url" # create a dedicated system user ynh_script_progression --message="Creating dedicated user, rights and folders..." -ynh_system_user_create --username="$app" --groups="$USER_GROUPS" +mynh_user_create # create a directory for the installation of Home Assistant myynh_create_dir "$final_path" diff --git a/scripts/restore b/scripts/restore index 0f90dca..de8fa9a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -36,7 +36,7 @@ ynh_exec_warn_less yunohost firewall allow TCP $port # restore dedicated system user ynh_script_progression --message="Restoring dedicated user and rights folders..." -ynh_system_user_create --username="$app" --groups="$USER_GROUPS" +mynh_user_create ynh_restore_file --origin_path="/etc/sudoers.d/$app" # restore nginx diff --git a/scripts/upgrade b/scripts/upgrade index 773b940..a4a5c8c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -106,6 +106,7 @@ ynh_add_systemd_config # grant sudo permissions to the user to manage his own systemd service ynh_script_progression --message="Creating dedicated user, rights and folders..." +mynh_user_create ynh_add_config --template="../conf/sudoers" --destination="/etc/sudoers.d/$app" # add service in admin panel From 5cf53b9c97ef99bfdbe4c46c0684f520421a44fb Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 4 Jan 2022 12:17:32 +0100 Subject: [PATCH 05/11] Fix user --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 1e46465..7262df2 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,9 +16,9 @@ PY_REQUIRED_VERSION=3.9.2 # Create homeassistant user mynh_user_create () { USER_GROUPS="" - [ ynh_system_group_exists --group=dialout ] && USER_GROUPS="${USER_GROUPS} dialout" - [ ynh_system_group_exists --group=gpio ] && USER_GROUPS="${USER_GROUPS} gpio" - [ ynh_system_group_exists --group=i2c ] && USER_GROUPS="${USER_GROUPS} i2c" + [ $(ynh_system_group_exists --group=dialout) ] && USER_GROUPS="${USER_GROUPS} dialout" + [ $(ynh_system_group_exists --group=gpio) ] && USER_GROUPS="${USER_GROUPS} gpio" + [ $(ynh_system_group_exists --group=i2c) ] && USER_GROUPS="${USER_GROUPS} i2c" ynh_system_user_create --username="$app" --groups="$USER_GROUPS" } From bf7fbad807da6e4460343d8d8546c19f662847ab Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 4 Jan 2022 14:24:35 +0100 Subject: [PATCH 06/11] Fix mynh_user_create --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 7262df2..5c467fc 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,9 +16,9 @@ PY_REQUIRED_VERSION=3.9.2 # Create homeassistant user mynh_user_create () { USER_GROUPS="" - [ $(ynh_system_group_exists --group=dialout) ] && USER_GROUPS="${USER_GROUPS} dialout" - [ $(ynh_system_group_exists --group=gpio) ] && USER_GROUPS="${USER_GROUPS} gpio" - [ $(ynh_system_group_exists --group=i2c) ] && USER_GROUPS="${USER_GROUPS} i2c" + [ $(getent group dialout) ] && USER_GROUPS="${USER_GROUPS} dialout" + [ $(getent group gpio) ] && USER_GROUPS="${USER_GROUPS} gpio" + [ $(getent group i2c) ] && USER_GROUPS="${USER_GROUPS} i2c" ynh_system_user_create --username="$app" --groups="$USER_GROUPS" } From 3aec306c0dfc669534202081a574f7e0d77dd9f4 Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 4 Jan 2022 20:33:33 +0100 Subject: [PATCH 07/11] Fix issue #40 --- conf/systemd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 2e35f8e..7559fe1 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -20,7 +20,7 @@ PrivateTmp=yes #CANT BE ACTIVATED FOR __APP__ #RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 RestrictNamespaces=yes RestrictRealtime=yes -DevicePolicy=closed +#CANT BE ACTIVATED FOR __APP__ (see issue #40) #DevicePolicy=closed ProtectSystem=full ProtectControlGroups=yes ProtectKernelModules=yes From ab240aef7890695bbf31355d8f8c034fb0da6e59 Mon Sep 17 00:00:00 2001 From: ewilly Date: Wed, 5 Jan 2022 21:12:38 +0100 Subject: [PATCH 08/11] Update default config --- conf/homeassistant_conf_files/automations.yaml | 0 conf/homeassistant_conf_files/configuration.yaml | 9 +++++++++ conf/homeassistant_conf_files/scenes.yaml | 0 conf/homeassistant_conf_files/scripts.yaml | 0 4 files changed, 9 insertions(+) create mode 100644 conf/homeassistant_conf_files/automations.yaml create mode 100644 conf/homeassistant_conf_files/scenes.yaml create mode 100644 conf/homeassistant_conf_files/scripts.yaml diff --git a/conf/homeassistant_conf_files/automations.yaml b/conf/homeassistant_conf_files/automations.yaml new file mode 100644 index 0000000..e69de29 diff --git a/conf/homeassistant_conf_files/configuration.yaml b/conf/homeassistant_conf_files/configuration.yaml index 1da5ac6..0d2383c 100644 --- a/conf/homeassistant_conf_files/configuration.yaml +++ b/conf/homeassistant_conf_files/configuration.yaml @@ -17,6 +17,15 @@ recorder: # Apply default set of integrations default_config: +# Text to speech +tts: + - platform: picotts + +# Linked yaml files +automation: !include automations.yaml +script: !include scripts.yaml +scene: !include scenes.yaml + # Switches switch: - platform: command_line diff --git a/conf/homeassistant_conf_files/scenes.yaml b/conf/homeassistant_conf_files/scenes.yaml new file mode 100644 index 0000000..e69de29 diff --git a/conf/homeassistant_conf_files/scripts.yaml b/conf/homeassistant_conf_files/scripts.yaml new file mode 100644 index 0000000..e69de29 From a44ae77241c751245971f3431436b0006ffee8c0 Mon Sep 17 00:00:00 2001 From: ewilly Date: Wed, 5 Jan 2022 21:19:16 +0100 Subject: [PATCH 09/11] Update to 2021.12.8 --- manifest.json | 2 +- scripts/_common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 1918ef9..3a6c136 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Home automation platform", "fr": "Plateforme domotique" }, - "version": "2021.12.7~ynh1", + "version": "2021.12.8~ynh1", "url": "https://github.com/home-assistant/home-assistant", "upstream": { "license": "Apache-2.0", diff --git a/scripts/_common.sh b/scripts/_common.sh index 5c467fc..8f76b58 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,7 +3,7 @@ # # Release to install -VERSION=2021.12.7 +VERSION=2021.12.8 # Package dependencies PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0 libmariadbclient-dev libmariadb-dev-compat" From 9bd4bbae491d67888880e0787b7c72ca4a6db707 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Wed, 5 Jan 2022 20:19:24 +0000 Subject: [PATCH 10/11] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f29fcfd..781e99f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Home automation platform -**Shipped version:** 2021.12.7~ynh1 +**Shipped version:** 2021.12.8~ynh1 **Demo:** https://demo.home-assistant.io diff --git a/README_fr.md b/README_fr.md index d45b45a..67629db 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Plateforme domotique -**Version incluse :** 2021.12.7~ynh1 +**Version incluse :** 2021.12.8~ynh1 **Démo :** https://demo.home-assistant.io From b276883c920e6662e71bfd6df55af7afdbcdb910 Mon Sep 17 00:00:00 2001 From: ewilly Date: Wed, 5 Jan 2022 21:52:40 +0100 Subject: [PATCH 11/11] Remove tts as default (need non free repo) --- conf/homeassistant_conf_files/configuration.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/conf/homeassistant_conf_files/configuration.yaml b/conf/homeassistant_conf_files/configuration.yaml index 0d2383c..8d2ec90 100644 --- a/conf/homeassistant_conf_files/configuration.yaml +++ b/conf/homeassistant_conf_files/configuration.yaml @@ -17,10 +17,6 @@ recorder: # Apply default set of integrations default_config: -# Text to speech -tts: - - platform: picotts - # Linked yaml files automation: !include automations.yaml script: !include scripts.yaml