Help with logic #77
-
I am having some issues with figuring out the logic to get this working. If there are more examples of all the options that I have missed please feel free to point me in a direction, but I do not see many examples. What I am trying to set up is a restriction so an input Boolean and be turned on but not off. this is for a chore tracker for my kids, and it adds points when it's turned on, so don't want the kids turning them on/off all the time. I just seem to not be able to get the syntax correct for this. I have attempted a couple different things, it either fully locks it where it cannot be turned on or off, or it doesn't lock it at all. no matter the state, so I am unsure if there's a syntax needed for this that I am just not seeing here with the provided examples. There are a bunch of options that just don't seem that fit, and everything I have attempted just doesn't want to work :( I could just be glazing over it and it's probably something super simple and once I see it it will be easy, but right now I just can't figure it out. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found a discussion that had several examples on the HA forums that had the logic I needed to get it going. Figured I would post here in case someone else needed it. ` type: custom:hui-entities-card
` |
Beta Was this translation helpful? Give feedback.
I found a discussion that had several examples on the HA forums that had the logic I needed to get it going. Figured I would post here in case someone else needed it.
`
type: custom:hui-entities-card
entities:
entity: input_boolean.test_chore
row: true
type: custom:restriction-card
restrictions:
block: true
condition:
value: 'on'
entity: input_boolean.test_chore
`