mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-09-13 15:26:58 +00:00
Not worth the trouble. Reverting back #784
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
###################################################
|
||||
## * Special HASS related sensors - Thanks @torn8o
|
||||
###################################################
|
||||
|
||||
- platform: version
|
||||
name: HA Installed Version
|
||||
scan_interval: 86400
|
||||
|
||||
- platform: command_line
|
||||
name: "HA Uptime"
|
||||
command: echo "$(($(date +%s) - $(date -d "$(head -n1 /config/home-assistant.log | cut -d' ' -f-2)" +%s)))"
|
||||
scan_interval: 720
|
||||
value_template: >-
|
||||
{% set uptime = value | int %}
|
||||
{% set seconds = uptime % 60 %}
|
||||
{% set minutes = ((uptime % 3600) / 60) | int %}
|
||||
{% set hours = ((uptime % 86400) / 3600) | int %}
|
||||
{% set days = (uptime / 86400) | int %}
|
||||
{%- if days > 0 -%}
|
||||
{%- if days == 1 -%}
|
||||
1 day
|
||||
{%- else -%}
|
||||
{{ days }} days
|
||||
{%- endif -%}
|
||||
{{ ', ' }}
|
||||
{%- endif -%}
|
||||
{%- if hours > 0 -%}
|
||||
{%- if hours == 1 -%}
|
||||
1 hour
|
||||
{%- else -%}
|
||||
{{ hours }} hours
|
||||
{%- endif -%}
|
||||
{{ ', ' }}
|
||||
{%- endif -%}
|
||||
{%- if minutes > 0 -%}
|
||||
{%- if minutes == 1 -%}
|
||||
1 minute
|
||||
{%- else -%}
|
||||
{{ minutes }} minutes
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
@@ -1,27 +0,0 @@
|
||||
###################################################
|
||||
## * [Nest Thermostats](http://amzn.to/2eAhB1k)
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
###################################################
|
||||
|
||||
#- platform: nest
|
||||
# monitored_conditions:
|
||||
# - 'temperature'
|
||||
# - 'target'
|
||||
# - 'humidity'
|
||||
# - 'operation_mode'
|
||||
# - 'last_connection'
|
||||
# - 'co_status'
|
||||
# - 'smoke_status'
|
||||
|
||||
# - platform: template
|
||||
# sensors:
|
||||
# upstairs_away_mode:
|
||||
# entity_id: []
|
||||
# value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
|
||||
#
|
||||
# - platform: template
|
||||
# sensors:
|
||||
# downstairs_away_mode:
|
||||
# entity_id: []
|
||||
# value_template: "{{ is_state_attr('climate.downstairs', 'away_mode', 'on') }}"
|
Reference in New Issue
Block a user