• Professional advice
  • Order before 23.59 uur shipped today
  • Almost always available (+31 73 762 0 762)
  • Monday open late

Make your device smart

Make your device smart with a wallplug

Maak ieder apparaat slim

 

How cool, recieve a message when your dishwasher or washmachine is ready. The latest generation comes with options like tihis, but what if your dishwasher doesnt and it still works well? Than you read this project and create a smart dishwasher or smart wasmachine.

 

What do you need
- A Z-wave controller (with a programming editor)
- A smart wallplug with powermetering
- A device like a dishwasher as project
- A message service (Like the buildin message service of the HC2 or via Pushover of Prowl)

Let's start.
It's actually very simple. There are multiple ways to Rome, but we choose to do it like this. We mainly want to inspire you. We're going to make a scene that runs every x minutes and looks at the power consumption of the last measurement. We do this so we can see if it is the first time that power consumption 0 (or standby use). So we avoid getting too many messages every time the power is 0.

 

Step 1 :
Put the wallplug between the outlet and the device  (i.e washing machine). The wallplug needs to be integrated in the home controller.

Step 2:
Make a variable that can contain the value of the last measured power. In this case LastPower.

Step 3:
The LUA code differs obviously a controller but is the idea.
Let a scene walk every x minutes (with us 1 minute). Read the value of the Last Power variable (which will set at the beginning of the scene on the current consumption, and be saved at the end of the scene.
This variable we use to determine if the last flow direction> 10 watts is (theoretically this could also be 0watt). If the previous measurement was in fact higher than the standby consumption than the machine was still working, and if the current consumption is equal to the standby consumption, this is the first time the scene is running while the device is ready. Otherwise, we continue to receive a message every minute. In the example we assume that 10 watts in standby value.

  

The Lua code

--[[
%% autostart
%% properties
%% globals
--]]
local sourceTrigger = fibaro:getSourceTrigger();

-- This is the funtion that will be triggered later
-- The scene will run every minute
function tempFunc()
local startSource = fibaro:getSourceTrigger();
if ( ( (math.floor(os.time()/60)-math.floor(1472556360/60))%1 == 0 )) then
    --Readout of the previous power consumption
    local LaatstePower = tonumber(fibaro:getGlobalValue("LastWattVaatwas"))  
    if LaatstePower > 10 and tonumber(fibaro:getValue(586, "power")) <10 then
        -- Next lines are for sending a message via Pushover.
       local dvc ="iPhone_User"
       local prio ="0"
       local ttl ="Vaatwasser klaar"
       local msg ="U kunt de vaatwasser uitruimen"
       local requestBody ='&device='..dvc ..'&priority='..prio ..'&title='..ttl ..'&message='..msg
       fibaro:setGlobal("pushoverBody", requestBody)
       -- end of message server
    end 
    -- Store the value of the actual power for next cyclus
        fibaro:setGlobal("LastWattPrinter", fibaro:getValue(586, "power"))   --save actuel poweruse
   end
   setTimeout(tempFunc, 60*1000)
end

-- This makes the scene run
if (sourceTrigger["type"] == "autostart") then
   tempFunc()
end

 

Please sent us your input.

 

 

 

 

 

 

 

 

 

8 Result(s)

Why ROBBshop?

  • 14 day return policy
  • Reach us Almost always
  • Ordered before 23:59 shipped today
  • Over 2500 positive reviews
  • Standard 2 year warranty
  • Call us at +31737620762
8 Result(s)
 
Customer Service Phone

+31737620762
mon-fri: 10am-5pm and sat 10am-3pm

 
Adress

Gerstakker 16 5236 VG Empel Netherlands

Google maps