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

If the door is open for more than YY seconds then push a notification


Question

Posted (edited)

Hi not sure what i am doing wrong but cannot get the scenes to work that If the door is open for more than YY seconds then push a notification.

I have search in the forum but not sure what am doing wrong. If a can see image and if there are any steps that the picture are not showing everything please explane.

Edited by gunnarh

5 answers to this question

Recommended Posts

  • 0
Posted

Please show us your code

  • 0
Posted
On 12/4/2020 at 11:24 PM, gunnarh said:

Hi not sure what i am doing wrong but cannot get the scenes to work that If the door is open for more than YY seconds then push a notification.

I have search in the forum but not sure what am doing wrong. If a can see image and if there are any steps that the picture are not showing everything please explane.

May I suggest to use

Please login or register to see this link.

for that, very easy and simple  implementation.

 

  • 0
Posted

Hi @cag014,

 

I have a question for you. I have a wallplug, and I need set in a global variable the energy consumption.

 

I use this line, but I think the "energy" code not use the energy consumption. I think the "energy" code = the "power" code. Using the current energy consumption, but is this = the "power" code.

What do you think about this?

 

{0, "`washingMachine`",{state="power<2",trueAct={{"Washing Machine:","sendPush","The washing machine is finished."},{"&WashingMachine","setGlobal","?&WashingMachine+@`hairStraightener`>energy?"}}}},
  • 0
Posted (edited)
1 hour ago, SmartLifeSystems said:

Hi @cag014,

 

I have a question for you. I have a wallplug, and I need set in a global variable the energy consumption.

 

I use this line, but I think the "energy" code not use the energy consumption. I think the "energy" code = the "power" code. Using the current energy consumption, but is this = the "power" code.

What do you think about this?

 

{0, "`washingMachine`",{state="power<2",trueAct={{"Washing Machine:","sendPush","The washing machine is finished."},{"&WashingMachine","setGlobal","?&WashingMachine+@`hairStraightener`>energy?"}}}},

As I understand you're trying to get the energy consumption of the washing machine cycle, right? Let me know if otherwise....

If so, you need to set the global variable to energy value at the beginning of the cycle and when it finished to get the difference. 

Currently you just add energy to energy and the number doesn't make sense.

{0, "`washingMachine`",{state="power>2",trueAct={{"Washing Machine:","sendPush","The washing machine is started."},{"&WashingMachine","setGlobal","?@`hairStraightener`>energy?"}}}},

{0, "`washingMachine`",{state="power<2",trueAct={{"Washing Machine:","sendPush","The washing machine is finished."},{"&WashingMachine","setGlobal","?@`hairStraightener`>energy - &WashingMachine?"}}}},

 

Edited by cag014
  • 0
Posted
5 hours ago, cag014 said:

As I understand you're trying to get the energy consumption of the washing machine cycle, right? Let me know if otherwise....

If so, you need to set the global variable to energy value at the beginning of the cycle and when it finished to get the difference. 

Currently you just add energy to energy and the number doesn't make sense.

{0, "`washingMachine`",{state="power>2",trueAct={{"Washing Machine:","sendPush","The washing machine is started."},{"&WashingMachine","setGlobal","?@`hairStraightener`>energy?"}}}},

{0, "`washingMachine`",{state="power<2",trueAct={{"Washing Machine:","sendPush","The washing machine is finished."},{"&WashingMachine","setGlobal","?@`hairStraightener`>energy - &WashingMachine?"}}}},

 

 

Thanks!

I will try this form.

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