Create an entity in Home Assistant with script output json #416
-
Hi All!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It seems you've made progress with the code you posted in #419. Using the code from that post, you have made @time_trigger("period(midnight, 5m)")
@service
def getAircraft():
... |
Beta Was this translation helpful? Give feedback.
It seems you've made progress with the code you posted in #419. Using the code from that post, you have made
getAircraft()
a service call. You can also usepyscript
to callgetAircraft()
every 5 minutes from midnight using a@time_trigger
decorator, eg: