Services and events
HASL implements some services that can be useful for accessing data and using for automations or whatnot. Anyway; there are five services that can be used. They return data by triggering an event on the hasl3
topic. Commands can also be sent on the bus via hasl3
top and using cmd
as parameter specifying the argument.
dump_cache
No arguments. Dumps the cache to a file in the Home Assistant configuration directory. Returns the filename of the created file in an event.get_cache
No arguments. Returns the cache of the created file in an event.sl_find_location
: Argumentsapi_key
,search_string
. Returns the closest stop to the search string provided. Uses the Resrobot API.sl_find_trip_id
Argumentsapi_key
,org
,dest
. Returns a trip from org to dest. Uses the Resrobot API.sl_find_trip_pos
Argumentsapi_key
,orig_lat
,orig_long
,dest_lat
,dest_long
. Returns a trip from org to dest. Uses the Resrobot API.rr_find_location
: Argumentsapi_key
,search_string
. Returns the closest stop to the search string provided. Uses the Resrobot API.