Is there a way to change a number variable (or any of the other variable types for that matter) by telling google assistent what the value is?
Welcome Adel,
Not that I know of.
Maybe, when you show us what youâd like to achieve, there might be other ideas / solutions.
Hi I donât have Homey pro yet, so in the meantime until it gets here Iâm playing with automating and making my reminders smart. For example this situation: I pay everything with by bank card or online and donât usually carry cash or use it to pay anything other than my regular bi-weekly supply of meat for my dogs and that can only be paid in cash to the delivery man of the company as it is real-weight based, so the total price can differ a bit (±2âŹ) from my online order totalâŠ
They deliver every thursday of ODD weeks, so I set up a reminder chain with push notifications and confirm Y/N notifications for wednesdays of those weeks. It reminds me to go to the ATM and later checks with me if I did so - if yes, the flow sets the variable âDoIhaveEnoughCashâ to YES and stops; if no, sets the variable to NO and continues, waits a while, then checks with me again and like this 3 times during the afternoon-to-evening. So if I say YES the first time, the reminders stop there, otherwise continue until 9pm - if I still didnât go to the ATM it scolds me sarcastically Then one last time on thursday morning I get a final reminder but only if the variable is set to NO.
Ultimate goal:
I have a Google spreadsheet for my finances where I keep track of income, expenses and of course actual balance in back accounts and also input in one cell how much cash I have. I wanted to make a new number variable âCashAmmountâ and for this flow to fetch the value from here at the begining. But checking out the Google sheets app in the app gallery it looks like it can only export data from homey to the sheets and not read and fetch them
Once the Homey pro gets here (as I understood itâs needed for this to work) Iâd like to set up another flow that would have access to my Gmail and could fetch the total price from order confirmation email and assign that value to âOrderTotalâ. Not sure if this is possible.
If I could do these 2 things I wanted the flow to compare âOrderTotalâ and âCashAmmountâ :
IF {{âOrderTotalâ+5}} > âCashAmmountâ then set âDoIhaveEnoughCashâ to NO & starts the reminders flow (idealy even telling me the difference so I know right away how much money I need to take from ATM)
IF {{âOrderTotalâ+5}} < âCashAmmountâ then set âDoIhaveEnoughCashâ to YES & doesnât start the flow and no reminders are received.
The +5⏠is a buffer to account for the possible final price difference between order confirmation email and the real price, as explained in the first paragraph.
Alternative:
If thereâs no way to fetch those 2 values from Gmail and G. Sheets, I wanted to input the variable values via voice assistant, hence my original question
If you can get googleâs advanced automation script to send a webhook its feasible. Homey can listen to incomming webhooks and pipe the payload into a tag to be further processed within the flows.
Thanks, Iâll have a look on that, but honestly I have no idea what a webhook is and scripting and programming is beyond me
Its not that complicated.
Its just a URL to call like you open a webpage. With sending a webhook it needs a payload.
Send webhook to >> https://webhook.site/f6ca7b50-9eb6-44d5-aa7d-43c336d680fa
Payload =
{
"googleVoice": "whatever was put in the payload by google HERE"
}
The whatever was put in the payload⊠becomes available in Homey
Jepke, with all due respect, but saying âitâs not complicatedâ to anyone who hasnât got a clue about scripting and programming⊠please donât do that.
I also havenât got a clue what you just wrote. No offence, but this is pretty advanced stuff. Payload, pipingâŠ
Thatâs right, I also have no knowledge of scripting, but the requirement is also very advanced and without scripts and webhooks itâs probably not possible. And with the support of the community, I think itâs doable. If itâs possible at all.
@Adel_Cori, how and with what have you done it so far?
Hi guys,
Thanks to all of you for your inputs Guess Iâm too needy for a newbie, haha For now I set up this reminders flow with only 1 variable and without the other two and the comparing I was dreaming about being able to make up 4 days since discovering that something like Homey exists. It is not crucial and Iâm fine with just having this, although âthe ultimate goalâ as I called it above would be great and one less thing to worry about myself.
Hi,
I see one flaw in this example flow, which is the use of the native delays, longer than a few minutes.
Because, in case of a power outage, or restart, those delays are gone, so when the flow was still active before the restart, and with running delays, the flow never continues these running delays. You can imagine the strange results.
I always use a timer for most delays, and I prefer Chronograph. Those timers survive a restart & power outage. An unexpected Homey reboot is not uncommon, especially when you havenât disabled the auto firmware update function.
Good point Peter, thanks Although I canât use Chronograph for the moment as it is only for H. Pro and I donât have it yet. Once it arrives, Iâll change the flow as sudgested.
Even if I canât read everything, the flows look quite good at first look.
One more note about the push messages with yes/no confirmation. You have to answer these push messages within 30 minutes. After 30 minutes, the flow will not continue.
Iâm interested to see if itâs also possible with Google voice input (or Siri via shortcut). So Iâll be watching.