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
Guest Bastian
Hi,
i connect a level tank sensor (Aqua Plomb from vegetronix) to an RGBW2 plug and measure my water level in a rain tank. The modul (ID780) shows the right % of fill level (94,4 % , 90 %,....) in Fibaro HC2.
Now i want to create a scene which will give me push notification when the water level will decrease under 20 % of tank level.
But every time the sensor is triggered i get an an push notification. No matter if the fill level is under 20 % or over 20%. E.g. at 94 % fill level i get a notification of "Tank level low"....
I wonder if i do anything wrong or why i cannot run the scene with ther %-values. Could be the problem that the scene cannnot use the "%-Value" ? Do i have to transform the %-value first to something else? Or can the scene only run by using the corresponding voltage value (like 20 % = 3 V and 90 % = 7 V) ?
The simple code i tried:
--[[
%% autostart
%% properties
780 value
%% weather
%% events
%% globals
--]]
if ( tonumber(fibaro:getValue(780, "value")) < 20 )
then
fibaro:call(398, "sendDefinedPushNotification", "15");
end
Link to comment
Share on other sites
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.