mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 21:18:18 -04:00
fixed missed renames
This commit is contained in:
@@ -8,8 +8,8 @@ input_select:
|
|||||||
icon: mdi:account
|
icon: mdi:account
|
||||||
initial: Available
|
initial: Available
|
||||||
|
|
||||||
partner_status:
|
maple_status:
|
||||||
name: "Partner Status"
|
name: "Maple Status"
|
||||||
options:
|
options:
|
||||||
- Available
|
- Available
|
||||||
- Busy
|
- Busy
|
||||||
@@ -28,16 +28,17 @@ template:
|
|||||||
{% elif status == 'Busy' %}mdi:circle-half-full
|
{% elif status == 'Busy' %}mdi:circle-half-full
|
||||||
{% else %}mdi:minus-circle{% endif %}
|
{% else %}mdi:minus-circle{% endif %}
|
||||||
|
|
||||||
- name: "Partner Status Icon"
|
- name: "Maple Status Icon"
|
||||||
state: >
|
state: >
|
||||||
{{ states('input_select.partner_status') }}
|
{{ states('input_select.maple_status') }}
|
||||||
icon: >
|
icon: >
|
||||||
{% set status = states('input_select.partner_status') %}
|
{% set status = states('input_select.maple_status') %}
|
||||||
{% if status == 'Available' %}mdi:circle
|
{% if status == 'Available' %}mdi:circle
|
||||||
{% elif status == 'Busy' %}mdi:circle-half-full
|
{% elif status == 'Busy' %}mdi:circle-half-full
|
||||||
{% else %}mdi:minus-circle{% endif %}
|
{% else %}mdi:minus-circle{% endif %}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
# Richie
|
||||||
set_richie_available:
|
set_richie_available:
|
||||||
alias: "Richie → Available"
|
alias: "Richie → Available"
|
||||||
icon: mdi:circle
|
icon: mdi:circle
|
||||||
@@ -81,6 +82,7 @@ script:
|
|||||||
{% if current == 'Available' %}Busy
|
{% if current == 'Available' %}Busy
|
||||||
{% elif current == 'Busy' %}Do Not Disturb
|
{% elif current == 'Busy' %}Do Not Disturb
|
||||||
{% else %}Available{% endif %}
|
{% else %}Available{% endif %}
|
||||||
|
|
||||||
# Maple
|
# Maple
|
||||||
set_maple_available:
|
set_maple_available:
|
||||||
alias: "Maple → Available"
|
alias: "Maple → Available"
|
||||||
@@ -88,7 +90,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.partner_status
|
entity_id: input_select.maple_status
|
||||||
data:
|
data:
|
||||||
option: "Available"
|
option: "Available"
|
||||||
|
|
||||||
@@ -98,7 +100,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.partner_status
|
entity_id: input_select.maple_status
|
||||||
data:
|
data:
|
||||||
option: "Busy"
|
option: "Busy"
|
||||||
|
|
||||||
@@ -108,7 +110,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.partner_status
|
entity_id: input_select.maple_status
|
||||||
data:
|
data:
|
||||||
option: "Do Not Disturb"
|
option: "Do Not Disturb"
|
||||||
|
|
||||||
@@ -118,10 +120,10 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.partner_status
|
entity_id: input_select.maple_status
|
||||||
data:
|
data:
|
||||||
option: >
|
option: >
|
||||||
{% set current = states('input_select.partner_status') %}
|
{% set current = states('input_select.maple_status') %}
|
||||||
{% if current == 'Available' %}Busy
|
{% if current == 'Available' %}Busy
|
||||||
{% elif current == 'Busy' %}Do Not Disturb
|
{% elif current == 'Busy' %}Do Not Disturb
|
||||||
{% else %}Available{% endif %}
|
{% else %}Available{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user