mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-08-28 16:57:02 +00:00
updated to latest version + dockerized!
This commit is contained in:
@@ -45,16 +45,6 @@ sensor:
|
||||
arg: ens160
|
||||
- type: last_boot
|
||||
|
||||
- platform: rest
|
||||
resource: https://pypi.python.org/pypi/homeassistant/json
|
||||
name: HA Current Version
|
||||
value_template: "{{ value_json.info.version }}"
|
||||
|
||||
- platform: command_line
|
||||
name: HA Installed Version
|
||||
command: /srv/homeassistant/bin/hass --version
|
||||
scan_interval: 86400
|
||||
|
||||
- platform: mqtt
|
||||
state_topic: "iotlink/domain/winsvr2016/lwt"
|
||||
name: "Windows Server"
|
||||
@@ -79,57 +69,3 @@ sensor:
|
||||
state_topic: "iotlink/domain/winsvr2016/windows-monitor/stats/system/idle-time"
|
||||
name: "Windows Server Idle Time"
|
||||
value_template: "{{ value }}"
|
||||
|
||||
###############################################################################
|
||||
# _ _ _
|
||||
# /\ | | | | (_)
|
||||
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
|
||||
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
|
||||
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
|
||||
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
automation:
|
||||
# Notify me when I get a new public IP from my ISP
|
||||
######################################################
|
||||
|
||||
- alias: Notify Of New External IP
|
||||
initial_state: true
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sensor.external_ip
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: "{% if trigger.from_state and trigger.to_state %} true {% else %} false {% endif %}"
|
||||
- condition: template
|
||||
value_template: "{% if trigger.from_state.state == 'unknown' %} false {% else %} true {% endif %}"
|
||||
- condition: template
|
||||
value_template: "{% if trigger.to_state.state == 'unknown' %} false {% else %} true {% endif %}"
|
||||
- condition: template
|
||||
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
||||
action:
|
||||
- service: script.notify_me
|
||||
data_template:
|
||||
message: "Your External IP changed from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}"
|
||||
|
||||
- alias: Update Available Notification
|
||||
initial_state: true
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: updater.updater
|
||||
action:
|
||||
- service: script.notify_me
|
||||
data: { "message": "New HASS update is available. Please update!" }
|
||||
|
||||
- alias: Remind domain renewal
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.my_domain
|
||||
below: 30
|
||||
action:
|
||||
- service: persistent_notification.create
|
||||
data:
|
||||
title: "Domain Renew"
|
||||
message: "It is time to renew your domain. The domain will expire in {{ states('sensor.my_domain') }} days."
|
||||
|
Reference in New Issue
Block a user