Skip to content
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

GetEntities node not working as expected with timeSinceChangedMs #147

Closed
gcorgnet opened this issue Aug 14, 2019 · 1 comment
Closed

GetEntities node not working as expected with timeSinceChangedMs #147

gcorgnet opened this issue Aug 14, 2019 · 1 comment

Comments

@gcorgnet
Copy link

Describe the bug
I am trying to get an array of entities whose state hasn't been updated in say 1h (ie timeSinceChangedMs > 3600000).
It seems like no entities are being returned

To Reproduce
See sample flow

Expected behavior
Returns an array containing entities whose id starts with "sensor.room" which haven't been updated in the last 1h

Screenshots
image

Example Flow

[{"id":"438cbf26.4f616","type":"ha-get-entities","z":"e18a73d1.8886e","server":"3aa20170.8cf73e","name":"","rules":[{"property":"entity_id","logic":"starts_with","value":"sensor.room","valueType":"str"},{"property":"timeSinceChangedMs","logic":"gt","value":"3600000","valueType":"num"}],"output_type":"array","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":250,"y":340,"wires":[["7f6c972b.ab8468"]]},{"id":"3aa20170.8cf73e","type":"server","z":"","name":"Home Assistant"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants