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

Washing Machine and dryer control


elev8john

Question

Hi Guys,

 

I want to use a  FGS211 relay on the wall socket that the washing machine is plugged into. When the machine cycle has stopped I want to set up a scene to monitor the  FGS211 and if the power usage drops below a certain level ( I will measure working and standby power draw to find this out) then I want HC2 to send an SMS or push to notify me.

 

Will the  FGS211 be able to be interrogated this way?

 

Has anyone got a scene LUA code already to save me some heart ache please?

 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Have fun

Please login or register to see this image.

/emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

 

Please login or register to see this link.

Link to comment
Share on other sites

  • 0

does the FGS211 have energy consumption measurement? If not you could use a wall plug.

 

here is my scene:

 

 

--[[
%% properties
909 power
%% globals
--]]

-- create a 'AGD_Wash' variable with 3 values = OFF, ON, READY   
-- check if Scene started more then one time

fibaro:debug("-- SCENE START --")
fibaro:debug("-- Scene Instance: "..fibaro:countScenes())
if fibaro:countScenes() > 1 then
fibaro:debug("--SCENE ABORT - too many instances --")
fibaro:abort()
end

-----------------------------------------------------------------
local WPS = tonumber(fibaro:getValue(909, "power")) -- (change to your ID)
local WS = fibaro:getGlobalValue("AGD_Wash")
local TS = tonumber (fibaro:getModificationTime(909, "power")) -- (change to your ID)
local TDS = tonumber (os.time()) - TS
-----------------------------------------------------------------
fibaro:debug ("AGD_Wash ="..WS)
fibaro:debug("power = "..WPS);
fibaro:debug ("time = "..TDS)
-----------------------------------------------------------------

if WPS == 0  and WS == "OFF"
then
  fibaro:debug("abort")
  fibaro:abort()
end

-----------------------------------------------------------------

if WPS > 200 and WS == "OFF" or WPS > 200 and WS == "READY"
then
  fibaro:setGlobal("AGD_Wash", "ON")
  fibaro:debug("Applience is ON");
  fibaro:call(693, "turnOff")
end

------------------------------------------------------
if WPS < 10 and WPS > 0 and WS == "ON"
  then
  fibaro:sleep (120*1000)
  fibaro:debug ("sleep")
if tonumber(fibaro:getValue(909, "power")) < 10 and WS == "ON" -- check if WPS is stable < 10W
then
    fibaro:debug("Applience Ready");
    fibaro:setGlobal("AGD_Wash", "READY")
    fibaro:call(913, "sendDefinedPushNotification", "3"); -- push to mobile1
fibaro:call(835, "sendDefinedPushNotification", "3"); -- push to mobile2
    fibaro:call(693, "startProgram", "751");    -- RGB-Ligth flashing green
fibaro:call(469, "pressButton", "4");      -- voice command
fibaro:call(469, "pressButton", "5");      -- voice command

end
end

--------------------------------- waiting for switch off
if  WPS == 0 and WS == "READY"
then
fibaro:debug("-- turn OFF --")
fibaro:setGlobal("AGD_Wash", "OFF");
fibaro:call(693, "turnOff")                         -- flashing RGB off
fibaro:call(810, "pressButton", "1")           -- tone signal
end

Link to comment
Share on other sites

  • 0

Many questions already asked here. If you did a search, you already could have used it

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

Please login or register to see this link.

Link to comment
Share on other sites

  • 0

HC3

Please login or register to see this attachment.

 

Please login or register to see this attachment.

 

DeviceID is plug

 

if you want to announce washer actions:

 

scene (left)

Please login or register to see this code.

 

 

(right)

 

Please login or register to see this code.

 

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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