This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
Seems to be going ok now again, might have been a Homey-problem?
Anyway, I do an export now regularly, just in case
I created 2 variables, containing indoor and outdoor temperature.
I want to do some calculations with it and store the result in a third variable every time one of them change.
Lets say I want TempIn - TempOut = TempDiff
How do I do that ?
Thanks
ThermoSmart Changed => Then
1) BetterLogic (BL): NowTemperatureThS = = <Temp]
2) HomeyLogic: NowTemperatureThS = = <Temp]
3) + 1Second : BL: Execute Mathjs : round(($NowTemperatureNA$ + $NowTemperatureThS$)/2,1) to BL Var NowTemperatureLiving
And a second flow that triggers on NetAtmo Temperature changed almost the same, with NowTemperatureNA and ThS exchanged...
together they update an average temperature ;-)
Would it be possible to create cards that work with epoch values?
I've created a feature request on gitub: https://github.com/PatrickSannes/BetterLogic/issues/4
So if the time is 16:57, I want the variable $Hours$ = 16 and the variable $Minutes$ = 57; and $TimeString$ = '16:57'
How can I do that ?
I don't seem to be able to make functions work, like
getHours() -> $Hours$
Everything is pushed to git already, so if you want to test, njoy!
I want to use the time (hours or hours+ minutes, depending on the specific flow).
I have a flow to stores the current caller (to my fritzbox), in another flow I want to ask homey, who was the last caller. Homey responds with 'the last caller was' + name.
I also want to add the time to that: 'at 18:20' for example. OR, and that's why I want the hours and minutes separated, at '6 hours and 20 minutes'
Or another flow, that tells the time like this (now I have a lot of different flow for it):
at 8 o'clock, 'good morning, it's 8 o'clock';
at 9 o'clock, 'good morning, it's 9 o'clock';
until 12:00
according this scheme:
~5:00 to ~12:30: Good morning.
~12:30 to ~ 17:00: Good afternoon.
~16:30 to ~5:00: Good evening.
I know there is a build in flow for reading the time, but I don't want to use that.
at 16:00 I want to output: 'Good afternoon, it's 4 o'clock'
I know this isn't entirely correct, but I'm using it in dutch and then it read: 'goede namiddag, het is 4 uur', then it's correct.
So for being able to do that, I need to know the hours, and subtract 12, when hours > 12.
Just to say why I need hours and minutes to be stored in a variable, separately, and do calculations with it.
Great!
Do you think my 'request' (2 replies up) would be possible in the (near) future ?
P.S. I realise it might not be possible, but if there's a way...
I made a flow with
IF: date&time, every minute
THEN: Betterlogic Set String Variable: TimeString, Value: TimeTag
TimeString now is '22:16'
So actually stringfunctions like you have a mathjs flowcard would do the job.
like:
TimeString.substring(1, 2) -> TimeHourString
fixed
Someone who wants to do that with a date can do the same.
You think a stringfunction flowcard would be possible ?
Thanks!
Maybe it's possible to add a action card to the app 'tell variable', where I can choose a variable. Or a build in option, that just tells me all variables and the values..
Or maybe it's already possible, but I don't know it yet.. lol
Dou you see this as a good extension of BL?