Improves UX of Utility Meter services (#48556)

This commit is contained in:
Diogo Gomes 2021-05-02 09:53:35 +01:00 committed by GitHub
parent 8adbc62a6e
commit 24b9d73392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,35 +1,40 @@
# Describes the format for available switch services # Describes the format for available switch services
reset: reset:
name: Reset
description: Resets the counter of an utility meter. description: Resets the counter of an utility meter.
fields: target:
entity_id:
description: Name(s) of the utility meter to reset
example: "utility_meter.energy"
next_tariff: next_tariff:
name: Next Tariff
description: Changes the tariff to the next one. description: Changes the tariff to the next one.
fields: target:
entity_id:
description: Name(s) of entities to reset
example: "utility_meter.energy"
select_tariff: select_tariff:
description: selects the current tariff of an utility meter. name: Select Tariff
description: Selects the current tariff of an utility meter.
target:
fields: fields:
entity_id:
description: Name of the entity to set the tariff for
example: "utility_meter.energy"
tariff: tariff:
name: Tariff
description: Name of the tariff to switch to description: Name of the tariff to switch to
example: "offpeak" example: "offpeak"
required: true
selector:
text:
calibrate: calibrate:
description: calibrates an utility meter. name: Calibrate
description: Calibrates a utility meter sensor.
target:
entity:
domain: sensor
fields: fields:
entity_id:
description: Name of the entity to calibrate
example: "utility_meter.energy"
value: value:
name: Value
description: Value to which set the meter description: Value to which set the meter
example: "100" example: "100"
required: true
selector:
text: