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

TV power consumption > 10 watt > e-mail notification


Question

Posted

Hello everybody,

I created a new scene for testing which should send me an email if the power consumption is > 10 watt. In this case I used the wall plug from Fibaro.

I have two issue for which I have no answer.

A)

I received not only one mail if TV has been switched on. I receive dozens and more.

Please login or register to see this image.

/emoticons/default_icon_sad.gif" alt=":-(" />

B) based on the attached screen shot I would like to know where in the settings of HC2 I can change the information marked in the red box.

Obviously I typed at the beginning of setting up the Zwave enviroment (6 months ago) something like "Rasensprenger an" -> "sprinkler on" but I don't know where to change this wording and/or to insert new "phrases".

Furthermore pls. find below the LUA code, although I solely work with the graphic.

--[[

%% properties

10 valueSensor

%% globals

--]]

local startSource = fibaro:getSourceTrigger();

if (

( tonumber(fibaro:getValue(10, "valueSensor")) >= 10 )

or

startSource["type"] == "other"

)

then

fibaro:call(2, "sendDefinedEmailNotification", "1");

end

I would be happy if someone can help me.

Best,

MagicT

Please login or register to see this attachment.

6 answers to this question

Recommended Posts

  • 0
Posted
Hello everybody,

B) based on the attached screen shot I would like to know where in the settings of HC2 I can change the information marked in the red box.

Obviously I typed at the beginning of setting up the Zwave enviroment (6 months ago) something like "Rasensprenger an" -> "sprinkler on" but I don't know where to change this wording and/or to insert new "phrases".

Check this:

click on the puzzle tile (Panels), then click on "Notifications Panel". On the left (at the top) you find the "Notification List". There you can find all configured messages - you can edit them, or delete, or create a new on.

z-Tom

  • 0
  • Inquirer
  • Posted

    Many thanks z-Tom,

    I inserted new messages. So problem B) has been solved.

    Has someone an idea what I have to change regarding the multiple messages I receive per email from the HC 2, see my scene and LUA code, which I posted unter A).

    Best,

    MagicT

    • 0
    Posted

    I received not only one mail if TV has been switched on. I receive dozens and more.

    Please login or register to see this image.

    /emoticons/default_icon_sad.gif" alt=":-(" />

    Try this :

    - disconnect the TV from the plug

    - set the level of power consumption to 1 (yes, one).

    Wait. Get you an email ? I think no. Plug the TV in the plug. Wait. Get you an email ? I hope no,too

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" /> .

    Switch the TV on. Wait. Comes one email ? Or more ?

    Maybe the power consumption goes up and down and the Scene is due this often triggered - and than you get a lot of emails.

    z-Tom

    EDIT : An other idea : Try an old bulb (lamp) instead of the TV. What happens ?

    • 0
    Posted

    Probably the power consumption varies over time.

    You should have a variable like "powerTV", if the power consumption rises above for example 1 and powerTV is 0, send a notification and set powerTV to 1.

    Have another scene that checks if power consumption is < 1 and if powerTV is 1, change it back to 0.

    • 0
    Posted
    Probably the power consumption varies over time.

    You should have a variable like "powerTV", if the power consumption rises above for example 1 and powerTV is 0, send a notification and set powerTV to 1.

    Have another scene that checks if power consumption is < 1 and if powerTV is 1, change it back to 0.

    I have a similar problem aswell. I have created a scene for sending a push notification every time my washing machine is finished. Found out that it pulls 5 watts when it is finished and in standby.

    I created a scene with if <5 w then send push.

    Only problem is I get 10 or more notifications as long as the consumption is lower than 5. Tried making one with =<5 but the consumption is not that stable.

    Can anybody assist?

    • 0
    Guest pablotibis
    Posted

    hello, this is my scene below and to find out when the washing machine has finished, there are 3 variables to be entered in order to know if the machine is playing, stop and if I have already sent the push, because if not, sends push all the time.

    I control that if the watts are> 500 then the washing machine is accessa and if after drops below 3w then it means that it is turned off.

    --[[

    %% properties

    18 valueSensor

    %% globals

    --]]

    -- Cambiare id 18 per il dispositivo da monitorare

    local currentDate = os.date("*t");

    local power = fibaro:getValue(18, "valueSensor") -- unità da monitorare

    local LavaOn = "LavaInEsecuzione" -- creare la variabile LavaInEsecuzione

    local LavaFerma = "LavaFerma" -- create a variable with name LavaFerma

    local push = "LavaPush" -- variable for push

    fibaro:debug("HC2 wash script stated: " .. os.date());

    fibaro:debug("Consumption="..power.." Watt")

    if (tonumber(power) > 500) then -- change to wanted value in watt

    fibaro:setGlobal(LavaOn, "1") -- sets variable to 1 if machine is running

    fibaro:setGlobal(LavaFerma, "0") -- sets variable LavaFerma to 0

    fibaro:setGlobal(push, "0") -- sets variable push to 0

    fibaro:debug("Lavatrice funzionando") -- lite debug text

    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" />

    elseif (tonumber(power) < 3) then

    fibaro:debug("Lavatrice non sta funzionando.")

    fibaro:setGlobal(LavaOn, "0")

    fibaro:setGlobal(LavaFerma, "1") -- Lavaggio completo!

    end

    if (tonumber(power) < 3) and fibaro:getGlobalValue(LavaFerma) == "1" and fibaro:getGlobalValue(push) == "0" then

    fibaro:setGlobal(push, "1")

    fibaro:debug("Send push message")

    fibaro:call(47, "sendPush", "La lavatrice ha finito alle: " .. string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min));

    end

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