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
ErnstH 3
Hi all,
I would like to display a debug message with the time of sunset + an x amount of minutes. So there needs to be a calculation.
I have a few scenes whose start is dependent of the month, turning lights on earlier or later.
My debug message should be something like "today lights will be on at 21:15". That 21:15 is the calculated time.
I have these declarations at the start of scenes:
local sunsettime = fibaro:getGlobalValue("SunsetTime");
local sunsetHour = fibaro:getValue(1,'sunsetHour')
But I can't figure out how to do this. Shouldn't be very complicated, but i'm not good in LUA programming with time.
Hope someone can help me out.
Link to comment
Share on other sites
Top Posters For This Question
25
16
6
2
Popular Days
Nov 29
11
Aug 10
9
Aug 11
7
Aug 9
7
Top Posters For This Question
10der 25 posts
theuksbest 16 posts
ErnstH 6 posts
SmartHomeEddy 2 posts
Popular Days
Nov 29 2020
11 posts
Aug 10 2020
9 posts
Aug 11 2020
7 posts
Aug 9 2020
7 posts
Popular Posts
10der
@theuksbest now some magic. find in your HC3 device with Humidity (for example) ok found! change a new icon uploading nice icon for sunset done. do not change device.
10der
Please login or register to see this image. /monthly_2020_08/image.png.bf073027e3365b33286198a3fb4d6219.png" /> Please login or register to see this attachment.
Martin_N
10der is king If the HC3 was the old fw (5.031), I couldn't change the icon for the "com.fibaro.deviceController" device (QA). After upgrading to fw 5.040, this tweak can be used. Thanks.
Posted Images
54 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.