Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Auto light in Bathroom [LUA] [READY SOLUTION]


Question

Posted

Have fun!

Please login or register to see this code.

Recommended Posts

  • 0
Posted

Hi

after reinstall my doorsensor in 4.37 i get everytime ALARM panel. 

when i open the door, wait for 15 sec and close. works great

when i open the door and closed, works great, but when i want out then it goes to the ALARM panel

 

wat must i change to wotk it again

 

thanks!

  • 0
Posted

I see lookt and lookt never see it. but found it finally.

  • 0
Posted

Have fun!

 

Please login or register to see this code.

Thanks works perfect, is it posible to put in 2 lamps in the code? Please

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

  • 0
Posted

Hello everyone!


I did not work the scene.


Forgive me for amateurish question: Do I need to be replaced   « deviceID»  in the line if (trigger['deviceID']==tostring(358)) then ?


Thank you!


  • 0
Posted

You only have to adjust the id's in the following section, rest can be as is (so do not change anything else):

Please login or register to see this code.

  • 0
Posted
Nothing happens. Help! I do everything as written, but the debugger reports:

Kill second scene!

Help the confused please ....

  • 0
Posted

Hi. How is possible to set the scene upstairs functioning only with a variable as sunset on?

Where is the line in lua you put new instruction?

Sorry for my ignorance...but lua is a problem for me

Please login or register to see this image.

/emoticons/default_icon_rolleyes.gif" alt=":roll:" />

 

Thank you

  • 0
Posted

I got this code for long time without any problems on 4.080

but with my parents HC2 and 4.081 nothing worked anymore.

now on 4.082 the scene only works as a light on (door sensor open) light off  (door closed) mode

 

any idea's ?

Please login or register to see this code.

  • 0
Posted

fibaro:call(lightID, 'turnOn');

fibaro:call(doorID, 'setArmed', '1');

fibaro:call(doorID, 'setArmed', '0');

-->> fibaro:debug('Light on!');

end

Replace with

fibaro:call(lightID, 'turnOn');

fibaro:call(doorID, 'forceArm', '1');

fibaro:call(doorID, 'setArmed', '0');

-->> fibaro:debug('Light on!');

end

  • 0
Posted

made the changes test the scene and works fine again..

Thank you Kage!

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...