Fixed duplicate aliases...did I mention I'm an idiot?
This commit is contained in:
@ -219,25 +219,25 @@ camera:
|
|||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
switches:
|
switches:
|
||||||
my_computer:
|
tina_desktop:
|
||||||
friendly_name: "Tina Desktop"
|
friendly_name: "Tina Desktop"
|
||||||
value_template: "{{ is_state('binary_sensor.my_computer_connected', 'on') }}"
|
value_template: "{{ is_state('binary_sensor.tina_desktop_connected', 'on') }}"
|
||||||
turn_on:
|
turn_on:
|
||||||
service: script.my_computer_wake
|
service: script.tina_desktop_wake
|
||||||
turn_off:
|
turn_off:
|
||||||
service: script.my_computer_shutdown
|
service: script.tina_desktop_shutdown
|
||||||
icon_template: mdi:laptop
|
icon_template: mdi:laptop
|
||||||
|
|
||||||
script:
|
script:
|
||||||
my_computer_wake:
|
tina_desktop_wake:
|
||||||
# To enable see https://www.home-assistant.io/components/wake_on_lan/
|
# To enable see https://www.home-assistant.io/components/wake_on_lan/
|
||||||
alias: "Tina Desktop - Wake"
|
alias: "Tina Desktop - Wake"
|
||||||
sequence:
|
sequence:
|
||||||
- service: wake_on_lan.send_magic_packet
|
- service: wake_on_lan.send_magic_packet
|
||||||
data:
|
data:
|
||||||
mac: "70:85:C2:63:9F:11"
|
mac: "B4:2E:99:A8:CF:88"
|
||||||
|
|
||||||
my_computer_shutdown:
|
tina_desktop_shutdown:
|
||||||
alias: "Tina Desktop - Shutdown"
|
alias: "Tina Desktop - Shutdown"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -245,7 +245,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/shutdown"
|
topic: "iotlink/workgroup/xia-desktop/commands/shutdown"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_suspend:
|
tina_desktop_suspend:
|
||||||
alias: "Tina Desktop - Suspend"
|
alias: "Tina Desktop - Suspend"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -253,7 +253,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/suspend"
|
topic: "iotlink/workgroup/xia-desktop/commands/suspend"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_hibernate:
|
tina_desktop_hibernate:
|
||||||
alias: "Tina Desktop - Hibernate"
|
alias: "Tina Desktop - Hibernate"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -261,7 +261,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/hibernate"
|
topic: "iotlink/workgroup/xia-desktop/commands/hibernate"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_reboot:
|
tina_desktop_reboot:
|
||||||
alias: "Tina Desktop - Reboot"
|
alias: "Tina Desktop - Reboot"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -269,7 +269,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/reboot"
|
topic: "iotlink/workgroup/xia-desktop/commands/reboot"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_lock:
|
tina_desktop_lock:
|
||||||
alias: "Tina Desktop - Lock"
|
alias: "Tina Desktop - Lock"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -277,7 +277,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/lock"
|
topic: "iotlink/workgroup/xia-desktop/commands/lock"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_logoff:
|
tina_desktop_logoff:
|
||||||
alias: "Tina Desktop - Logoff"
|
alias: "Tina Desktop - Logoff"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -285,7 +285,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/logoff"
|
topic: "iotlink/workgroup/xia-desktop/commands/logoff"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_vol_mute:
|
tina_desktop_vol_mute:
|
||||||
alias: "Tina Desktop - Toggle Mute"
|
alias: "Tina Desktop - Toggle Mute"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -293,7 +293,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/volume/mute"
|
topic: "iotlink/workgroup/xia-desktop/commands/volume/mute"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_vol_max:
|
tina_desktop_vol_max:
|
||||||
alias: "Tina Desktop - Vol Max"
|
alias: "Tina Desktop - Vol Max"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -301,7 +301,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/volume/set"
|
topic: "iotlink/workgroup/xia-desktop/commands/volume/set"
|
||||||
payload: "100"
|
payload: "100"
|
||||||
|
|
||||||
my_computer_displays_on:
|
tina_desktop_displays_on:
|
||||||
alias: "Tina Desktop - Displays ON"
|
alias: "Tina Desktop - Displays ON"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -309,7 +309,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/displays/on"
|
topic: "iotlink/workgroup/xia-desktop/commands/displays/on"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_displays_off:
|
tina_desktop_displays_off:
|
||||||
alias: "Tina Desktop - Displays OFF"
|
alias: "Tina Desktop - Displays OFF"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -317,7 +317,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/displays/off"
|
topic: "iotlink/workgroup/xia-desktop/commands/displays/off"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_refresh:
|
tina_desktop_refresh:
|
||||||
alias: "Tina Desktop - Refresh"
|
alias: "Tina Desktop - Refresh"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -325,7 +325,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/refresh"
|
topic: "iotlink/workgroup/xia-desktop/refresh"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_notify:
|
tina_desktop_notify:
|
||||||
alias: "Tina Desktop - Notify"
|
alias: "Tina Desktop - Notify"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -333,7 +333,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/xia-desktop/commands/notify"
|
topic: "iotlink/workgroup/xia-desktop/commands/notify"
|
||||||
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
|
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
|
||||||
|
|
||||||
my_computer_run_chrome:
|
tina_desktop_run_chrome:
|
||||||
alias: "Tina Desktop - Run Chrome"
|
alias: "Tina Desktop - Run Chrome"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
|
@ -222,17 +222,17 @@ camera:
|
|||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
switches:
|
switches:
|
||||||
my_computer:
|
tony_desktop:
|
||||||
friendly_name: "Tony Desktop"
|
friendly_name: "Tony Desktop"
|
||||||
value_template: "{{ is_state('binary_sensor.my_computer_connected', 'on') }}"
|
value_template: "{{ is_state('binary_sensor.tony_desktop_connected', 'on') }}"
|
||||||
turn_on:
|
turn_on:
|
||||||
service: script.my_computer_wake
|
service: script.tony_desktop_wake
|
||||||
turn_off:
|
turn_off:
|
||||||
service: script.my_computer_shutdown
|
service: script.tony_desktop_shutdown
|
||||||
icon_template: mdi:laptop
|
icon_template: mdi:laptop
|
||||||
|
|
||||||
script:
|
script:
|
||||||
my_computer_wake:
|
tony_desktop_wake:
|
||||||
# To enable see https://www.home-assistant.io/components/wake_on_lan/
|
# To enable see https://www.home-assistant.io/components/wake_on_lan/
|
||||||
alias: "Tony Desktop - Wake"
|
alias: "Tony Desktop - Wake"
|
||||||
sequence:
|
sequence:
|
||||||
@ -240,7 +240,7 @@ script:
|
|||||||
data:
|
data:
|
||||||
mac: "70:85:C2:63:9F:11"
|
mac: "70:85:C2:63:9F:11"
|
||||||
|
|
||||||
my_computer_shutdown:
|
tony_desktop_shutdown:
|
||||||
alias: "Tony Desktop - Shutdown"
|
alias: "Tony Desktop - Shutdown"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -248,7 +248,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/shutdown"
|
topic: "iotlink/workgroup/tony-asus/commands/shutdown"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_suspend:
|
tony_desktop_suspend:
|
||||||
alias: "Tony Desktop - Suspend"
|
alias: "Tony Desktop - Suspend"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -256,7 +256,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/suspend"
|
topic: "iotlink/workgroup/tony-asus/commands/suspend"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_hibernate:
|
tony_desktop_hibernate:
|
||||||
alias: "Tony Desktop - Hibernate"
|
alias: "Tony Desktop - Hibernate"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -264,7 +264,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/hibernate"
|
topic: "iotlink/workgroup/tony-asus/commands/hibernate"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_reboot:
|
tony_desktop_reboot:
|
||||||
alias: "Tony Desktop - Reboot"
|
alias: "Tony Desktop - Reboot"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -272,7 +272,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/reboot"
|
topic: "iotlink/workgroup/tony-asus/commands/reboot"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_lock:
|
tony_desktop_lock:
|
||||||
alias: "Tony Desktop - Lock"
|
alias: "Tony Desktop - Lock"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -280,7 +280,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/lock"
|
topic: "iotlink/workgroup/tony-asus/commands/lock"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_logoff:
|
tony_desktop_logoff:
|
||||||
alias: "Tony Desktop - Logoff"
|
alias: "Tony Desktop - Logoff"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -288,7 +288,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/logoff"
|
topic: "iotlink/workgroup/tony-asus/commands/logoff"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_vol_mute:
|
tony_desktop_vol_mute:
|
||||||
alias: "Tony Desktop - Toggle Mute"
|
alias: "Tony Desktop - Toggle Mute"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -296,7 +296,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/volume/mute"
|
topic: "iotlink/workgroup/tony-asus/commands/volume/mute"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_vol_max:
|
tony_desktop_vol_max:
|
||||||
alias: "Tony Desktop - Vol Max"
|
alias: "Tony Desktop - Vol Max"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -304,7 +304,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/volume/set"
|
topic: "iotlink/workgroup/tony-asus/commands/volume/set"
|
||||||
payload: "100"
|
payload: "100"
|
||||||
|
|
||||||
my_computer_displays_on:
|
tony_desktop_displays_on:
|
||||||
alias: "Tony Desktop - Displays ON"
|
alias: "Tony Desktop - Displays ON"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -312,7 +312,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/displays/on"
|
topic: "iotlink/workgroup/tony-asus/commands/displays/on"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_displays_off:
|
tony_desktop_displays_off:
|
||||||
alias: "Tony Desktop - Displays OFF"
|
alias: "Tony Desktop - Displays OFF"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -320,7 +320,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/displays/off"
|
topic: "iotlink/workgroup/tony-asus/commands/displays/off"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_refresh:
|
tony_desktop_refresh:
|
||||||
alias: "Tony Desktop - Refresh"
|
alias: "Tony Desktop - Refresh"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -328,7 +328,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/refresh"
|
topic: "iotlink/workgroup/tony-asus/refresh"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
my_computer_notify:
|
tony_desktop_notify:
|
||||||
alias: "Tony Desktop - Notify"
|
alias: "Tony Desktop - Notify"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
@ -336,7 +336,7 @@ script:
|
|||||||
topic: "iotlink/workgroup/tony-asus/commands/notify"
|
topic: "iotlink/workgroup/tony-asus/commands/notify"
|
||||||
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
|
payload: '{ "title": "My Notification Title", "message": "This is an example of notification using IOT Link", "launchParams": "toast://open/https://iotlink.gitlab.io" }'
|
||||||
|
|
||||||
my_computer_run_chrome:
|
tony_desktop_run_chrome:
|
||||||
alias: "Tony Desktop - Run Chrome"
|
alias: "Tony Desktop - Run Chrome"
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
|
Reference in New Issue
Block a user