Dear forum,
These might be newbie questions, but after 2 afternoons of searching, I am reaching out to the more experienced users.
I bought 2 smart WiFi plugs with an energy meter (Silvergear). I managed to open them up without damage and was able to flash the chip with openbeken or openbkt.
Some info:
BK7231N on a CB2S module
BL0937 = energy meter chip
The smart plug is pretty unknown, CLY802M-GE.
The 1st 'issue': LED indicator.
Everything seems to be functional. I can switch the relay on and off, and it gives me energy statistics. When plugging the device into the mains voltage, the indicator LED (under the button) flashes a few times, probably to indicate a WiFi exchange or startup. However, when the relay is switched on, I'd like the LED to also switch on and vice versa. At this moment, the indicator LED stays off all the time except for the startup flashing. This should be fairly simple, I guess, but I did not find any solution so far (and yes, I did extensive searches...). The LED pin is connected to the RX pin on the BK7231N and is currently assigned as 'WifiLed'.
2nd question: I already have a lot of IoT going on in my house; however, these are all running on ESP8266 with self-written software (as I was not aware of home automation software at the time I wrote it). I'd like to take little steps in the migration of my IoT devices. I managed to power on/off the smart plug through a GET command in a browser, e.g.
http://192.168.1.7/cm?cmnd=power%20on
This is exactly what I want. However, I did not find any command to switch the indicator LED, nor did I find any command to read the energy statistics from the smart plug. I did find the command list from both Tasmota and Openbeken, but most of the commands do nothing.
When I search for examples, the only one I find is the http://IP/cm?cmnd=power%20on. Ok, that one works, but so far, any other command results in no answer. Only SSID1 gave me a result.
You probably will now point me in the direction of MQTT, but I'd like to take little steps.
The 'function' I have in mind for this smart plug is to switch on my 10-liter water heater in the kitchen whenever I have enough solar power during the day. I already installed an IoT computer that measures the energy/power usage and PV solar panels. It would be quite easy to add a few lines to control this smart plug (curl).
Hope you can help. Thanks,
Arjen