Using create/delete zone in dynamic setup for gas stations #819
vingerha
started this conversation in
Show and tell
Replies: 2 comments
-
|
Does your zone.delete action work? I cant get it to work, and have read that it doesnt. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
For as far as I can tell yes, I just tested it on my dev instance and there it works fine... I tested the action not the script above as that is more complex for a quick test |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using an integration that provides the gas stations in a self-defined radius around a sensor (could be devide tracker or zone)
The service/action provides these as a list, each entry having its own lat/lon
By using automation 'for each), one can read the list and pass-on the data to zone.create and (if a moving device is used) zone.delete
The result can then be displayed in a map card
So why is this special? Other solutions would require the integration to create sensors with a lat/lon and make that dynamic based on the location of the person/device around which to search, that is a lot (!) more complex
Beta Was this translation helpful? Give feedback.
All reactions