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
I'm extracting the "speech" string bij using the following expression:
$..speech
Screenshot of flow in action:
Let me know if this is enough data!
Awesome idea!
Probably this is an issue with the http app, the jsonpath or the format google sends the json data.
If you install the Homey Logger and enable logging for Flow, HTTP App and Better Logic we can debug this further.
This is my logging with a succesfull post from Postman and the same flow you showed:
Thanks for dropping by Erik! Let's try to find this out together.
Recently I installed Homey Logger. I'm probably doing something stupid cause my version looks different from yours (I don't have the tab 'Configuration' and the grey buttons). Also tried the one on Github without luck. A snapshot:
Let me know what I'm doing wrong and I'll report back with the logs after I can find them ^^
However, both versions of the logger will show HTTP app debug lines.
And if anyone ever wants to make some nice icons and stuff, I would be very greatfull (I suck at graphic design as you all can see)
Njoy!
Let me know if it helps!
The JSON is a little bit different than posted before. There are 3 'speech' elements, and the JSONpath statement is selecting them all three. So tweak the JSONpath a little further, or copy-paste the complete 'data' part here.
Just installed the latest version in order to test the new Trigger variable.
I managed to create a variable and also managed to add this Trigger as a device. However, I don't see any action cards, and don't know how to use it in a flow...
I think these trigger variables were made to replace the BitFlip workaround...?
Could you - or someone else - show a Flow and the use of the new Trigger variable.
Thanks for the create App!
Thanks for the rapid answer!
---Edit:
Fixed
Thanks!
I just don't understand the concept:
- I create a Trigger variable
- I add the Trigger as a device (it shows with a nice push button)
Now I would like to have that push button in the IF colum of a flow.... but that can't bed done?
So,
- create an extra boolean variable "Trigger pushed"
-I add this as a BitFlip device (it shows with a slider)
- in a flow I can use the Bitflip.....to toggle the Trigger....
- so, shy do I need the trigger in the first place???
I will investigate further !
I tried to create a new flow with this app but i cannot find any option to create a virtual device or button, is there a tutorial somewhere which i could follow?
What you do to create a button with a flow is the following:
-> Go to settings
-> Go to the better logic settings
-> Add a variable, select with type trigger
-> Go to devices
-> Add device and select betterlogic Trigger
-> There you should see the created trigger variable
-> Add it.
(These are basically the same steps you need to do for bitflip (boolean) and numbslide (number))
-> Go to flows
-> Create flow
-> Select the better logic card "On variable changed"
-> Select the variable name in there. Ensure you select the value from the dropdown, only typing will not work
This should do the trick. Hope it helped!
Calculate the time difference in seconds / minutes / hours between 'touching' a variable.
I flip a boolean at 9.30.00 and again at 10.05.00, this results in 35 minutes.
Since you already keep track of the time when a variable has changed this saves extra variables for storing start and stop times.
Doing this with mathjs would be sufficient for me, but it's not possible to get that info there from a specific variable, only contents of the variable itself.
Sorry!
Sorry again..
I have the following betterlogic variables:
binnen_lux (= numeric)
binnen_lux_old (= nummeric)
The flow i want to create is:
when:
lux value of sensor changes (value = lux)
and:
lux MORE then 'binnen_lux_old'
then:
update values betterlogic
binnen_lux_old = binnen_lux
binnen_lux = lux (after 1 sec delay)
The when and then statement is no problem, the problem is the 'and' part.
How can i use MORE then the stored value?
I want to have a mobile card in the Homey app where I can see a value that is updated in a betterlogic(number) variable. Example live monitoring "Netto vermogen live" , it's a sum of the consumed power - generated power solar. Could this be possible?