I’m working on a project to track the contents of my freezer using Homey Pro and the Better Logic Library (BLL). (together with chatgpt and WE can’t get it to work hahah)
The contents are stored in a single text variable vriezer_inhoud in JSON format.
Ah yes, that app is a great tool to interact with flows.
So I asked Homey bot:
“How do I store AND edit JSON data in Better Logic Library string variables?”
The response seems pretty usable (assuming you’ll get the same reply ).
In the meantime, check out the app “JSON Handler” also built by Arie .
For most of you, it’s probably a piece of cake, but I simply lack the knowledge:
A card in the Tesla app generates a time (‘time to destination’) as output (HH:mm). But, I don’t want the ‘time to destination’, I want the ‘arrival time’. So, somehow, I need to add the ‘time to destination’ to the now() time.
I checked all posts here (and to be honest, most look like food for programmers, which I’m not, so most I don’t understand and lots of respect for all Homey users knowing all this stuff) and hoped to find something similar to used. I found, but still after trying two evenings, I didn’t get it work.
So, does somebody know how to make a calculation with times and add the output (e.g. 18:45) of the Tesla app card to the actual time to generate the ‘time of arrival’?
This example adds the variable ‘Tesla Time’, that contains the time to destination in HH:mm format, to the current date/time stamp (which is in milliseconds) and formats the result again as HH:mm. That is the output of the last card, which you can then use in your flow.