Use logbook

This commit is contained in:
2020-05-15 22:31:54 +03:00
parent ed978948ce
commit 6f38672d18
7 changed files with 41 additions and 25 deletions
+5 -1
View File
@@ -45,7 +45,11 @@ lovelace:
filename: advanced-lovelace.yaml
# https://www.home-assistant.io/components/logbook
# logbook:
logbook:
include:
domains:
- sun
- automation
# https://www.home-assistant.io/components/map
# map:
+4
View File
@@ -247,3 +247,7 @@ automation:
data:
title: "🖥 *Devices · Titanium*"
message: "Hey, I'm turning Titanium off. It's been idling for 3 hours."
- service: logbook.log
data:
name: "🖥 *Devices · Titanium*"
message: "Hey, I'm turning Titanium off. It's been idling for 3 hours."
+8
View File
@@ -46,6 +46,10 @@ automation:
data:
title: "⚙️ *System Module · Telegram*"
message: "Okay, turning Guest mode on!"
- service: logbook.log
data:
name: "⚙️ *System Module · Telegram*"
message: "Okay, turning Guest mode on!"
- alias: Guest mode · Disable · From Telegram
trigger:
@@ -60,3 +64,7 @@ automation:
data:
title: "⚙️ *System Module · Telegram*"
message: "Okay, turning Guest mode off!"
- service: logbook.log
data:
name: "⚙️ *System Module · Telegram*"
message: "Okay, turning Guest mode off!"
@@ -268,9 +268,9 @@ automation:
- service: script.say
data:
message: "Hey, I'm turning on the purifier, because humidity is low and there is water in the tank"
- service: notify.telegram
- service: logbook.log
data:
title: "💨 *Climate module · Purifier On*"
name: "💨 *Climate module · Purifier On*"
message: "Turning purifier on - humidity is low"
- alias: Purifier · Turn on · Low air quality
@@ -293,9 +293,9 @@ automation:
- service: script.say
data:
message: "Hey, I'm turning on the purifier, because air quality is low"
- service: notify.telegram
- service: logbook.log
data:
title: "💨 *Climate Module · Purifier On"
name: "💨 *Climate Module · Purifier On"
message: "Turning purifier on - air quality is low"
- condition: state
entity_id: binary_sensor.purifier_out_of_water
@@ -308,9 +308,9 @@ automation:
- service: script.say
data:
message: "Also, switching to humidification, because there is water in the tank"
- service: notify.telegram
- service: logbook.log
data:
title: "💨 *Climate Module · Purifier Function"
name: "💨 *Climate Module · Purifier Function"
message: "Switching purifier to humidification - there is water in the tank"
- alias: Purifier · Turn off · Okay humidity
@@ -337,9 +337,9 @@ automation:
- service: script.say
data:
message: "Hey, I'm turning the purifier off, because humidity is okay"
- service: notify.telegram
- service: logbook.log
data:
title: "💨 *Climate Module · Purifier Off"
name: "💨 *Climate Module · Purifier Off"
message: "Turning purifier off - humidity is okay"
homeassistant:
+2 -2
View File
@@ -13,9 +13,9 @@ automation:
entity_id: light.on_after_dark
data:
brightness_pct: 100
- service: notify.telegram
- service: logbook.log
data:
title: "💡 *Lighting Module · Lights On"
name: "💡 *Lighting Module · Lights On"
message: "Turning lights on - it's 30 mins to sunset"
- alias: Lighting · Turn off all lights after sunrise
+4 -4
View File
@@ -77,9 +77,9 @@ automation:
entity_id: media_player.living_room
data:
night_sound: true
- service: notify.telegram
- service: logbook.log
data:
title: "🔊 *Media Module · Sonos Mode"
name: "🔊 *Media Module · Sonos Mode"
message: "Putting Beam in night mode"
- alias: Media · Sonos · Put Beam in day mode
@@ -91,9 +91,9 @@ automation:
entity_id: media_player.living_room
data:
night_sound: false
- service: notify.telegram
- service: logbook.log
data:
title: "🔊 *Media Module · Sonos Mode"
name: "🔊 *Media Module · Sonos Mode"
message: "Putting Beam in day mode"
- alias: Media · Sonos · Volume up on bathroom switch click
+10 -10
View File
@@ -96,9 +96,9 @@ automation:
data:
master: media_player.master_bedroom
entity_id: media_player.living_room
- service: notify.telegram
- service: logbook.log
data:
title: "📺 *Media Module · Sonos Group"
name: "📺 *Media Module · Sonos Group"
message: "TV off - joining Beam to Sonos Group"
- alias: TV · State · Sync on TV on
@@ -109,9 +109,9 @@ automation:
action:
- service: media_player.turn_on
entity_id: media_player.nvidia_shield
- service: notify.telegram
- service: logbook.log
data:
title: "📺 *Media Module · Sync TV state"
name: "📺 *Media Module · Sync TV state"
message: "Shield on - TV is on"
@@ -123,9 +123,9 @@ automation:
action:
- service: media_player.turn_off
entity_id: media_player.nvidia_shield
- service: notify.telegram
- service: logbook.log
data:
title: "📺 *Media Module · Sync TV state"
name: "📺 *Media Module · Sync TV state"
message: "Shield off - TV is off"
- alias: TV · State · Sync on Shield on
@@ -140,9 +140,9 @@ automation:
entity_id: media_player.living_room_tv
data:
source: "Shield"
- service: notify.telegram
- service: logbook.log
data:
title: "📺 *Media Module · Sync TV state"
name: "📺 *Media Module · Sync TV state"
message: "TV on - Shield is on"
@@ -154,9 +154,9 @@ automation:
action:
- service: media_player.turn_off
entity_id: media_player.living_room_tv
- service: notify.telegram
- service: logbook.log
data:
title: "📺 *Media Module · Sync TV state"
name: "📺 *Media Module · Sync TV state"
message: "TV off - Shield is off"
homeassistant: