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.
Daily push message for solar production, which flow?
Jon
Member
hi guys, does someone know how to make a flow that sends a push message
every day after sunset what my daily solar generation is (with the solar app created by Diederik / https://apps.athom.com./app/it.diederik.solar?query=solar)?
I came up with something like the 2 following flows that should work combined. But they don't unfortunately.
Any help is appreciated!
I came up with something like the 2 following flows that should work combined. But they don't unfortunately.
Any help is appreciated!
Comments
Flow 1:
Did you try and have Homey tell you the level of 'Energie is veranderd'?
Flow 2:
Does push notification work if you test?
If you remove 'Het is na zonsondergang' does it work?
Did you try and have Homey tell you the level of 'Energie is veranderd'?
No, I haven't. How and where should I do this? Do I need a second flow for it? And if so: how do I configure this?
Does push notification work if you test?
It already did and still does send the message to my phone, but it's all empty apart from a string (phrase like "Je dagopbrengst is:"). So it doesn't contain any integer / value.
@BasvandenBosch:
Okay, I have added 'waarde' to the 2nd flow. See below my current flows:
Try: IF its after sundown THEN send the push noti containing variable?
That's how it's supposed to work when testing so you can safely assume that's working fine.
Did you drag the black label to the 'Stuur een pushbericht' card? Then you should be fine.
Hmm, it apparently is not (yet)...
Energy changes all the time. See below screenshot. But still the flow does not do anything
There needs to be a card added to Better variables: Like a card that says [VALUE] is higher/lower than X. This way he can set it to "IF the VALUE of energie is higher than 0 AND the sun goes under THEN send a message".
What the flow of the OP says is: IF the variable "energy" is changed AT 19:40(sundown) THEN send a message [variable "energy"].
But I think the problem is that when the variable "energy" doesnt change today at exactly 19:40 the flow will not work because the flow hasnt met the requirements of both IF and AND.
Only the AND (time) works.
"it's after sunset" definitely means the whole period after the sun sets. So in the above card the one-time trigger is "the sun sets" but in the and-column the card is "it's after sunset" meaning in the evening...
I have a couple of similar flows. Power is probably a little different for every installation but look at what I see:
Today the power changed the last time around 19u45 it droped to 0.
after that Power isn't changed, but sunset was around 19u46?
So if this is the same at your site, your second flow isn't triggered anymore after the condition [Het is na zonsondergang] is true.
Would it be triggered (and executed) you should have received an empty Push msg as. you used the wrong label.
So I use the following in my homey: have to re-test after some BL-Variable problems.
Homey Variables:
- Power
Better Logic Variables:
- PowerSunPowerMeterDailyHigh = Number
- PowerSunPowerMeterDailyHighS = String
- PowerSunPowerNow = Number
Flow 1: PowerNow
When: The Power Changed
And: -
Then: Set a variable PowerNow = <Power] + BL-Set a Variable PowerSunPowerNow= <Power]
Flow 2: PowerSunNow
When: The Power Changed
And: The Time is Later than 17u00 AND - Logic: <Power] is less then 30
Then: Send a push Msg notificatiion "Power is <Power] " + Enable a Flow [PowerSunPowerMeterDaily]
When: The Power Meter Changed
And: -
Then: Send a push Msg notificatiion "Power Meter <Wh] kWh"
+ Disable a Flow [PowerSunPowerMeterDaily]
+ BL-Set string variable PowerSunPowerMeterDailyHighS = <Wh]
+ BL-Execute mathjs expression (<Wh]) => PowerSunPowerMeterDailyHigh
Flow 4 Bonus:
When: BL-A Variable changed PowerSunPowerMeterDailyHigh
And: BL- Math.js expression is False: $PowerSunPowerMeterDailyHigh$ > $PowerSunPowerMeterAllTimeHigh$
Then: BL-Execute mathjs expression ($PowerSunPowerMeterDailyHigh$) => PowerSunPowerMeterAllTimeHigh
+ Send a push notification : SunPowerMeterAllTimeHigh = <value] kWh
My syntax: A label from a trigger card in the description is <label]
And the label + tekst in the push message is: {{$stroom}} and the TIJD label so I know which time the measurement was done.
Like I posted monday:
Okay, will leave that card out and let's see what it will do this evening!!