Files
Garbage-Collection-fr/custom_components/garbage_collection/services.yaml
T

61 lines
1.9 KiB
YAML

collect_garbage:
description: Set the last_collection attribute to the current date and time.
target:
entity:
integration: garbage_collection
fields:
entity_id:
description: The garbage_collection sensor entity_id
example: sensor.general_waste
last_collection:
description: Date and time of the last collection (optional)
example: "2020-08-16 10:54:00"
add_date:
description: Manually add collection date.
target:
entity:
integration: garbage_collection
fields:
entity_id:
description: The garbage_collection sensor entity_id
example: sensor.general_waste
date:
description: Collection date to add
example: '"2020-08-16"'
offset_date:
description: Move the collection date by a number of days.
target:
entity:
integration: garbage_collection
fields:
entity_id:
description: The garbage_collection sensor entity_id
example: sensor.general_waste
date:
description: Collection date to move
example: '"2020-08-16"'
offset:
description: Nuber of days to move (negative number will move it back)
example: 1
remove_date:
description: Remove automatically calculated collection date.
target:
entity:
integration: garbage_collection
fields:
entity_id:
description: The garbage_collection sensor entity_id
example: sensor.general_waste
date:
description: Collection date to remove
example: '"2020-08-16"'
update_state:
description: Update the entity state and attributes. Used with the manual_update option, do defer the update after changing the automatically created schedule by automation trigered by the garbage_collection_loaded event.
target:
entity:
integration: garbage_collection
fields:
entity_id:
description: The garbage_collection sensor entity_id
example: sensor.general_waste