mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Add Simulation Mode
This commit is contained in:
@@ -143,7 +143,6 @@ cards:
|
|||||||
icon: mdi:shield-home
|
icon: mdi:shield-home
|
||||||
entities:
|
entities:
|
||||||
- automation.security_door_opened_while_away
|
- automation.security_door_opened_while_away
|
||||||
- automation.camera_startup
|
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Clock
|
title: Clock
|
||||||
@@ -214,3 +213,16 @@ cards:
|
|||||||
- automation.magic_cube_music_play_pause_on_knock
|
- automation.magic_cube_music_play_pause_on_knock
|
||||||
- automation.magic_cube_music_volume_down_on_rotate_left
|
- automation.magic_cube_music_volume_down_on_rotate_left
|
||||||
- automation.magic_cube_music_volume_up_on_rotate_right
|
- automation.magic_cube_music_volume_up_on_rotate_right
|
||||||
|
|
||||||
|
- type: entities
|
||||||
|
title: Simulation
|
||||||
|
icon: mdi:robot
|
||||||
|
show_header_toggle: false
|
||||||
|
entities:
|
||||||
|
- automation.simulation_mode_enable
|
||||||
|
- automation.simulation_mode_disable
|
||||||
|
- automation.simulation_mode_0300
|
||||||
|
- automation.simulation_mode_1100
|
||||||
|
- automation.simulation_mode_1400
|
||||||
|
- automation.simulation_mode_1700
|
||||||
|
- automation.simulation_mode_2200
|
||||||
|
|||||||
@@ -171,7 +171,7 @@
|
|||||||
title: Manual controls
|
title: Manual controls
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: [default, with_state_indicator]
|
template: [small, with_state_indicator, with_state_background]
|
||||||
entity: input_boolean.alarm_enabled
|
entity: input_boolean.alarm_enabled
|
||||||
state_display: >-
|
state_display: >-
|
||||||
[[[
|
[[[
|
||||||
@@ -182,30 +182,34 @@
|
|||||||
show_name: false
|
show_name: false
|
||||||
styles:
|
styles:
|
||||||
icon:
|
icon:
|
||||||
- transform: translateY(-8px) # adjusted for state indicator size
|
- transform: translateY(0) # adjusted for state indicator size
|
||||||
state:
|
state:
|
||||||
- transform: translateY(-13px) # adjusted for state indicator size
|
- transform: translateY(-4px) # adjusted for state indicator size
|
||||||
variables:
|
variables:
|
||||||
state_indicator_id: automation.alarm_set_time
|
state_indicator_id: automation.alarm_set_time
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: [small, with_state_background]
|
||||||
entity: input_boolean.speech_notifications
|
entity: input_boolean.speech_notifications
|
||||||
name: Speech
|
name: Speech
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: [small, with_state_background]
|
||||||
entity: binary_sensor.house_mode
|
entity: binary_sensor.house_mode
|
||||||
|
name: House
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: input_select.select_next
|
service: input_select.select_next
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: input_select.house_mode
|
entity_id: input_select.house_mode
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: [small, with_state_background]
|
||||||
|
name: Guests
|
||||||
entity: input_boolean.guest_mode
|
entity: input_boolean.guest_mode
|
||||||
tap_action:
|
|
||||||
action: toggle
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: [small, with_state_background]
|
||||||
|
entity: input_boolean.simulation_mode
|
||||||
|
name: Simulation
|
||||||
|
- type: custom:button-card
|
||||||
|
template: [small, with_state_background]
|
||||||
entity: switch.mercury_home_mode
|
entity: switch.mercury_home_mode
|
||||||
name: Mercury
|
name: Mercury
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,82 @@
|
|||||||
|
input_boolean:
|
||||||
|
simulation_mode:
|
||||||
|
name: Simulation mode
|
||||||
|
icon: mdi:robot
|
||||||
|
|
||||||
|
group:
|
||||||
|
simulation_automations:
|
||||||
|
name: Simulation automation
|
||||||
|
entities:
|
||||||
|
- automation.simulation_mode_0300
|
||||||
|
- automation.simulation_mode_1100
|
||||||
|
- automation.simulation_mode_1400
|
||||||
|
- automation.simulation_mode_1700
|
||||||
|
- automation.simulation_mode_2200
|
||||||
|
|
||||||
|
automation:
|
||||||
|
- alias: Simulation mode · Enable
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: input_boolean.simulation_mode
|
||||||
|
to: "on"
|
||||||
|
action:
|
||||||
|
- service: script.say
|
||||||
|
data:
|
||||||
|
message: "Simulation mode - on"
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: group.simulation_automations
|
||||||
|
|
||||||
|
|
||||||
|
- alias: Simulation mode · Disable
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: input_boolean.simulation_mode
|
||||||
|
to: "off"
|
||||||
|
action:
|
||||||
|
- service: script.say
|
||||||
|
data:
|
||||||
|
message: "Simulation mode - off"
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: group.simulation_automations
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- alias: Simulation mode · 0300
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "03:00:00"
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.all
|
||||||
|
|
||||||
|
- alias: Simulation mode · 1100
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "11:00:00"
|
||||||
|
action:
|
||||||
|
- service: script.music_play
|
||||||
|
|
||||||
|
- alias: Simulation mode · 1400
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "14:00:00"
|
||||||
|
action:
|
||||||
|
- service: media_player.stop
|
||||||
|
entity_id: group.all_sonos
|
||||||
|
|
||||||
|
- alias: Simulation mode · 1700
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "17:00:00"
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id: light.all
|
||||||
|
- service: script.music_play
|
||||||
|
|
||||||
|
- alias: Simulation mode · 2200
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "22:00:00"
|
||||||
|
action:
|
||||||
|
- service: media_player.stop
|
||||||
|
entity_id: group.all_sonos
|
||||||
Reference in New Issue
Block a user