Page 1 of 1

Solar data to Toon without the meteradapter

Posted: Sun Mar 25, 2018 8:52 am
by BertusBeensteen
Hello everyone,

I'm trying to get my solar data into my toon.
The thing is, i don't have the right meteradapter to use zon op toon. (i have the old one with only one flame)
As of now i log the solar output in PVoutput using the inverters data, and also using an arduino running Solarmeter

So as of now i have two options:
1 Get a new meteradapter somehow (any ideas without spending 200 euros for a new toon?)
2 Getting the data from the Solarmeter (PVoutput is probbably too slow) into the toon database somehow

The solarmeter outouts its data almost instantly, getting basically all needed data for the calculation direcly from the P1 port of the meter, solar data from a S0 kwh-meter, and even water data from an optical sensor.
So everything to calculate current power usage, solar output and gas usage.

Is there a way to write this data to Toons database from the outside?
Or maby I am overlooking some very obvious solution to this "problem"?

Re: Solar data to Toon without the meteradapter

Posted: Sun Mar 25, 2018 6:19 pm
by marcelr
You could ask TerrorSource, he might have some for sale.

Re: Solar data to Toon without the meteradapter

Posted: Sun Mar 25, 2018 7:15 pm
by BertusBeensteen
marcelr wrote:You could ask TerrorSource, he might have some for sale.
I would, but unfortunately I can't send private messages yet.

Re: Solar data to Toon without the meteradapter

Posted: Sun Mar 25, 2018 7:19 pm
by marcelr
OK, I will contact him, then.

Re: Solar data to Toon without the meteradapter

Posted: Sun Mar 25, 2018 7:25 pm
by TheHogNL
This question is asked before. But for now there is no clue how to get the solar data into the Toon. The options are:
- faking a powermeter - requires zwave skills and some reverse engineering
- modifying all qmf solar/energy apps which read the solar power from another source instead of the internal one (which is rrd using bxt)

A lot of time and effort for just a screen showing your produced, used and delvered energy. Which can easily be graphed using grafana or other graphing tools as you already have that data.

Re: Solar data to Toon without the meteradapter

Posted: Sun Mar 25, 2018 8:41 pm
by marcelr
It's quite possible to write the databases with another application than toons own code. It's not so clear how this interferes with the native software, though. For now, the easiest way is to go through the native firmware, with the right metering hardware. Toonz has been playing with database copying and transcription onto another toon. In a similar way, the solar power databases might be filled, but that requires quite some effort. Haven't heard of any volunteers, yet.

Re: Solar data to Toon without the meteradapter

Posted: Mon Mar 26, 2018 11:39 am
by BertusBeensteen
There may be a way around the toon database using custom apps, but unfortunately I'm a noob when it comes to coding.

I think most of us also have some sort of smarthome device like domoticz. Maybe we can display graphs from domoticz on the toon. This may make other things easier as well. (Like adding water usage for example)
Just some food for thought I guess.

TerrorSource and I will exchange our meteradapters btw, so the issue should be resolved.

Re: Solar data to Toon without the meteradapter

Posted: Mon Jun 25, 2018 9:22 pm
by erik73
Would it be (quite) easy to connect 1 or 2 optimale readers om the adaptor and translate thuis with a toon-app ?
I just started with rp en rooted Toon, so maybe a strange question.

Re: Solar data to Toon without the meteradapter

Posted: Thu Jun 28, 2018 7:52 pm
by timkoers
EDIT:

Please check my new thread out, domoticaforum.eu/viewtopic.php?f=87& ... mp;t=12109

I've been working on some code to convert P0 data into DSMR v5.0.2

https://gist.github.com/timkoers/667563 ... 9b4bc9ddcf

Updates are needed though, since I can't confirm if it's working or not. The ESP-32, on which the code runs has got 3.3V outputs and the DSMR v5.0.2 states that a minimum of 4V is required.
I've ordered these level shifters: https://www.pololu.com/product/2595, since they are absolutely tiny and work perfectly!

Re: Solar data to Toon without the meteradapter

Posted: Mon Sep 03, 2018 9:36 pm
by Timeless
timkoers wrote:EDIT:

Please check my new thread out, domoticaforum.eu/viewtopic.php?f=87& ... mp;t=12109

I've been working on some code to convert P0 data into DSMR v5.0.2

https://gist.github.com/timkoers/667563 ... 9b4bc9ddcf

Updates are needed though, since I can't confirm if it's working or not. The ESP-32, on which the code runs has got 3.3V outputs and the DSMR v5.0.2 states that a minimum of 4V is required.
I've ordered these level shifters: https://www.pololu.com/product/2595, since they are absolutely tiny and work perfectly!
Hi, this seems like a nice feature. How are things working out with the level shifter?

Re: Solar data to Toon without the meteradapter

Posted: Thu Sep 06, 2018 6:59 pm
by madpatrick
Is it maybe possible with Domoticz?

I've Domoticz running and the info from the Solarpanel are coming in regurarly and visable in Domoticz.
Maybe this can be use in Toon and display the power collection

Image

Re: Solar data to Toon without the meteradapter

Posted: Mon Sep 10, 2018 7:48 pm
by timkoers
Hi, this seems like a nice feature. How are things working out with the level shifter?
I switched from an ESP-32 to a UART<->USB adapter. Toon shows that there is a smart meter connected, but doesn't accept the data that get's send trough. I am thinking that the Toon has somekind of list that verified the meter's serial number with the supplied model.

I'll try to debug hdvr_p1 and see in it's registers to check wherether this is true. If I can fake this in any way, I can hopefully put some data inside the Toon with my own P1 interface

Re: Solar data to Toon without the meteradapter

Posted: Mon Sep 10, 2018 8:07 pm
by TheHogNL
In qmf_release.xml there is a <uartcheck> enabled section under the hdrv_p1. Not sure what it does but maybe that is causing your issue

Re: Solar data to Toon without the meteradapter

Posted: Mon Sep 10, 2018 8:24 pm
by timkoers
TheHogNL wrote:In /qmf/etc/qmf_release.xml there is a <uartcheck> enabled section under the hdrv_p1. Not sure what it does but maybe that is causing your issue

I have it turned off now, I'll check the logs and the data flow!

I am getting the same end result, however, I can see that there are loads of more HBXT_ACTION_RESPONSE's on the HBXT_ACTION_INVOKE's.