1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00

Merge pull request #14 from YunoHost-Apps/testing

Testing
This commit is contained in:
ewilly 2020-09-15 21:14:24 +02:00 committed by GitHub
commit 541853de3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 71 deletions

View file

@ -14,10 +14,10 @@ python3 -m venv "$final_path"
. "$final_path/bin/activate" . "$final_path/bin/activate"
# upgrade required python package # upgrade required python package
pip install --upgrade wheel python3 -m pip install --upgrade wheel
# upgrade homeassistant python package # upgrade homeassistant python package
pip install --upgrade $app pip3 install --upgrade $app
# restart homeassistant systemd service # restart homeassistant systemd service
sudo systemctl restart $app@$app.service sudo systemctl restart $app@$app.service

View file

@ -3,12 +3,6 @@ homeassistant:
- type: command_line - type: command_line
command: /home/homeassistant/.homeassistant/bin/ynh_ldap-auth.sh command: /home/homeassistant/.homeassistant/bin/ynh_ldap-auth.sh
meta: true meta: true
name: Home
latitude: 0
longitude: 0
elevation: 0
unit_system: metric
time_zone: UTC
http: http:
server_port: __PORT__ server_port: __PORT__
@ -16,68 +10,9 @@ http:
trusted_proxies: trusted_proxies:
- 127.0.0.1 - 127.0.0.1
- ::1 - ::1
ip_ban_enabled: True
login_attempts_threshold: 5
# Lovelace mode # Apply default set of integrations
lovelace: default_config:
mode: yaml
# Enables the frontend
frontend:
javascript_version: latest
# Enables configuration UI
config:
# Enables health
system_health:
# Checks for available updates
updater:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Text to speech
tts:
- platform: google
# Cloud
cloud:
# Sensors
sensor:
- platform: version
- platform: rest
resource: https://pypi.python.org/pypi/homeassistant/json
name: "Latest Available Version"
value_template: '{{ value_json.info.version }}'
scan_interval: 3600
# Binary sensors
binary_sensor:
- platform: template
sensors:
ha_update_available:
friendly_name: An update is available
value_template: >-
{{states.sensor.latest_available_version.state != "unavailable" and states.sensor.latest_available_version.state != states.sensor.current_version.state}}
# Switches # Switches
switch: switch:

View file

@ -6,7 +6,7 @@
"en": "Home automation platform", "en": "Home automation platform",
"fr": "Plateforme domotique" "fr": "Plateforme domotique"
}, },
"version": "1.0.0", "version": "1.1.0",
"url": "https://github.com/home-assistant/home-assistant", "url": "https://github.com/home-assistant/home-assistant",
"license": "Apache-2.0", "license": "Apache-2.0",
"maintainer": { "maintainer": {

View file

@ -3,7 +3,7 @@
# #
# Release to install # Release to install
VERSION=0.114.0 VERSION=0.114.4
# Package dependencies # Package dependencies
PKG_DEPENDENCIES="python3 python3-venv python3-pip build-essential libssl-dev libffi-dev python3-dev" PKG_DEPENDENCIES="python3 python3-venv python3-pip build-essential libssl-dev libffi-dev python3-dev"

View file

@ -60,6 +60,11 @@ exec_as $app -H -s /bin/bash -c " \
&& echo 'install Home Assistant' \ && echo 'install Home Assistant' \
&& pip3 install --upgrade $app==$VERSION \ && pip3 install --upgrade $app==$VERSION \
" "
# update script in bin
ynh_script_progression --message="Updating yunohost script used by homeassitant..."
cp -r "../conf/homeassistant_conf_files/bin/." "$data_path/bin/"
chown -R $app: "$data_path/bin"
chmod -R +x "$data_path/bin/"
# setup up systemd service # setup up systemd service
ynh_script_progression --message="Adding the dedicated service..." ynh_script_progression --message="Adding the dedicated service..."