# Matching Sunshades to same value

**URL:** <https://community.homey.app/t/matching-sunshades-to-same-value/108319>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [April 16, 2024, 5:17pm UTC](https://community.homey.app/t/matching-sunshades-to-same-value/108319 "2024-04-16T17:17:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Lundh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erik_lundh/32/79107_2.png) [@Erik\_Lundh](https://community.homey.app/u/Erik_Lundh)\
**Post date:** [April 16, 2024, 5:17pm UTC](https://community.homey.app/t/matching-sunshades-to-same-value/108319/1 "2024-04-16T17:17:18Z")

</div>

Hi I just migrated from Fribaro HC2 and does not know how to operate my Homey pro at all.  
at the moment I want to migrate some scenes from Fibaro.  
This Scenen was working beutiful on the fibaro.  
I have 4 individual window sun shades. on the south side.  
the scene starts at any position change, checks the weather for strong winds, if no strong winds it matches the other 3 window screens to the first one after 30 seconds.  
worked like a charm

I need to translate it to my Homey

```auto
--[[
%% properties
%% weather
%% events
501 SceneActivationEvent
%% globals
--]]
if fibaro:countScenes() > 1 then fibaro:abort() end
fibaro:debug("Starting")

local match = tonumber(fibaro:getValue(500, "value"))
local wind_km_h = ( tonumber(api.get('/weather')['Wind']))
local wind_m_s = math.ceil((wind_km_h / 3.6))
local sceneActivation = fibaro:getValue(500, "sceneActivation")
fibaro:debug("SceneActivation = "..sceneActivation.."")
fibaro:debug("Markis% = " ..match.. "")
if wind_m_s > 8 then
	fibaro:call(500, "setValue", "99");
	fibaro:call(497, "setValue", "99");
	fibaro:call(485, "setValue", "99");
	fibaro:call(491, "setValue", "99");
	fibaro:debug("Vind = "..wind_m_s.."m/s Det blåser för mycket")
    fibaro:call(515, "sendDefinedPushNotification", "447");
	fibaro:call(447, "sendDefinedPushNotification", "447");
end

if wind_m_s <= 8 then
    fibaro:sleep(25000)
	local match = tonumber(fibaro:getValue(500, "value"))
 	fibaro:debug(match)
	fibaro:call(497, "setValue", match);
	fibaro:call(485, "setValue", match);
	fibaro:call(491, "setValue", match);
end

```

please help  
kind regards  
Erik

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 17, 2024, 3:02am UTC](https://community.homey.app/t/matching-sunshades-to-same-value/108319/2 "2024-04-17T03:02:36Z")

</div>

Hello Erik!

I guess you should start with some basic flow building, while this is a bit advanced to get started @ Homey  
I could build the flow you’d like, but then you wouldn’t learn the flow building part 😊

You’ll also need to install a weather app, and/or the app matching your weather station.

Knowledge base:  
[https://support.homey.app/hc/en-us](https://support.homey.app/hc/en-us)

Adv. Flow ins / outs:

> [@\[FAQ\]\[Advanced Flow\] Infinite canvas. Infinite creativity](https://community.homey.app/t/faq-advanced-flow-infinite-canvas-infinite-creativity/65145):
>
> Something advanced is coming to Homey Pro… For the AMA [Advanced Flow — Ask Me Anything](https://community.homey.app/t/advanced-flow-ask-me-anything/65167) speech_balloon The FAQ from Athom is already on the information page on the bottom. The link should automagically switch to your language (en/nl / etc…) Read the introduction from Athom here: [Advanced Flow](https://homey.app/advanced-flow/) The EXTRA Things you can do in Advanced Flow Have multiple Triggers Have 1 (one) Start (Starting the Flow) Have Delays (0 -999 Seconds, 0-999 min.) All (function to wait for all incoming trigger…
