I have a to-do list with an item named "test". If this item is not checked by 10:00am, I want an automation to change the color of a light. What's the best way of going about this?
I have added this script: https://community.home-assistant.io/t/todo-list-check-if-an-item-exists/635275/6 but I have no idea how to check what it returns in an automation to achieve what I'm going for above
Home Assistant Community
I’m using a small helper script to check if an item with the specified title exists. it returns a boolean and if the item exists, the item itself. alias: "Todo: Item exists" sequence: - service: todo.get_items target: entity_id: "{{ list }}" response_variable: todo - variables: result: > {% set x = (item in tod...