mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
Use logbook
This commit is contained in:
@@ -45,7 +45,11 @@ lovelace:
|
|||||||
filename: advanced-lovelace.yaml
|
filename: advanced-lovelace.yaml
|
||||||
|
|
||||||
# https://www.home-assistant.io/components/logbook
|
# https://www.home-assistant.io/components/logbook
|
||||||
# logbook:
|
logbook:
|
||||||
|
include:
|
||||||
|
domains:
|
||||||
|
- sun
|
||||||
|
- automation
|
||||||
|
|
||||||
# https://www.home-assistant.io/components/map
|
# https://www.home-assistant.io/components/map
|
||||||
# map:
|
# map:
|
||||||
|
|||||||
@@ -247,3 +247,7 @@ automation:
|
|||||||
data:
|
data:
|
||||||
title: "🖥 *Devices · Titanium*"
|
title: "🖥 *Devices · Titanium*"
|
||||||
message: "Hey, I'm turning Titanium off. It's been idling for 3 hours."
|
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."
|
||||||
|
|||||||
@@ -46,6 +46,10 @@ automation:
|
|||||||
data:
|
data:
|
||||||
title: "⚙️ *System Module · Telegram*"
|
title: "⚙️ *System Module · Telegram*"
|
||||||
message: "Okay, turning Guest mode on!"
|
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
|
- alias: Guest mode · Disable · From Telegram
|
||||||
trigger:
|
trigger:
|
||||||
@@ -60,3 +64,7 @@ automation:
|
|||||||
data:
|
data:
|
||||||
title: "⚙️ *System Module · Telegram*"
|
title: "⚙️ *System Module · Telegram*"
|
||||||
message: "Okay, turning Guest mode off!"
|
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
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey, I'm turning on the purifier, because humidity is low and there is water in the tank"
|
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:
|
data:
|
||||||
title: "💨 *Climate module · Purifier On*"
|
name: "💨 *Climate module · Purifier On*"
|
||||||
message: "Turning purifier on - humidity is low"
|
message: "Turning purifier on - humidity is low"
|
||||||
|
|
||||||
- alias: Purifier · Turn on · Low air quality
|
- alias: Purifier · Turn on · Low air quality
|
||||||
@@ -293,9 +293,9 @@ automation:
|
|||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey, I'm turning on the purifier, because air quality is low"
|
message: "Hey, I'm turning on the purifier, because air quality is low"
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "💨 *Climate Module · Purifier On"
|
name: "💨 *Climate Module · Purifier On"
|
||||||
message: "Turning purifier on - air quality is low"
|
message: "Turning purifier on - air quality is low"
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.purifier_out_of_water
|
entity_id: binary_sensor.purifier_out_of_water
|
||||||
@@ -308,9 +308,9 @@ automation:
|
|||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Also, switching to humidification, because there is water in the tank"
|
message: "Also, switching to humidification, because there is water in the tank"
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "💨 *Climate Module · Purifier Function"
|
name: "💨 *Climate Module · Purifier Function"
|
||||||
message: "Switching purifier to humidification - there is water in the tank"
|
message: "Switching purifier to humidification - there is water in the tank"
|
||||||
|
|
||||||
- alias: Purifier · Turn off · Okay humidity
|
- alias: Purifier · Turn off · Okay humidity
|
||||||
@@ -337,9 +337,9 @@ automation:
|
|||||||
- service: script.say
|
- service: script.say
|
||||||
data:
|
data:
|
||||||
message: "Hey, I'm turning the purifier off, because humidity is okay"
|
message: "Hey, I'm turning the purifier off, because humidity is okay"
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "💨 *Climate Module · Purifier Off"
|
name: "💨 *Climate Module · Purifier Off"
|
||||||
message: "Turning purifier off - humidity is okay"
|
message: "Turning purifier off - humidity is okay"
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ automation:
|
|||||||
entity_id: light.on_after_dark
|
entity_id: light.on_after_dark
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "💡 *Lighting Module · Lights On"
|
name: "💡 *Lighting Module · Lights On"
|
||||||
message: "Turning lights on - it's 30 mins to sunset"
|
message: "Turning lights on - it's 30 mins to sunset"
|
||||||
|
|
||||||
- alias: Lighting · Turn off all lights after sunrise
|
- alias: Lighting · Turn off all lights after sunrise
|
||||||
|
|||||||
@@ -77,9 +77,9 @@ automation:
|
|||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
data:
|
data:
|
||||||
night_sound: true
|
night_sound: true
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "🔊 *Media Module · Sonos Mode"
|
name: "🔊 *Media Module · Sonos Mode"
|
||||||
message: "Putting Beam in night mode"
|
message: "Putting Beam in night mode"
|
||||||
|
|
||||||
- alias: Media · Sonos · Put Beam in day mode
|
- alias: Media · Sonos · Put Beam in day mode
|
||||||
@@ -91,9 +91,9 @@ automation:
|
|||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
data:
|
data:
|
||||||
night_sound: false
|
night_sound: false
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "🔊 *Media Module · Sonos Mode"
|
name: "🔊 *Media Module · Sonos Mode"
|
||||||
message: "Putting Beam in day mode"
|
message: "Putting Beam in day mode"
|
||||||
|
|
||||||
- alias: Media · Sonos · Volume up on bathroom switch click
|
- alias: Media · Sonos · Volume up on bathroom switch click
|
||||||
|
|||||||
@@ -96,9 +96,9 @@ automation:
|
|||||||
data:
|
data:
|
||||||
master: media_player.master_bedroom
|
master: media_player.master_bedroom
|
||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "📺 *Media Module · Sonos Group"
|
name: "📺 *Media Module · Sonos Group"
|
||||||
message: "TV off - joining Beam to Sonos Group"
|
message: "TV off - joining Beam to Sonos Group"
|
||||||
|
|
||||||
- alias: TV · State · Sync on TV on
|
- alias: TV · State · Sync on TV on
|
||||||
@@ -109,9 +109,9 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: media_player.turn_on
|
- service: media_player.turn_on
|
||||||
entity_id: media_player.nvidia_shield
|
entity_id: media_player.nvidia_shield
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "📺 *Media Module · Sync TV state"
|
name: "📺 *Media Module · Sync TV state"
|
||||||
message: "Shield on - TV is on"
|
message: "Shield on - TV is on"
|
||||||
|
|
||||||
|
|
||||||
@@ -123,9 +123,9 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
entity_id: media_player.nvidia_shield
|
entity_id: media_player.nvidia_shield
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "📺 *Media Module · Sync TV state"
|
name: "📺 *Media Module · Sync TV state"
|
||||||
message: "Shield off - TV is off"
|
message: "Shield off - TV is off"
|
||||||
|
|
||||||
- alias: TV · State · Sync on Shield on
|
- alias: TV · State · Sync on Shield on
|
||||||
@@ -140,9 +140,9 @@ automation:
|
|||||||
entity_id: media_player.living_room_tv
|
entity_id: media_player.living_room_tv
|
||||||
data:
|
data:
|
||||||
source: "Shield"
|
source: "Shield"
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "📺 *Media Module · Sync TV state"
|
name: "📺 *Media Module · Sync TV state"
|
||||||
message: "TV on - Shield is on"
|
message: "TV on - Shield is on"
|
||||||
|
|
||||||
|
|
||||||
@@ -154,9 +154,9 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
entity_id: media_player.living_room_tv
|
entity_id: media_player.living_room_tv
|
||||||
- service: notify.telegram
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
title: "📺 *Media Module · Sync TV state"
|
name: "📺 *Media Module · Sync TV state"
|
||||||
message: "TV off - Shield is off"
|
message: "TV off - Shield is off"
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
|
|||||||
Reference in New Issue
Block a user