I'm not sure I follow. How are you detecting the wattage usage change? Or are you using another means of detecting a toggle switch position?
I was replying to this “cloud” part of the discussion not the edge device for current detection. I don’t use those frameworks and I can be totally portable with a network not even connected to the cloud.
Ah. Yeah. I would prefer to not have to go outside my network for the currant outlet. What the support guy told me is that they have a local network mechanism (at least for the notifications to my phone, which appears to be failing), but unless I reverse engineer that communication, those external integrations are the only way to get into node red.
I'd prefer to have a solution that doesn't involve getting into the wiring or adding another system, but I may need to break down and add something like a 433 or z-wave hub. And if I do that, I'm going to need to get another Pi. Mine's overloaded as it is.
Not sure what country you are in - but does not really matter - as these devices are ubiqituous - In Australia (e.g.e) Kogan sell a smart plug that has energy monitoring built in - this can be flashed OTA with Tuya to run Tasmota. You can then use the Tasmota rules engine to act on Power events etc.
I have 7 of these around the house for various things - some of them i use the rules engine - others just communicate to NR through MQTT and i act on power events through NR
Yeah, I just ordered a pair of Sonoff S31's and an adapter to be able to flash them with Tasmota. I learned about the rules. What does "flashed OTA with Tuya" mean? Is TUYA a program used to do the flashing once I've connected the smart plug to my mac using the adapter? Is there a way to do it without soldering (which is my plan)?
Incidentally, I have an update on the Currant outlet...
The engineering folks have been inspecting my logs with a debug version of their firmware I let them install. They found a bug in some header reading component. The code is supposed to detect bad bits in the header and map around them, but apparently, there was a bug for certain routines that just caused it to hang. The batch process code however didn't have the bug, which is why I was seeing things work with a long lag. They uploaded a new version of the firmware and the bug is now fixed. I now see my wattage threshold notifications within 2 seconds of flipping my wall switch.
They also, scanned their other customers and found 59 others who had evidence of the bug combined with bad bits in the "headers" and they're going to roll out an update.
So I looked into SmartThings, since the SmartThings wattage threshold trigger is now fast, but unless I write a "smartApp" (which seems insane), I would have to add my other smart plugs to SmartThings. I looked, and my 5 WeMo plugs are supported, but for some reason, they require me to have a WeMo hub to add them to SmartThings.
So I think that if I can get the flashed Sonoff plugs to work for me, I'll likely return the Currant.
Flashed OTA with Tuya - means that you do not need to open up the plugs - they use a chip known as TUYA - to there is a conversion program called Tuya Convert - quite easy to run on a Rpi (or a docker image which is how i do it)
Basically when the Smart plug first starts up there is a method to put it into flashing mode and you then do it all Over The Air (OTA), no need for cables or to open the devices .
Do the S31's do Energy monitoring ? I did not think they did (but have not checked or used them)