From 72b8db5b43cc01c726d23bd7bc8b7c97ff55f76d Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Mon, 23 Sep 2019 12:56:33 -0500 Subject: [PATCH] add url action (#10413) --- source/_lovelace/entity-button.markdown | 14 +++++- source/_lovelace/glance.markdown | 14 +++++- source/_lovelace/picture-elements.markdown | 56 ++++++++++++++++++---- source/_lovelace/picture-entity.markdown | 14 +++++- source/_lovelace/picture-glance.markdown | 14 +++++- source/_lovelace/picture.markdown | 14 +++++- 6 files changed, 108 insertions(+), 18 deletions(-) diff --git a/source/_lovelace/entity-button.markdown b/source/_lovelace/entity-button.markdown index 505584bdecb..ee3ed4a6b4e 100644 --- a/source/_lovelace/entity-button.markdown +++ b/source/_lovelace/entity-button.markdown @@ -57,7 +57,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`toggle`" navigation_path: @@ -65,6 +65,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -82,7 +87,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -90,6 +95,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" diff --git a/source/_lovelace/glance.markdown b/source/_lovelace/glance.markdown index 1fba596dda4..c69af02b1e1 100644 --- a/source/_lovelace/glance.markdown +++ b/source/_lovelace/glance.markdown @@ -82,7 +82,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -90,6 +90,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -107,7 +112,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -115,6 +120,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" diff --git a/source/_lovelace/picture-elements.markdown b/source/_lovelace/picture-elements.markdown index 0b4ca1a0760..e5514720696 100644 --- a/source/_lovelace/picture-elements.markdown +++ b/source/_lovelace/picture-elements.markdown @@ -82,7 +82,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -90,6 +90,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -107,7 +112,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -115,6 +120,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -162,7 +172,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -170,6 +180,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -187,7 +202,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`,, `none`)" type: string default: "`more-info`" navigation_path: @@ -195,6 +210,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -264,7 +284,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -272,6 +292,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -289,7 +314,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -297,6 +322,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -336,7 +366,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -344,6 +374,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -361,7 +396,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -369,6 +404,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" diff --git a/source/_lovelace/picture-entity.markdown b/source/_lovelace/picture-entity.markdown index f5d70a8c936..e1e5ff31e04 100644 --- a/source/_lovelace/picture-entity.markdown +++ b/source/_lovelace/picture-entity.markdown @@ -62,7 +62,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -70,6 +70,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -87,7 +92,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -95,6 +100,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" diff --git a/source/_lovelace/picture-glance.markdown b/source/_lovelace/picture-glance.markdown index 33dc065843e..f1fc699bf35 100644 --- a/source/_lovelace/picture-glance.markdown +++ b/source/_lovelace/picture-glance.markdown @@ -61,7 +61,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -69,6 +69,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -86,7 +91,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `none`)" + description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)" type: string default: "`more-info`" navigation_path: @@ -94,6 +99,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" diff --git a/source/_lovelace/picture.markdown b/source/_lovelace/picture.markdown index 65c9befd801..6170f9fe43a 100644 --- a/source/_lovelace/picture.markdown +++ b/source/_lovelace/picture.markdown @@ -27,7 +27,7 @@ tap_action: keys: action: required: true - description: "Action to perform (`call-service`, `navigate`, `none`)" + description: "Action to perform (`call-service`, `navigate`, `url`, `none`)" type: string default: "`none`" navigation_path: @@ -35,6 +35,11 @@ tap_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`" @@ -52,7 +57,7 @@ hold_action: keys: action: required: true - description: "Action to perform (`call-service`, `navigate`, `none`)" + description: "Action to perform (`call-service`, `navigate`, `url`, `none`)" type: string default: "`none`" navigation_path: @@ -60,6 +65,11 @@ hold_action: description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`" type: string default: none + url_path: + required: false + description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`" + type: string + default: none service: required: false description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`"