Jump to content
  • 0

Question

Hello,

 

ive got a question to HC2 and Triggers...

 

I would like to set up a scene like this: if the motion detector trips between 5 a.m. and 6 a.m., the shutters should open. Is that possible in the HC2?

I cant find this trigger. In HC3 is this time trigger... can help me someone or do I have to buy the HC3 because of that???

 

Thanks for answers

 

Tschorden

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You can create block scene like this:

image.png.21cf5acc130bd371a993b2b3c56b54ce.png

 

Or create a Lua scene manually like:

--[[
%% autostart
%% properties
138 value   -- your PIR device ID as scene triggering device 
%% weather
%% events
%% globals
--]]

local sourceTrigger = fibaro:getSourceTrigger();
local currentTime = tonumber(os.date("%H%M"));
if ((currentTime >= 500 and currentTime <= 600
		and tonumber(fibaro:getValue(138, "value")) > 0)
  	or sourceTrigger["type"] == "other")
then
	fibaro:call(90, "turnOn"); -- here should be call(s) to the roller shutter(s) - use your device ID with action name
end

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...