How to handle current conflicts with HassGetState #1200
Replies: 4 comments 2 replies
-
I agree with your short term suggestion, provided that your gut feeling (same as mine) is correct. I've asked for telemetry data on the matter (if available), but haven't got a response yet. |
Beta Was this translation helpful? Give feedback.
-
I remember somewhere we were discussing maybe adding groups of constraints, so you could have something like: intents:
HassGetState:
data:
- sentences:
- "how many doors are locked"
response: how_many
slot_groups:
- domain: lock
- domain: binary_sensor
device_class: lock We would need to think carefully about this though, since maybe there is some connection with |
Beta Was this translation helpful? Give feedback.
-
Here's my proposal:
The issue with this construct is where would one place it? Given the current constraints, it can't reside in neither Alternatively, we could do something like this
where one "main" set of criteria is backwards compatible and determines the main usecase, but multiple Thoughts? |
Beta Was this translation helpful? Give feedback.
-
@synesthesiam @tetele |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There are currently 4 device classes for binary sensors which have conflicts with other domains if you want to use the
all
,any
,how_many
, andwhich
conflicts with
cover
domaindoor
: This device class conflicts with the same device class in thecover
domain.garage_door
: This device class conflicts with device classgarage
in thecover
domain.window
: This device class conflicts with the same device class in thecover
domain.Optimally it would be best if you could combine them in one intent, so asking
how many doors are open
would return both thecover
entities with stateopen
(and technically alsoopening
andclosing
) and the binary sensors with stateon
. However there is currently no option to combine domains in one intent, and to query for multiple states.Matching could take place using the
device_class
conflicts with other domains
lock
: This device class conflicts with thelock
domain.Optimally it would be best if you could combine them in one intent, so asking
how many locks are locked
would return both thelock
entities with statelocked
and the binary sensors with stateon
. However there is currently no option to combine domains in one intent, and to query for multiple states.There is no option to match on
device_class
so theslots
orrequires_context
settings would need to allowor
structures to make matching with both options possiblepotential future conflicts
update
: This device class would conflict with theupdate
domain if that domain would be supportedThe states are the same, so no issue there, however it is currently not possible to create intents for multiple domains.
There is no option to match on
device_class
so theslots
orrequires_context
settings would need to allowor
structures to make matching with both options possibleShort term suggestions
I think for
door
andwindow
the binary sensors are used a lot more than actual covers. So I would suggest to exlcude those device classes from the cover intents, and move them to the binary sensor intents. If someone does have adoor
orwindow
cover entity, then it is relatively easy to create a template binary sensor for it.For
lock
andgarage
I think it makes sense to me to use thelock
andcover
entities for now. If you actually automate a door, the garage door makes most sense to me. And I think smart locks are quite common nowadays.Before making changes to EN and NL, I would like to know how others think about this.
Beta Was this translation helpful? Give feedback.
All reactions