mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Update
This commit is contained in:
parent
c6629f129d
commit
fbf2a851b3
4 changed files with 6 additions and 71 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue