Add service descriptions
This commit is contained in:
parent
0e85d2ef06
commit
fe1a180e4f
@ -28,8 +28,6 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
|
|
||||||
_LOGGER.error(hass.config_entries)
|
|
||||||
|
|
||||||
if not hass.config_entries.async_entries(DOMAIN):
|
if not hass.config_entries.async_entries(DOMAIN):
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
hass.config_entries.flow.async_init(
|
hass.config_entries.flow.async_init(
|
||||||
|
@ -5,16 +5,31 @@ command:
|
|||||||
description: 'Command to send'
|
description: 'Command to send'
|
||||||
example: 'navigate'
|
example: 'navigate'
|
||||||
deviceID:
|
deviceID:
|
||||||
description: 'List of receiving browsers'
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
|
commands:
|
||||||
|
description: 'Send several commands to a browser'
|
||||||
|
fields:
|
||||||
|
commands:
|
||||||
|
description: "List of commands to send"
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
example: '["99980b13-dabc9563", "office_computer"]'
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
debug:
|
debug:
|
||||||
description: 'On all browsers, show a popup, and a javascript alert with the current device ID.'
|
description: 'On all browsers, show a popup, and a javascript alert with the current device ID.'
|
||||||
|
fields:
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
set_theme:
|
set_theme:
|
||||||
description: 'On all browsers, change the theme.'
|
description: 'On all browsers, change the theme.'
|
||||||
fields:
|
fields:
|
||||||
theme:
|
theme:
|
||||||
description: 'Theme to change to'
|
description: 'Theme to change to'
|
||||||
example: '{theme: "clear_light"}'
|
example: '{theme: "clear_light"}'
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
navigate:
|
navigate:
|
||||||
description: 'Navigate to a path on a browser.'
|
description: 'Navigate to a path on a browser.'
|
||||||
fields:
|
fields:
|
||||||
@ -22,7 +37,7 @@ navigate:
|
|||||||
description: 'Path to navigate to'
|
description: 'Path to navigate to'
|
||||||
example: '/lovelace/1'
|
example: '/lovelace/1'
|
||||||
deviceID:
|
deviceID:
|
||||||
description: 'List of receiving browsers'
|
description: '(optional) List of receiving browsers'
|
||||||
example: '["99980b13-dabc9563", "office_computer"]'
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
more_info:
|
more_info:
|
||||||
description: 'Open the more info dialog of an entity on a browser.'
|
description: 'Open the more info dialog of an entity on a browser.'
|
||||||
@ -31,7 +46,7 @@ more_info:
|
|||||||
description: 'Entity to show more info for'
|
description: 'Entity to show more info for'
|
||||||
example: 'camera.front_door'
|
example: 'camera.front_door'
|
||||||
deviceID:
|
deviceID:
|
||||||
description: 'List of receiving browsers'
|
description: '(optional) List of receiving browsers'
|
||||||
example: '["99980b13-dabc9563", "office_computer"]'
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
large:
|
large:
|
||||||
description: '(optional) Set to true to make wider'
|
description: '(optional) Set to true to make wider'
|
||||||
@ -42,6 +57,9 @@ toast:
|
|||||||
message:
|
message:
|
||||||
description: 'Message to show'
|
description: 'Message to show'
|
||||||
example: 'Short message'
|
example: 'Short message'
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
duration:
|
duration:
|
||||||
description: '(optional) Time in milliseconds to show message for. Set to 0 for persistent display.'
|
description: '(optional) Time in milliseconds to show message for. Set to 0 for persistent display.'
|
||||||
example: '10000'
|
example: '10000'
|
||||||
@ -54,7 +72,7 @@ popup:
|
|||||||
card:
|
card:
|
||||||
description: 'YAML config for card to show'
|
description: 'YAML config for card to show'
|
||||||
deviceID:
|
deviceID:
|
||||||
description: 'List of receiving browsers'
|
description: '(optional) List of receiving browsers'
|
||||||
example: '["99980b13-dabc9563", "office_computer"]'
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
large:
|
large:
|
||||||
description: '(optional) Set to true to make wider'
|
description: '(optional) Set to true to make wider'
|
||||||
@ -70,16 +88,41 @@ popup:
|
|||||||
example: '20'
|
example: '20'
|
||||||
close_popup:
|
close_popup:
|
||||||
description: 'Close all popups on all browsers.'
|
description: 'Close all popups on all browsers.'
|
||||||
|
fields:
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
blackout:
|
blackout:
|
||||||
description: 'Cover screen in black until the mouse is moved or a key is pressed.'
|
description: 'Cover screen in black until the mouse is moved or a key is pressed.'
|
||||||
fields:
|
fields:
|
||||||
time:
|
time:
|
||||||
description: '(optional) The blackout will turn on automatically after the specified number of seconds. It works kind of like a screensaver and will keep turning on until blackout is called again with time: -1.'
|
description: '(optional) The blackout will turn on automatically after the specified number of seconds. It works kind of like a screensaver and will keep turning on until blackout is called again with time: -1.'
|
||||||
example: '20'
|
example: '20'
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
no_blackout:
|
no_blackout:
|
||||||
description: 'Remove a blackout from a browser.'
|
description: 'Remove a blackout from a browser.'
|
||||||
fields:
|
fields:
|
||||||
brightness:
|
brightness:
|
||||||
description: '(optional) On a Fully Kiosk Browser Plus set the screen brightness from 0 - 255.'
|
description: '(optional) On a Fully Kiosk Browser Plus set the screen brightness from 0 - 255.'
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
lovelace_reload:
|
lovelace_reload:
|
||||||
description: 'Refresh the lovelace configuration.'
|
description: 'Refresh the lovelace configuration.'
|
||||||
|
fields:
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
|
delay:
|
||||||
|
description: 'Do nothing for a while'
|
||||||
|
fields:
|
||||||
|
seconds:
|
||||||
|
description: 'Number of seconds to delay'
|
||||||
|
example: '5'
|
||||||
|
deviceID:
|
||||||
|
description: '(optional) List of receiving browsers'
|
||||||
|
example: '["99980b13-dabc9563", "office_computer"]'
|
||||||
|
call_service:
|
||||||
|
description: ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user