Moving to version platform for my HA version sensors.
This commit is contained in:
parent
364dca678c
commit
95a0c72b37
|
@ -51,15 +51,23 @@ sensor:
|
||||||
{{ ', ' }}
|
{{ ', ' }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{{ '%02d' % hours }}:{{ '%02d' % minutes }}
|
{{ '%02d' % hours }}:{{ '%02d' % minutes }}
|
||||||
- platform: command_line
|
- platform: template
|
||||||
command: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"
|
sensors:
|
||||||
name: Current HA Version
|
current_version_ha:
|
||||||
- platform: command_line
|
#command: python3 -c "import requests; print(requests.get('https://pypi.python.org/pypi/homeassistant/json').json()['info']['version'])"
|
||||||
|
friendly_name: Current HA Version
|
||||||
|
value_template: >-
|
||||||
|
{{ states.binary_sensor.attributes.newest_version }}
|
||||||
|
- platform: version
|
||||||
name: Installed version
|
name: Installed version
|
||||||
command: "head -5 /home/homeassistant/.homeassistant/.HA_VERSION"
|
source: local
|
||||||
|
#command: "head -5 /home/homeassistant/.homeassistant/.HA_VERSION"
|
||||||
|
- platform: version
|
||||||
|
name: Released Version
|
||||||
|
source: pypi
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: ha_v2db
|
name: ha_v2db
|
||||||
command: "ls -sh /home/homeassistant/.homeassistant/home-assistant_v2.db | cut -f1 -d ' '"
|
command: "ls -sh /home/homeassistant/.homeassistant/home-assistant_v2.db | cut -f1 -d ' '"
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: ha_log
|
name: ha_log
|
||||||
command: "ls -sh /home/homeassistant/.homeassistant/home-assistant.log | cut -f1 -d ' '"
|
command: "ls -sh /home/homeassistant/.homeassistant/home-assistant.log | cut -f1 -d ' '"
|
||||||
|
|
Loading…
Reference in New Issue