Configuración Inicial

This commit is contained in:
dfcarvajal
2019-04-17 09:36:19 +00:00
commit 2d46ec2369
26 changed files with 1149 additions and 0 deletions

14
packages/xee.yaml Normal file
View File

@@ -0,0 +1,14 @@
sensor:
- platform: command_line
command: !secret refresh_xee_command
name: refresh_xee
scan_interval: 86400
json_attributes:
- access_token
- expires_in
value_template: >-
{% if value_json.access_token is defined -%}
Válida hasta: {{ (as_timestamp(now()) + value_json.expires_in) | timestamp_local }}
{%- else -%}
Caducada.
{%- endif -%}