I was trying to create a scene to receive a notification when the washing machine has finished washing, using the consumption measurement of an S60 plug. However, as during the wash cycle, in some periods, the consumption measurement is zero even though the cycle hasn’t finished yet, I needed to use the consumption being zero for a period of 60 seconds (for example) as a condition.
In the SmartThings app I have the option ‘when this condition remains met for X seconds’, but in the Ewelink app I don’t think I have a similar option.
I think it would be a very useful…
By the way, I’d like to point out that in SmartThings the S60 plug only shows the status (on or off) but not the consumption.
Have you installed the Node Red docker on the iHost? Pretty sure one of the outputs has a power output. You could either then integrate the power over time and get energy but it’d be simpler just download a rolling average node palette. You could then, for example, only do X if the average for the last minute is less than 5W.
Yup, was on node red… there was no option to check power status on ewelink nodes. (this was month ago, so not sure changed). That is first place where i checked as i need to get pump switched off when power is below threshold (means lost prime).
ihost at this point in time is pretty useless for basic home automation. so many hacks/work arounds to get basics done . and then fact you cannot see anything from your phone as web interface is not even mobile ready makes it even more useless.
think time they opensource the ihost software and get community to get things on track.
rant over
Select the device with a device output node, output “all” and put a debug node behind it. I bet some outputs include a power reading. If it does then just try one of these nodes: node-red-contrib-time-moving-average (node) - Node-RED
Just had a look in Home Assistant at the Sonoff Integration. The R2 output there does have a power entity. Installing Home Assistant in a docker on the iHost to run the Sonoff integration and send yourself back the Power using MQTT seems a bit OTT but is likely possible. I’ve never put HA in a docker but I’m pretty sure you can install integrations but not add ons.
Thaks… figured out event-state cube node has the info … why in world call it event state… but anyway.
no way i’m installing homeassistant ontop of everything where this funciton should be build in. why the split from ewelink… don’t make anysense… ewelink works so well.
i’ve learned after running home automation for 14 years that the simpler the better as after 2-3 years you have no idea anymore what is doing what anymore. so now to have some rules in node-red … some in HA… some in cube… some in ewelink aint gonna work
anyway… this gone way of topic. sorry for the hijack.
I agree with you…but up to a point as everything depends on what you are trying to achieve. Personally I use Smartthings for 75% of my automations, so easy to set up and simple to modify on my phone, although I understand that everyone will have their own preferences here.
The problem comes when neither the devices are available or the protocols are common, which is where node-red comes into its own, and as far as I can see is the ideal tool for the IHost. Just an opinion.