So creating chores for my kids I want them to be able to say yes I did a chore and then the toggle grays out or becomes unavailable until next day. Is there a way to say when toggle is set to true disable until the next day?
One option using only core cards is to stack conditional cards:
type: vertical-stack
cards:
- type: conditional
conditions:
- condition: state
entity: input_boolean.test_bool_1
state: 'off'
card:
type: entities
entities:
- entity: input_boolean.test_bool_1
- type: conditional
conditions:
- condition: state
entity: input_boolean.test_bool_2
state: 'off'
card:
type: entities
entities:
- entity: input_boolean.test_bool_2
Another good option would be to use the Auto Entities custom card. You can use a number of filter criteria to get just the entities you’re interested in when they’re in the desired state.
type: custom:auto-entities
card:
type: entities
filter:
include:
- state: 'off'
entity_id: "input_boolean.kids_chores*"
exclude: []
In both cases you would need to set up an automation to reset all the toggles overnight.
2 Likes