54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
# Describes the format for available switch services
|
|
|
|
turn_on:
|
|
description: Turn a switch on.
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of entities to turn on
|
|
example: 'switch.living_room'
|
|
|
|
turn_off:
|
|
description: Turn a switch off.
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of entities to turn off.
|
|
example: 'switch.living_room'
|
|
|
|
toggle:
|
|
description: Toggles a switch state.
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of entities to toggle.
|
|
example: 'switch.living_room'
|
|
|
|
xiaomi_miio_set_wifi_led_on:
|
|
description: Turn the wifi led on.
|
|
fields:
|
|
entity_id:
|
|
description: Name of the xiaomi miio entity.
|
|
example: 'switch.xiaomi_miio_device'
|
|
xiaomi_miio_set_wifi_led_off:
|
|
description: Turn the wifi led off.
|
|
fields:
|
|
entity_id:
|
|
description: Name of the xiaomi miio entity.
|
|
example: 'switch.xiaomi_miio_device'
|
|
xiaomi_miio_set_power_price:
|
|
description: Set the power price.
|
|
fields:
|
|
entity_id:
|
|
description: Name of the xiaomi miio entity.
|
|
example: 'switch.xiaomi_miio_device'
|
|
mode:
|
|
description: Power price, between 0 and 999.
|
|
example: 31
|
|
xiaomi_miio_set_power_mode:
|
|
description: Set the power mode.
|
|
fields:
|
|
entity_id:
|
|
description: Name of the xiaomi miio entity.
|
|
example: 'switch.xiaomi_miio_device'
|
|
mode:
|
|
description: Power mode, valid values are 'normal' and 'green'.
|
|
example: 'green'
|