Hi Rob, I find it very complicated. Simply reading the meter's serial output and then extracting the value you need is much simpler, I think. That's how I've done it in the JAL so far. 1-3:0.2.8(50) 0-0:1.0.0(251013214826S) 0-0:96.1.1(4530303534303038343333303438393231) 1-0:1.8.1(003505.464*kWh) 1-0:1.8.2(004850.441*kWh) 1-0:2.8.1(003691.113*kWh) 1-0:2.8.2(008114.333*kWh) 0-0:96.14.0(0002) 1-0:1.7.0(00.301*kW) -<------------------IN----------------- 1-0:2.7.0(00.000*kW)--<-------------------UIT----------------- 0-0:96.7.21(00006) 0-0:96.7.9(00003) 1-0:99.97.0() 1-0:32.32.0(00006) 1-0:52.32.0(00007) 1-0:72.32.0(00011) 1-0:32.36.0(00001) 1-0:52.36.0(00001) 1-0:72.36.0(00001) 0-0:96.13.0() 1-0:32.7.0(231.5*V) 1-0:52.7.0(232.0*V) 1-0:72.7.0(233.1*V) 1-0:31.7.0(000*A) 1-0:51.7.0(000*A) 1-0:71.7.0(001*A) 1-0:21.7.0(00.000*kW) 1-0:41.7.0(00.023*kW) 1-0:61.7.0(00.277*kW) 1-0:22.7.0(00.000*kW) 1-0:42.7.0(00.000*kW) 1-0:62.7.0(00.000*kW) 0-1:24.1.0(003) 0-1:96.1.0(4730303339303031373535323132363137) 0-1:24.2.1(251013214504S)(10062.722*m3) Op maandag 13 oktober 2025 om 19:11:08 UTC+2 schreef Rob CJ:
> Hi Hans, > > It does not look exactly like JSON but I do not know if there are > variants. This is one line of more than 1000 characters. You can parse that > realtime and if that is not possible you have to store it in data memory > first. > > Kind regards, > > Rob > > ------------------------------ > *Van:* [email protected] <[email protected]> namens Hans van > Veldhuizen <[email protected]> > *Verzonden:* maandag 13 oktober 2025 15:30 > > *Aan:* jallib <[email protected]> > *Onderwerp:* Re: [jallib] Re: D1 Mini V3.0.0 > Hi Rob, > The message from the p1 dongle is indeed json based : > {"wifi_ssid":"ASUS","wifi_strength":80,"smr_version":50,"meter_model":"ISKRA > 2M550T-1013","unique_id":"4530303534303038343333303438393231","active_tariff":2,"total_power_import_kwh":8353.246,"total_power_import_t1_kwh":3505.464,"total_power_import_t2_kwh":4847.782,"total_power_export_kwh":11805.408,"total_power_export_t1_kwh":3691.113,"total_power_export_t2_kwh":8114.295,"active_power_w":-109,"active_power_l1_w":0,"active_power_l2_w":-177,"active_power_l3_w":305,"active_voltage_l1_v":231.6,"active_voltage_l2_v":231.3,"active_voltage_l3_v":231.9,"active_current_a":2.08,"active_current_l1_a":0,"active_current_l2_a":-0.765,"active_current_l3_a":1.315,"voltage_sag_l1_count":6,"voltage_sag_l2_count":7,"voltage_sag_l3_count":11,"voltage_swell_l1_count":1,"voltage_swell_l2_count":1,"voltage_swell_l3_count":1,"any_power_fail_count":6,"long_power_fail_count":3,"total_gas_m3":10062.613,"gas_timestamp":251013152507,"gas_unique_id":"4730303339303031373535323132363137","external":[{"unique_id":"4730303339303031373535323132363137","type":"gas_meter","timestamp":251013152507,"value":10062.613,"unit":"m3"}]} > > Op zondag 12 oktober 2025 om 19:46:55 UTC+2 schreef Hans van Veldhuizen: > > Hi Rob, > No problem. I have my well-functioning PIC project with a wired connection > to the battery charger, and I can then use that to apply the partial > charge. > Connecting it to the D1 was a laborious (but instructive) adventure of > patching and trial and error. > So, for me, the only profit would be replacing the wires with Wi-Fi. > As my wife keeps saying, "You're still having fun with it," so, well, give > me the JAL anyway. > Best, > Hans > > Op zondag 12 oktober 2025 om 17:18:54 UTC+2 schreef Rob CJ: > > Hi Hans, > > I cannot follow the program completely but that may be because I do not > know what Homewizard needs and returns. > > Note that the Arduino program is using a JSON library. There is no JSON > library for JAL (yet). Not sure how often such a library would be used. > > Kind regards, > > Rob > > ------------------------------ > *Van:* [email protected] <[email protected]> namens Hans van > Veldhuizen <[email protected]> > *Verzonden:* zondag 12 oktober 2025 15:18 > > *Aan:* jallib <[email protected]> > *Onderwerp:* Re: [jallib] Re: D1 Mini V3.0.0 > For the other JAL dropouts here is the Arduino program that I modified > with the help of the willing maker > > Op zondag 12 oktober 2025 om 15:00:07 UTC+2 schreef Hans van Veldhuizen: > > Hi Rob, > Correct, I'll see what I can do with your instructions. > I'll try to explain it. > I currently have a PIC package that reads the smart meter and records how > much is input (IN) or output (OUT). > I use two potentiometers to set an ON and OFF value. It then switches a > relay on via a wire when the OUT value is greater than the ON value and > stays that way until the IN value is greater than the OFF value.[image: > 20250325_122333[1].jpg] > I can now replace the wire with the Arduino D1 mini and a Homewizard > socket because I also have a Homewizard dongle in my smart meter. Besides > reading and forwarding the on/off commands from the PIC, the D1 mini also > sends back the socket status. > Why I'm being so difficult (besides the fact that it's an incurable > deviation of mine) is because the Homewizard system turns the socket ON > when there is a minimum feed-in value, but always turns the socket OFF when > there is no more feed-in. I've asked them many times to adjust that, but > they refuse. > With my approach, I accept a partial load. > For example, the panels have a surplus of 1 kW and the charger has a > capacity of 2 kW. Therefore, the HW will constantly switch on and off. Now, > mine will accept a 1 kW supply from the grid before switching off. So, > winter situation. > > Op zondag 12 oktober 2025 om 13:04:36 UTC+2 schreef Rob CJ: > > Hi Hans, > > If I am correct you want to control a Homewizard device for which you need > a Wifi connection using an ESP8266, right? > > in 2019 I made a library for the ESP8266. What needs to be done is that > you - after the module is connected to the Wifi - send data via the serial > interface tot the ESP8266 which then sends it to your HomeWizard device via > Wifi. > > Without looking at this in detail I think it should be possible using this > JAL library. > > Kind regards, > > Rob > > > ------------------------------ > *Van:* [email protected] <[email protected]> namens Hans van > Veldhuizen <[email protected]> > *Verzonden:* zondag 12 oktober 2025 08:26 > *Aan:* jallib <[email protected]> > *Onderwerp:* Re: [jallib] Re: D1 Mini V3.0.0 > > Hello everyone, > I've deleted my previous message because I've found the creator of this > program willing to help me. It's working properly now. > With the PIC, I can now send ON/OFF commands, and if the sockets respond > correctly, I get the message back that I can read with the PIC. A truly > perfectly working package!!!!! > The world of Arduino remains a stumbling block for me, no matter how > simple it should be according to the experts. I'm therefore surprised this > thing cannot be implemented in the PIC/JAL world. If anyone is interested > in delving into this, I have a PCB lying around that I'd be happy to send > to you. > Greetings Hans > https://github.com/gtmans/homewizard > <https://github.com/gtmans/homewizard/blob/main/socketswitch/ApiSwitchDual-D1-git.ino> > > Op vrijdag 26 september 2025 om 21:49:21 UTC+2 schreef Hans van Veldhuizen: > > Hi Vasi, > Wow, what a fantastic package! Very clever, and it's just missing the > little bit I need! Too bad, but maybe someone else knows. > By the way, I have a few UNOs here that I occasionally use to try out a > program from the internet. > But often, it doesn't work. > > On Wednesday, I linked a program for the D1 mini V3 I ordered; let's hope > it works. Then I can use a PIC instead of the pushbuttons and continue. > > > https://github.com/gtmans/homewizard/blob/main/socketswitch/ApiSwitchDual-D1-git.ino > > Thanks for your reply and regards, > Hans > > Op vrijdag 26 september 2025 om 17:31:52 UTC+2 schreef vasi vasi: > > Hi Hans, > > Unfortunately, my knowledge does not contain the required information. > Many times ago I developed my own CMS (content manager system or blog) > written in PHP language and using a MySQL database, then later developed > some plug-ins for the sNewsCMS (porting also some Wordpress plugins for the > same system) but after a couple of years I got bored and decided that > further web programming is not something satisfying enough - that time, my > access to Internet was limited and expensive. I went back to PC programming > in other languages and then entered in the embedded world. Now I > gather/realize projects with ATmega micros in C, Wiring, LunaAVR and > GCBasic (maybe even FreePascal, not decided yet) languages for a book. > Probably, next is PICO, exactly what I recommended to you... Circuit Python > and Micro Python are unknown to me for now. I could go with C or FreePascal > but a future book is the main target. > > On Fri, Sep 26, 2025 at 5:49 PM Hans van Veldhuizen <[email protected]> > wrote: > > HELLO Vasil, > > If I were 30 years younger, I would definitely embrace your proposal. > Unfortunately, there are limits. > > Another question that you, with all your knowledge, can surely answer. > > When I open this on my PC, I get the correct data response from the > Homewizard socket. > > http://<IP ADDRESS>/api/v1/data > > also http://<IP ADDRESS>/api/v1/state gives the correct answer > > The instruction I used also tells me how to get it to "ÖN", but I can't > get it to work in a single line on my PC. > > http://<IP ADDRESS>/api/v1/state\ > > -X PUT\ > > -H "Content-Type: application/json"\ > > -d '{"power_on": true}' > > > > Perhaps you can do that and would like to tell me. > > Thanks in advance. > > Regards Hans > > Op vrijdag 26 september 2025 om 12:20:08 UTC+2 schreef vasi vasi: > > Hans, > > It will be much easier for you to learn CircuitPython and use a Raspberry > Pi Pico board with WiFi support than torture yourself with Jal and PIC... > Then, along the way, you can migrate to MicroPython for complete freedom > and a plus of performance. > > I think this is the best long term solution for Jal users that cannot > learn C/C++/Wiring. I thought and searched for solutions and there is no > other solution better than this. There is FreePascal for Pico boards but it > has so limited support that you cannot call that a solution. > > If you cannot enter in the wonderful world of craftsmen using Arduino, > then skip it altogether for the next world that uses PICO boards with > CircuitPython. That is the future you are about to miss if chose not to > act. > > > https://learn.adafruit.com/networking-in-circuitpython/networking-with-the-wifi-module > > https://docs.circuitpython.org/en/latest/shared-bindings/wifi/index.html > > Ask ChatGPT to translate that source you linked to, into CircuitPython > source. See if it is easier for you to understand and use. Act accordingly. > > > On Thu, Sep 25, 2025 at 10:28 PM Hans van Veldhuizen < > [email protected]> wrote: > > I found something I'd like to make but that's arduino again; > > https://github.com/gtmans/homewizard/blob/main/socketswitch/ApiSwitchDual-D1-git.ino > > Op woensdag 24 september 2025 om 18:19:54 UTC+2 schreef Hans van > Veldhuizen: > > Hi everyone, > Has anyone done anything with the D1 Mini V3.0.0 yet? > I found a lot of writing about the WEMOS D1 Mini V3.0.0, but that was all > in the Arduino world. This thing should also work with AT commands. > Curious! > Regards, > Hans > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/jallib/d95b7f66-0a43-4bfd-bfa2-e054a1d028b9n%40googlegroups.com > > <https://groups.google.com/d/msgid/jallib/d95b7f66-0a43-4bfd-bfa2-e054a1d028b9n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > > -- > Vasi > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > To view this discussion visit > https://groups.google.com/d/msgid/jallib/934b98bb-3fa0-48c5-936d-9a14b850e81en%40googlegroups.com > > <https://groups.google.com/d/msgid/jallib/934b98bb-3fa0-48c5-936d-9a14b850e81en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > > -- > Vasi > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/jallib/8375c678-41b8-4472-a4e1-d16d63e86e1dn%40googlegroups.com > > <https://groups.google.com/d/msgid/jallib/8375c678-41b8-4472-a4e1-d16d63e86e1dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/jallib/49b415e8-4ff1-499b-9e19-424d31a102f5n%40googlegroups.com > > <https://groups.google.com/d/msgid/jallib/49b415e8-4ff1-499b-9e19-424d31a102f5n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/jallib/24cc845d-adc4-4f18-a863-7299b0f86e16n%40googlegroups.com > > <https://groups.google.com/d/msgid/jallib/24cc845d-adc4-4f18-a863-7299b0f86e16n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/jallib/6c44b22e-5b49-4653-b3fd-18a2fbb20896n%40googlegroups.com.
