mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 08:35:12 +02:00
Rename deprecated api services/service to actions/action
ESPHome renamed the api component's services/service keys to actions/action; update all devices using the old names. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
468e813958
commit
56db2c2087
15 files changed
+134
-134
No files matched your search
+2
-2
@@ -22,8 +22,8 @@ packages:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
|
|||||||
+10
-10
@@ -44,15 +44,15 @@ binary_sensor:
|
|||||||
- min_length: 50ms
|
- min_length: 50ms
|
||||||
max_length: 350ms
|
max_length: 350ms
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.mcu_basement_2_light
|
entity_id: light.mcu_basement_2_light
|
||||||
- min_length: 351ms
|
- min_length: 351ms
|
||||||
max_length: 1000ms
|
max_length: 1000ms
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.exercise_room
|
entity_id: light.exercise_room
|
||||||
- min_length: 1001ms
|
- min_length: 1001ms
|
||||||
@@ -62,12 +62,12 @@ binary_sensor:
|
|||||||
# service: light.turn_off
|
# service: light.turn_off
|
||||||
# data:
|
# data:
|
||||||
# entity_id: light.basement_light
|
# entity_id: light.basement_light
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.turn_off
|
action: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.exercise_room
|
entity_id: light.exercise_room
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.turn_off
|
action: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.exercise_room_fan
|
entity_id: light.exercise_room_fan
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@@ -88,8 +88,8 @@ binary_sensor:
|
|||||||
filters:
|
filters:
|
||||||
invert:
|
invert:
|
||||||
on_press:
|
on_press:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.turn_on
|
action: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.mcu_basement_2_light
|
entity_id: light.mcu_basement_2_light
|
||||||
|
|
||||||
|
|||||||
@@ -114,8 +114,8 @@ script:
|
|||||||
# make use of the following service.
|
# make use of the following service.
|
||||||
api:
|
api:
|
||||||
reboot_timeout: 0s
|
reboot_timeout: 0s
|
||||||
services:
|
actions:
|
||||||
- service: activate_preset
|
- action: activate_preset
|
||||||
variables:
|
variables:
|
||||||
my_group: string
|
my_group: string
|
||||||
my_preset: string
|
my_preset: string
|
||||||
@@ -279,8 +279,8 @@ sensor:
|
|||||||
lambda: |-
|
lambda: |-
|
||||||
return id(group_control);
|
return id(group_control);
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.turn_on
|
action: light.turn_on
|
||||||
data:
|
data:
|
||||||
light_name: bedroom_lamp
|
light_name: bedroom_lamp
|
||||||
brightness: !lambda return x;
|
brightness: !lambda return x;
|
||||||
|
|||||||
@@ -111,8 +111,8 @@ script:
|
|||||||
# make use of the following service.
|
# make use of the following service.
|
||||||
api:
|
api:
|
||||||
reboot_timeout: 0s
|
reboot_timeout: 0s
|
||||||
services:
|
actions:
|
||||||
- service: activate_preset
|
- action: activate_preset
|
||||||
variables:
|
variables:
|
||||||
my_group: string
|
my_group: string
|
||||||
my_preset: string
|
my_preset: string
|
||||||
|
|||||||
+2
-2
@@ -41,8 +41,8 @@ packages:
|
|||||||
|
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
api:
|
api:
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ packages:
|
|||||||
|
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
api:
|
api:
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
|
|||||||
+2
-2
@@ -22,9 +22,9 @@ packages:
|
|||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
|
|
||||||
api:
|
api:
|
||||||
services:
|
actions:
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
|
|||||||
+18
-18
@@ -42,15 +42,15 @@ packages:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
- rtttl.play:
|
- rtttl.play:
|
||||||
rtttl: !lambda 'return song;'
|
rtttl: !lambda 'return song;'
|
||||||
|
|
||||||
- service: notify
|
- action: notify
|
||||||
variables:
|
variables:
|
||||||
heading: string
|
heading: string
|
||||||
message: string
|
message: string
|
||||||
@@ -62,12 +62,12 @@ api:
|
|||||||
- delay: 10s
|
- delay: 10s
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
||||||
|
|
||||||
- service: update_tft
|
- action: update_tft
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(nspanel_id).upload_tft("${tft_url}");
|
id(nspanel_id).upload_tft("${tft_url}");
|
||||||
|
|
||||||
- service: upload_tft
|
- action: upload_tft
|
||||||
variables:
|
variables:
|
||||||
url: string
|
url: string
|
||||||
then:
|
then:
|
||||||
@@ -75,14 +75,14 @@ api:
|
|||||||
id(nspanel_id).upload_tft(url);
|
id(nspanel_id).upload_tft(url);
|
||||||
|
|
||||||
# Service to send a command directly to the display. Useful for testing
|
# Service to send a command directly to the display. Useful for testing
|
||||||
- service: send_command
|
- action: send_command
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
||||||
|
|
||||||
# Service to pusblish to mqtt used for refreshin the panel
|
# Service to pusblish to mqtt used for refreshin the panel
|
||||||
- service: publish_to_recv_topic
|
- action: publish_to_recv_topic
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
@@ -91,18 +91,18 @@ api:
|
|||||||
payload: !lambda "return cmd;"
|
payload: !lambda "return cmd;"
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: wake
|
- action: wake
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
||||||
|
|
||||||
# Service to send a command to show screensaver (some of the values are hardcoded)
|
# Service to send a command to show screensaver (some of the values are hardcoded)
|
||||||
- service: show_screensaver
|
- action: show_screensaver
|
||||||
then:
|
then:
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
topic: $panel_recv_topic
|
topic: $panel_recv_topic
|
||||||
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
||||||
# Service to navigate to screen
|
# Service to navigate to screen
|
||||||
- service: navigate_to_page
|
- action: navigate_to_page
|
||||||
variables:
|
variables:
|
||||||
page: string
|
page: string
|
||||||
then:
|
then:
|
||||||
@@ -112,24 +112,24 @@ api:
|
|||||||
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
||||||
|
|
||||||
# Service to send a command disable screensaver
|
# Service to send a command disable screensaver
|
||||||
- service: disable_screensaver
|
- action: disable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
||||||
|
|
||||||
# Service to send a command enabled screensaver
|
# Service to send a command enabled screensaver
|
||||||
- service: enable_screensaver
|
- action: enable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: dim_0_to_100
|
- action: dim_0_to_100
|
||||||
variables:
|
variables:
|
||||||
intensity: string
|
intensity: string
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: show_entity
|
- action: show_entity
|
||||||
variables:
|
variables:
|
||||||
entity: string
|
entity: string
|
||||||
title: string
|
title: string
|
||||||
@@ -137,7 +137,7 @@ api:
|
|||||||
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: notify_on_screensaver
|
- action: notify_on_screensaver
|
||||||
variables:
|
variables:
|
||||||
line1: string
|
line1: string
|
||||||
line2: string
|
line2: string
|
||||||
@@ -147,7 +147,7 @@ api:
|
|||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
# interaction of the buttons are on implemented yet
|
# interaction of the buttons are on implemented yet
|
||||||
- service: notify_fullscreen
|
- action: notify_fullscreen
|
||||||
variables:
|
variables:
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
@@ -208,8 +208,8 @@ binary_sensor:
|
|||||||
# on_click:
|
# on_click:
|
||||||
# - switch.toggle: relay_2
|
# - switch.toggle: relay_2
|
||||||
on_click:
|
on_click:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.bedroom_lamps
|
entity_id: light.bedroom_lamps
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
|
|||||||
@@ -68,16 +68,16 @@ packages:
|
|||||||
api:
|
api:
|
||||||
homeassistant_services: true
|
homeassistant_services: true
|
||||||
homeassistant_states: true
|
homeassistant_states: true
|
||||||
services:
|
actions:
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
- rtttl.play:
|
- rtttl.play:
|
||||||
rtttl: !lambda 'return song;'
|
rtttl: !lambda 'return song;'
|
||||||
|
|
||||||
- service: notify
|
- action: notify
|
||||||
variables:
|
variables:
|
||||||
heading: string
|
heading: string
|
||||||
message: string
|
message: string
|
||||||
@@ -177,7 +177,7 @@ api:
|
|||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
# interaction of the buttons are on implemented yet
|
# interaction of the buttons are on implemented yet
|
||||||
- service: notify_fullscreen
|
- action: notify_fullscreen
|
||||||
variables:
|
variables:
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
|
|||||||
+24
-24
@@ -40,15 +40,15 @@ packages:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
- rtttl.play:
|
- rtttl.play:
|
||||||
rtttl: !lambda 'return song;'
|
rtttl: !lambda 'return song;'
|
||||||
|
|
||||||
- service: notify
|
- action: notify
|
||||||
variables:
|
variables:
|
||||||
heading: string
|
heading: string
|
||||||
message: string
|
message: string
|
||||||
@@ -60,12 +60,12 @@ api:
|
|||||||
- delay: 10s
|
- delay: 10s
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
||||||
|
|
||||||
- service: update_tft
|
- action: update_tft
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(nspanel_id).upload_tft("${tft_url}");
|
id(nspanel_id).upload_tft("${tft_url}");
|
||||||
|
|
||||||
- service: upload_tft
|
- action: upload_tft
|
||||||
variables:
|
variables:
|
||||||
url: string
|
url: string
|
||||||
then:
|
then:
|
||||||
@@ -73,14 +73,14 @@ api:
|
|||||||
id(nspanel_id).upload_tft(url);
|
id(nspanel_id).upload_tft(url);
|
||||||
|
|
||||||
# Service to send a command directly to the display. Useful for testing
|
# Service to send a command directly to the display. Useful for testing
|
||||||
- service: send_command
|
- action: send_command
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
||||||
|
|
||||||
# Service to pusblish to mqtt used for refreshin the panel
|
# Service to pusblish to mqtt used for refreshin the panel
|
||||||
- service: publish_to_recv_topic
|
- action: publish_to_recv_topic
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
@@ -89,18 +89,18 @@ api:
|
|||||||
payload: !lambda "return cmd;"
|
payload: !lambda "return cmd;"
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: wake
|
- action: wake
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
||||||
|
|
||||||
# Service to send a command to show screensaver (some of the values are hardcoded)
|
# Service to send a command to show screensaver (some of the values are hardcoded)
|
||||||
- service: show_screensaver
|
- action: show_screensaver
|
||||||
then:
|
then:
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
topic: $panel_recv_topic
|
topic: $panel_recv_topic
|
||||||
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
||||||
# Service to navigate to screen
|
# Service to navigate to screen
|
||||||
- service: navigate_to_page
|
- action: navigate_to_page
|
||||||
variables:
|
variables:
|
||||||
page: string
|
page: string
|
||||||
then:
|
then:
|
||||||
@@ -110,24 +110,24 @@ api:
|
|||||||
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
||||||
|
|
||||||
# Service to send a command disable screensaver
|
# Service to send a command disable screensaver
|
||||||
- service: disable_screensaver
|
- action: disable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
||||||
|
|
||||||
# Service to send a command enabled screensaver
|
# Service to send a command enabled screensaver
|
||||||
- service: enable_screensaver
|
- action: enable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: dim_0_to_100
|
- action: dim_0_to_100
|
||||||
variables:
|
variables:
|
||||||
intensity: string
|
intensity: string
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: show_entity
|
- action: show_entity
|
||||||
variables:
|
variables:
|
||||||
entity: string
|
entity: string
|
||||||
title: string
|
title: string
|
||||||
@@ -135,7 +135,7 @@ api:
|
|||||||
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: notify_on_screensaver
|
- action: notify_on_screensaver
|
||||||
variables:
|
variables:
|
||||||
line1: string
|
line1: string
|
||||||
line2: string
|
line2: string
|
||||||
@@ -145,7 +145,7 @@ api:
|
|||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
# interaction of the buttons are on implemented yet
|
# interaction of the buttons are on implemented yet
|
||||||
- service: notify_fullscreen
|
- action: notify_fullscreen
|
||||||
variables:
|
variables:
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
@@ -196,8 +196,8 @@ binary_sensor:
|
|||||||
- min_length: 50ms
|
- min_length: 50ms
|
||||||
max_length: 350ms
|
max_length: 350ms
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.living_room
|
entity_id: light.living_room
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
@@ -207,8 +207,8 @@ binary_sensor:
|
|||||||
- min_length: 500ms
|
- min_length: 500ms
|
||||||
max_length: 2000ms
|
max_length: 2000ms
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.worktop_lights
|
entity_id: light.worktop_lights
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
@@ -226,8 +226,8 @@ binary_sensor:
|
|||||||
- min_length: 50ms
|
- min_length: 50ms
|
||||||
max_length: 350ms
|
max_length: 350ms
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.dining_table
|
entity_id: light.dining_table
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
@@ -237,8 +237,8 @@ binary_sensor:
|
|||||||
- min_length: 500ms
|
- min_length: 500ms
|
||||||
max_length: 2000ms
|
max_length: 2000ms
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.mcu_kitchen_stove
|
entity_id: light.mcu_kitchen_stove
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
|
|||||||
+18
-18
@@ -46,15 +46,15 @@ api:
|
|||||||
# help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f
|
# help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f
|
||||||
# gate_opening:d=16,o=5,b=160:a, 8p, a
|
# gate_opening:d=16,o=5,b=160:a, 8p, a
|
||||||
# fireplace_attention:d=16,o=5,b=160:a, 8p, g, 16p, c
|
# fireplace_attention:d=16,o=5,b=160:a, 8p, g, 16p, c
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
- rtttl.play:
|
- rtttl.play:
|
||||||
rtttl: !lambda 'return song;'
|
rtttl: !lambda 'return song;'
|
||||||
|
|
||||||
- service: notify
|
- action: notify
|
||||||
variables:
|
variables:
|
||||||
heading: string
|
heading: string
|
||||||
message: string
|
message: string
|
||||||
@@ -66,12 +66,12 @@ api:
|
|||||||
- delay: 10s
|
- delay: 10s
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
||||||
|
|
||||||
- service: update_tft
|
- action: update_tft
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(nspanel_id).upload_tft("${tft_url}");
|
id(nspanel_id).upload_tft("${tft_url}");
|
||||||
|
|
||||||
- service: upload_tft
|
- action: upload_tft
|
||||||
variables:
|
variables:
|
||||||
url: string
|
url: string
|
||||||
then:
|
then:
|
||||||
@@ -79,14 +79,14 @@ api:
|
|||||||
id(nspanel_id).upload_tft(url);
|
id(nspanel_id).upload_tft(url);
|
||||||
|
|
||||||
# Service to send a command directly to the display. Useful for testing
|
# Service to send a command directly to the display. Useful for testing
|
||||||
- service: send_command
|
- action: send_command
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
||||||
|
|
||||||
# Service to pusblish to mqtt used for refreshin the panel
|
# Service to pusblish to mqtt used for refreshin the panel
|
||||||
- service: publish_to_recv_topic
|
- action: publish_to_recv_topic
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
@@ -95,18 +95,18 @@ api:
|
|||||||
payload: !lambda "return cmd;"
|
payload: !lambda "return cmd;"
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: wake
|
- action: wake
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
||||||
|
|
||||||
# Service to send a command to show screensaver (some of the values are hardcoded)
|
# Service to send a command to show screensaver (some of the values are hardcoded)
|
||||||
- service: show_screensaver
|
- action: show_screensaver
|
||||||
then:
|
then:
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
topic: $panel_recv_topic
|
topic: $panel_recv_topic
|
||||||
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
||||||
# Service to navigate to screen
|
# Service to navigate to screen
|
||||||
- service: navigate_to_page
|
- action: navigate_to_page
|
||||||
variables:
|
variables:
|
||||||
page: string
|
page: string
|
||||||
then:
|
then:
|
||||||
@@ -116,24 +116,24 @@ api:
|
|||||||
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
||||||
|
|
||||||
# Service to send a command disable screensaver
|
# Service to send a command disable screensaver
|
||||||
- service: disable_screensaver
|
- action: disable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
||||||
|
|
||||||
# Service to send a command enabled screensaver
|
# Service to send a command enabled screensaver
|
||||||
- service: enable_screensaver
|
- action: enable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: dim_0_to_100
|
- action: dim_0_to_100
|
||||||
variables:
|
variables:
|
||||||
intensity: string
|
intensity: string
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: show_entity
|
- action: show_entity
|
||||||
variables:
|
variables:
|
||||||
entity: string
|
entity: string
|
||||||
title: string
|
title: string
|
||||||
@@ -141,7 +141,7 @@ api:
|
|||||||
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: notify_on_screensaver
|
- action: notify_on_screensaver
|
||||||
variables:
|
variables:
|
||||||
line1: string
|
line1: string
|
||||||
line2: string
|
line2: string
|
||||||
@@ -151,7 +151,7 @@ api:
|
|||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
# interaction of the buttons are on implemented yet
|
# interaction of the buttons are on implemented yet
|
||||||
- service: notify_fullscreen
|
- action: notify_fullscreen
|
||||||
variables:
|
variables:
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
@@ -230,8 +230,8 @@ binary_sensor:
|
|||||||
number: 27
|
number: 27
|
||||||
inverted: true
|
inverted: true
|
||||||
on_click:
|
on_click:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.bedside_left
|
entity_id: light.bedside_left
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
|
|||||||
+18
-18
@@ -64,15 +64,15 @@ api:
|
|||||||
# help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f
|
# help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f
|
||||||
# gate_opening:d=16,o=5,b=160:a, 8p, a
|
# gate_opening:d=16,o=5,b=160:a, 8p, a
|
||||||
# fireplace_attention:d=16,o=5,b=160:a, 8p, g, 16p, c
|
# fireplace_attention:d=16,o=5,b=160:a, 8p, g, 16p, c
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
- rtttl.play:
|
- rtttl.play:
|
||||||
rtttl: !lambda 'return song;'
|
rtttl: !lambda 'return song;'
|
||||||
|
|
||||||
- service: notify
|
- action: notify
|
||||||
variables:
|
variables:
|
||||||
heading: string
|
heading: string
|
||||||
message: string
|
message: string
|
||||||
@@ -84,13 +84,13 @@ api:
|
|||||||
- delay: 10s
|
- delay: 10s
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
||||||
|
|
||||||
- service: update_tft
|
- action: update_tft
|
||||||
then:
|
then:
|
||||||
- logger.log: "tft updating from: ${tft_url}"
|
- logger.log: "tft updating from: ${tft_url}"
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(nspanel_id).upload_tft("${tft_url}");
|
id(nspanel_id).upload_tft("${tft_url}");
|
||||||
|
|
||||||
- service: upload_tft
|
- action: upload_tft
|
||||||
variables:
|
variables:
|
||||||
url: string
|
url: string
|
||||||
then:
|
then:
|
||||||
@@ -98,14 +98,14 @@ api:
|
|||||||
id(nspanel_id).upload_tft(url);
|
id(nspanel_id).upload_tft(url);
|
||||||
|
|
||||||
# Service to send a command directly to the display. Useful for testing
|
# Service to send a command directly to the display. Useful for testing
|
||||||
- service: send_command
|
- action: send_command
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
||||||
|
|
||||||
# Service to pusblish to mqtt used for refreshin the panel
|
# Service to pusblish to mqtt used for refreshin the panel
|
||||||
- service: publish_to_recv_topic
|
- action: publish_to_recv_topic
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
@@ -114,18 +114,18 @@ api:
|
|||||||
payload: !lambda "return cmd;"
|
payload: !lambda "return cmd;"
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: wake
|
- action: wake
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
||||||
|
|
||||||
# Service to send a command to show screensaver (some of the values are hardcoded)
|
# Service to send a command to show screensaver (some of the values are hardcoded)
|
||||||
- service: show_screensaver
|
- action: show_screensaver
|
||||||
then:
|
then:
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
topic: $panel_recv_topic
|
topic: $panel_recv_topic
|
||||||
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
||||||
# Service to navigate to screen
|
# Service to navigate to screen
|
||||||
- service: navigate_to_page
|
- action: navigate_to_page
|
||||||
variables:
|
variables:
|
||||||
page: string
|
page: string
|
||||||
then:
|
then:
|
||||||
@@ -135,24 +135,24 @@ api:
|
|||||||
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
||||||
|
|
||||||
# Service to send a command disable screensaver
|
# Service to send a command disable screensaver
|
||||||
- service: disable_screensaver
|
- action: disable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
||||||
|
|
||||||
# Service to send a command enabled screensaver
|
# Service to send a command enabled screensaver
|
||||||
- service: enable_screensaver
|
- action: enable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: dim_0_to_100
|
- action: dim_0_to_100
|
||||||
variables:
|
variables:
|
||||||
intensity: string
|
intensity: string
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: show_entity
|
- action: show_entity
|
||||||
variables:
|
variables:
|
||||||
entity: string
|
entity: string
|
||||||
title: string
|
title: string
|
||||||
@@ -160,7 +160,7 @@ api:
|
|||||||
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: notify_on_screensaver
|
- action: notify_on_screensaver
|
||||||
variables:
|
variables:
|
||||||
line1: string
|
line1: string
|
||||||
line2: string
|
line2: string
|
||||||
@@ -170,7 +170,7 @@ api:
|
|||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
# interaction of the buttons are on implemented yet
|
# interaction of the buttons are on implemented yet
|
||||||
- service: notify_fullscreen
|
- action: notify_fullscreen
|
||||||
variables:
|
variables:
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
@@ -237,8 +237,8 @@ binary_sensor:
|
|||||||
number: 14
|
number: 14
|
||||||
inverted: true
|
inverted: true
|
||||||
on_click:
|
on_click:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.office_r_desk_strip
|
entity_id: light.office_r_desk_strip
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
|
|||||||
+18
-18
@@ -40,15 +40,15 @@ packages:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
|
||||||
services:
|
actions:
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song: string
|
song: string
|
||||||
then:
|
then:
|
||||||
- rtttl.play:
|
- rtttl.play:
|
||||||
rtttl: !lambda 'return song;'
|
rtttl: !lambda 'return song;'
|
||||||
|
|
||||||
- service: notify
|
- action: notify
|
||||||
variables:
|
variables:
|
||||||
heading: string
|
heading: string
|
||||||
message: string
|
message: string
|
||||||
@@ -60,12 +60,12 @@ api:
|
|||||||
- delay: 10s
|
- delay: 10s
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
|
||||||
|
|
||||||
- service: update_tft
|
- action: update_tft
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(nspanel_id).upload_tft("${tft_url}");
|
id(nspanel_id).upload_tft("${tft_url}");
|
||||||
|
|
||||||
- service: upload_tft
|
- action: upload_tft
|
||||||
variables:
|
variables:
|
||||||
url: string
|
url: string
|
||||||
then:
|
then:
|
||||||
@@ -73,14 +73,14 @@ api:
|
|||||||
id(nspanel_id).upload_tft(url);
|
id(nspanel_id).upload_tft(url);
|
||||||
|
|
||||||
# Service to send a command directly to the display. Useful for testing
|
# Service to send a command directly to the display. Useful for testing
|
||||||
- service: send_command
|
- action: send_command
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
|
||||||
|
|
||||||
# Service to pusblish to mqtt used for refreshin the panel
|
# Service to pusblish to mqtt used for refreshin the panel
|
||||||
- service: publish_to_recv_topic
|
- action: publish_to_recv_topic
|
||||||
variables:
|
variables:
|
||||||
cmd: string
|
cmd: string
|
||||||
then:
|
then:
|
||||||
@@ -89,18 +89,18 @@ api:
|
|||||||
payload: !lambda "return cmd;"
|
payload: !lambda "return cmd;"
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: wake
|
- action: wake
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
- lambda: 'id(nspanel_id).send_custom_command("wake");'
|
||||||
|
|
||||||
# Service to send a command to show screensaver (some of the values are hardcoded)
|
# Service to send a command to show screensaver (some of the values are hardcoded)
|
||||||
- service: show_screensaver
|
- action: show_screensaver
|
||||||
then:
|
then:
|
||||||
- mqtt.publish:
|
- mqtt.publish:
|
||||||
topic: $panel_recv_topic
|
topic: $panel_recv_topic
|
||||||
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
|
||||||
# Service to navigate to screen
|
# Service to navigate to screen
|
||||||
- service: navigate_to_page
|
- action: navigate_to_page
|
||||||
variables:
|
variables:
|
||||||
page: string
|
page: string
|
||||||
then:
|
then:
|
||||||
@@ -110,24 +110,24 @@ api:
|
|||||||
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
|
||||||
|
|
||||||
# Service to send a command disable screensaver
|
# Service to send a command disable screensaver
|
||||||
- service: disable_screensaver
|
- action: disable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
|
||||||
|
|
||||||
# Service to send a command enabled screensaver
|
# Service to send a command enabled screensaver
|
||||||
- service: enable_screensaver
|
- action: enable_screensaver
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
|
||||||
|
|
||||||
# Service to send a command wake the screen
|
# Service to send a command wake the screen
|
||||||
- service: dim_0_to_100
|
- action: dim_0_to_100
|
||||||
variables:
|
variables:
|
||||||
intensity: string
|
intensity: string
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: show_entity
|
- action: show_entity
|
||||||
variables:
|
variables:
|
||||||
entity: string
|
entity: string
|
||||||
title: string
|
title: string
|
||||||
@@ -135,7 +135,7 @@ api:
|
|||||||
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
|
||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
- service: notify_on_screensaver
|
- action: notify_on_screensaver
|
||||||
variables:
|
variables:
|
||||||
line1: string
|
line1: string
|
||||||
line2: string
|
line2: string
|
||||||
@@ -145,7 +145,7 @@ api:
|
|||||||
|
|
||||||
# Service to send a command To show the screen of a specific like
|
# Service to send a command To show the screen of a specific like
|
||||||
# interaction of the buttons are on implemented yet
|
# interaction of the buttons are on implemented yet
|
||||||
- service: notify_fullscreen
|
- action: notify_fullscreen
|
||||||
variables:
|
variables:
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
@@ -208,8 +208,8 @@ binary_sensor:
|
|||||||
condition:
|
condition:
|
||||||
api.connected:
|
api.connected:
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: light.toggle
|
action: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.patio_lights
|
entity_id: light.patio_lights
|
||||||
- mqtt.publish_json:
|
- mqtt.publish_json:
|
||||||
|
|||||||
@@ -54,22 +54,22 @@ packages:
|
|||||||
# GPIO21 RGB
|
# GPIO21 RGB
|
||||||
|
|
||||||
api:
|
api:
|
||||||
services:
|
actions:
|
||||||
- service: rfidreader_tag_ok
|
- action: rfidreader_tag_ok
|
||||||
then:
|
then:
|
||||||
- rtttl.play: "beep:d=16,o=5,b=100:b"
|
- rtttl.play: "beep:d=16,o=5,b=100:b"
|
||||||
|
|
||||||
- service: rfidreader_tag_ko
|
- action: rfidreader_tag_ko
|
||||||
then:
|
then:
|
||||||
- rtttl.play: "beep:d=8,o=5,b=100:b"
|
- rtttl.play: "beep:d=8,o=5,b=100:b"
|
||||||
|
|
||||||
- service: play_rtttl
|
- action: play_rtttl
|
||||||
variables:
|
variables:
|
||||||
song_str: string
|
song_str: string
|
||||||
then:
|
then:
|
||||||
- rtttl.play: !lambda 'return song_str;'
|
- rtttl.play: !lambda 'return song_str;'
|
||||||
|
|
||||||
- service: write_tag_id
|
- action: write_tag_id
|
||||||
variables:
|
variables:
|
||||||
tag_id: string
|
tag_id: string
|
||||||
then:
|
then:
|
||||||
@@ -93,7 +93,7 @@ api:
|
|||||||
id: notify_led
|
id: notify_led
|
||||||
- rtttl.play: "write:d=24,o=5,b=100:b,b"
|
- rtttl.play: "write:d=24,o=5,b=100:b,b"
|
||||||
|
|
||||||
- service: write_music_tag
|
- action: write_music_tag
|
||||||
variables:
|
variables:
|
||||||
music_url: string
|
music_url: string
|
||||||
music_info: string
|
music_info: string
|
||||||
@@ -348,7 +348,7 @@ button:
|
|||||||
light:
|
light:
|
||||||
- platform: esp32_rmt_led_strip
|
- platform: esp32_rmt_led_strip
|
||||||
id: notify_led
|
id: notify_led
|
||||||
rgb_order: GRB
|
channel_colors: GRB
|
||||||
pin: 3
|
pin: 3
|
||||||
num_leds: 1
|
num_leds: 1
|
||||||
chipset: ws2812
|
chipset: ws2812
|
||||||
@@ -356,7 +356,7 @@ light:
|
|||||||
rmt_symbols: 96
|
rmt_symbols: 96
|
||||||
- platform: esp32_rmt_led_strip
|
- platform: esp32_rmt_led_strip
|
||||||
id: status_led
|
id: status_led
|
||||||
rgb_order: GRB
|
channel_colors: GRB
|
||||||
pin: 21
|
pin: 21
|
||||||
num_leds: 1
|
num_leds: 1
|
||||||
chipset: ws2812
|
chipset: ws2812
|
||||||
|
|||||||
+2
-2
@@ -106,8 +106,8 @@ sensor:
|
|||||||
then:
|
then:
|
||||||
- light.turn_off: light_red
|
- light.turn_off: light_red
|
||||||
- switch.turn_off: relay
|
- switch.turn_off: relay
|
||||||
- homeassistant.service:
|
- homeassistant.action:
|
||||||
service: persistent_notification.create
|
action: persistent_notification.create
|
||||||
data:
|
data:
|
||||||
title: Message from ${name}
|
title: Message from ${name}
|
||||||
data_template:
|
data_template:
|
||||||
|
|||||||
Reference in new issue
Block a user