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

Question
Morcegolas 6
Hi guys, I'm trying to do a scene that checks my bedroom plug, and when I turn it on ( because its an extension and have a power button ), it consumes about 0.5W only with the charges connected and without the phone / tablet and watch connected to it. When I connect everything to the charger it goes up to 10W.
So, when I turn on my extension I receive a push notification where I can activate Goodnight Scene that turns off everything and turns on the alarm.
Can I optimise this code?
Please login or register to see this code.
I'll add another condition that checks it the global variable Day/Night is Night, to run the script only at night. I'm not a programmer, so I don't know if its OK to use that sleep times so big.
Thanks.
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.