-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hass-cli event watch <single entity_id>? #312
Comments
There are not currently an option and as I see it at the moment there is no server side api to filter per entity but it could make sense to add syntactic sugar to enable some client side filtering. Just need to think how to make it nice as the events data can literally be anything so locating entity_id is not necessarily always in the same place as it would depend on the Suggestions/ideas welcome! |
Is there really no way to only listen to a particular events state change? |
remember events does not necessarily tie to any or a singular event, could be multiple ones. for example deconz switch events are pure events with no entity id in them thus the server is not really able to distinguish in a efficient manner. We can be a bit more creative in hass-cli and just look for a pattern, i.e. maybe a json path expression would be a nice way to do this. something like which would be |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm loving
hass-cli
already. Thank you all for the great work.The output of
event watch --help
It's not documented, but I tried anyways, trying to listen for state changes on a single entity:
-- What's the syntax for doing this, if at all possible?
The text was updated successfully, but these errors were encountered: