Resol DL2 Datalogger(Vbus)

For heating/cooling related questions in Domoticz

Moderator: leecollings

MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

Hi Everybody,

After lurking for quite some time, I decided to register an account and share my newly created script for reading the values out of my solar collector.
I installed a solar collector set this week. The pump is controlled by a Resol DeltaSol® CS Plus http://www.resol.de/index/produktdetail ... sprache/en and I bought a Resol DL2 Datalogger http://www.resol.de/index/produktdetail ... sprache/en

The Datalogger has some nice features to read the current values, save historic values and post them to the VBus.net site.
I wanted to add those values to my domoticz system, so I wrote a Lua to get the values and update my sensors.

As I am fairly new to LUA and JSON, I had some trouble getting the right values from the JSON to the Lua Table and into Variables.
My Solution: Uncomment the print_r on row 71. This will print a nice table in your log, showing the complete table created from the JSON. From there you can find the associated indexes for the values you require.

Create the Dummy sensors you need, in my case "TempCollector", "TempBoilerTop", "TempBoilerBottom", "CurrentPumpSpeed", "TotalPumpTime".
Note their IDX's and add them to the script.

You will need the json.lua from http://regex.info/blog/lua/json. In my case it is in "/home/pi/domoticz/scripts/lua/". Change the path in row 52 for your location.

Important: I configured my DL2 to allow the guest user (unauthenticated) to read live data. If you don't, you have to add the "...live?sessionAuthUsername=admin&sessionAuthPassword=admin" settings to the URL


As stated, I am not expert on LUA or JSON, so if you know a better way to do some actions, please let me know.

Code: Select all

commandArray = {}

--- Function print_r, used for getting the complete table so you can determine wich values to use
function print_r ( t )  
    local print_r_cache={}
    local function sub_print_r(t,indent)
        if (print_r_cache[tostring(t)]) then
            print(indent.."*"..tostring(t))
        else
            print_r_cache[tostring(t)]=true
            if (type(t)=="table") then
                for pos,val in pairs(t) do
                    if (type(val)=="table") then
                        print(indent.."["..pos.."] => "..tostring(t).." {")
                        sub_print_r(val,indent..string.rep(" ",string.len(pos)+8))
                        print(indent..string.rep(" ",string.len(pos)+6).."}")
                    elseif (type(val)=="string") then
                        print(indent.."["..pos..'] => "'..val..'"')
                    else
                        print(indent.."["..pos.."] => "..tostring(val))
                    end
                end
            else
                print(indent..tostring(t))
            end
        end
    end
    if (type(t)=="table") then
        print(tostring(t).." {")
        sub_print_r(t,"  ")
        print("}")
    else
        sub_print_r(t,"  ")
    end
    print()
end


--- Personal Variables

DL2_URL="http://192.168.1.133/dlx/download/live"   ---If guest user doesn't have rights to view live data, you need to add user & password 
TempCollectorIDX=188
TempBoilerTopIDX=189
TempBoilerBottomIDX=190
CurrentPumpSpeedIDX=191
TotalPumpTimeIDX=192
  




JSON = (loadfile "/home/pi/domoticz/scripts/lua/json.lua")()



   
print("========================================================================================================")
print ("Getting Resol DL2 Data");
print("========================================================================================================")


   local dl2_data_get=assert(io.popen('curl '..DL2_URL..''))
   local dl2_data = dl2_data_get:read('*all')
   dl2_data_get:close()
   
   print ("Decoding JSON Resol DL2 Data to Lua Table");

   local lua_value = JSON:decode(dl2_data)
  
  --- To show all the records from the table in the log, uncomment next row. Used to determine the values you need.
  --- print_r (lua_value)
   
   print ("Getting interesting Values");
   TempCollector = lua_value.headersets[1].packets[1].field_values[1].value
   TempBoilerTop = lua_value.headersets[1].packets[1].field_values[3].value
   TempBoilerBottom = lua_value.headersets[1].packets[1].field_values[2].value
   CurrentPumpSpeed = lua_value.headersets[1].packets[1].field_values[5].value
   TotalPumpTime = lua_value.headersets[1].packets[1].field_values[7].value
   
 
    print("TempCollector=" .. TempCollector)
    print("TempBoilerTop=" .. TempBoilerTop)
    print("TempBoilerBottom=" .. TempBoilerBottom)
    print("CurrentPumpSpeed=" .. CurrentPumpSpeed)
    print("TotalPumpTime=" .. TotalPumpTime)
    
    
   commandArray[0]={['UpdateDevice']=''..TempCollectorIDX..'|0|'..TempCollector..''} 
   commandArray[1]={['UpdateDevice']=''..TempBoilerTopIDX..'|0|'..TempBoilerTop..''}
   commandArray[2]={['UpdateDevice']=''..TempBoilerBottomIDX..'|0|'..TempBoilerBottom..''}
   commandArray[3]={['UpdateDevice']=''..CurrentPumpSpeedIDX..'|0|'..CurrentPumpSpeed..''} 
   commandArray[4]={['UpdateDevice']=''..TotalPumpTimeIDX..'|0|'..TotalPumpTime..''}
  




return commandArray
resize_Screen Shot 2016-05-03 at 11.27.39.png
resize_Screen Shot 2016-05-03 at 11.27.39.png (35.39 KiB) Viewed 7733 times
resize_Screen Shot 2016-05-03 at 11.44.06.png
resize_Screen Shot 2016-05-03 at 11.44.06.png (46.45 KiB) Viewed 7733 times
resize_Screen Shot 2016-05-03 at 11.44.20.png
resize_Screen Shot 2016-05-03 at 11.44.20.png (210.59 KiB) Viewed 7733 times
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Sandman79
Posts: 12
Joined: Wednesday 30 September 2015 20:30
Target OS: NAS (Synology & others)
Domoticz version:
Location: Belgium
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Sandman79 »

i dowloaded the json.lua file and put in the exact same location on my raspberry pi.
However on line 52 on this file I do not see any option to change the path.

Is it possible to give a little bit more info what you changed exactly? an example?
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

JSON = (loadfile "/home/pi/domoticz/scripts/lua/json.lua")()

You need to change this line to match the location of the file.
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Sandman79
Posts: 12
Joined: Wednesday 30 September 2015 20:30
Target OS: NAS (Synology & others)
Domoticz version:
Location: Belgium
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Sandman79 »

thx! But sorry i'm a real noob :(
on which location do you place the second script? and how do ou let the scripts run? don't seem to find any info regarding taht on this site .. :s :oops:
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

No problem Sandman79!
I run the script as a LUA time script, that means it will run every minute.
More info can be found at https://www.domoticz.com/wiki/Events#Lu ... _Interface


You can see what is going using the logging.
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Sandman79
Posts: 12
Joined: Wednesday 30 September 2015 20:30
Target OS: NAS (Synology & others)
Domoticz version:
Location: Belgium
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Sandman79 »

Thx, got it running! (well at least the temp off the top from the collector, the other 9 tempsensors and the heatexchangecounter i'm gonna try and add whenever I find some precious time)

Thx for the guide and the support!
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

Great! Thanks for letting us know!
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Sandman79
Posts: 12
Joined: Wednesday 30 September 2015 20:30
Target OS: NAS (Synology & others)
Domoticz version:
Location: Belgium
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Sandman79 »

Managed to read out almost al my temperatures ... :)
But have some issues reagriding other values:
Knipsel.PNG
Knipsel.PNG (71.71 KiB) Viewed 7465 times
-> I managed to get results of my relay usage expressed in percentage in the logs of domoticz, however it would not get captured under the utlitydevice i created.
-> I managed to get results of the volume pumped by the pump on relay 1 in the logs of domoticz, however it would not get captured under the utlitydevice i created. I have to say I got the results in the logs as Liters /hour, while the utlitydevice is in Liters per minute. I have to say that in the Resol servicecenter software it is also mentioned in Liters /minute. So a bit sttange here.
-> I did not manage yet to get any of the WMZ (heatquantity) data into my Domoticz-logs. only got an error about a nill value in my logs . :(

Apparently i did not find any data about the running time of my relais in the DL2 (I can find that info in my Resol BX Plus...)
Also The Resol Servicecenter software has an option to display the total volume of fluid displaced in the WMZ controller (heatquantity) but i do not see this working, and i do not find any link to this info in the DL2 datalogger.

Have to query Resol for a few of these things :). But the Relaypercentages and heatquantity measurements must be some small error I hope in this or my code :)
DWesthuis
Posts: 1
Joined: Tuesday 27 October 2015 6:53
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: 't Harde, The Netherlands
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by DWesthuis »

Good morning,

Last week I bought a Resol KM2 module url: http://www.resol.de/index/produktdetail ... sprache/en.
When i login through the web interface of the KM2, i cannot see the values (like posting Sandman79). When i login though vbus.net i can see this values, but seen no options for JSON. Can somebody help me?

Thanks!
hetista
Posts: 1
Joined: Saturday 01 April 2017 20:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by hetista »

i have connection to the datalogger
but i face problems with coding below

2017-04-01 20:24:19.676 LUA: ========================================================================================================
2017-04-01 20:24:19.676 LUA: Getting Resol DL2 Data
2017-04-01 20:24:19.676 LUA: ========================================================================================================
2017-04-01 20:24:21.134 Error: EventSystem: in script_time_boilertemp: /home/pi/domoticz/scripts/lua/json.lua:685: HTML passed to JSON:decode():



2017-04-01 20:23:55.065 Error: Webserver: File '/stylesheets/smoothness/jquery-ui-1.10.3.custom.css': No such file or directory (2)
2017-04-01 20:23:55.066 Error: Webserver: File '/stylesheets/RESOL/style.css': No such file or directory (2)
2017-04-01 20:23:55.068 Error: Webserver: File '/javascripts/jquery-1.10.1.js': No such file or directory (2)
2017-04-01 20:23:55.119 Error: Webserver: File '/stylesheets/smoothness/jquery-ui-1.10.3.custom.css': No such file or directory (2)
2017-04-01 20:23:55.120 Error: Webserver: File '/stylesheets/RESOL/style.css': No such file or directory (2)
2017-04-01 20:23:55.121 Error: Webserver: File '/javascripts/jquery-1.10.1.js': No such file or directory (2)
2017-04-01 20:24:01.082 Error: EventSystem: in script_time_boilertemp: /home/pi/domoticz/scripts/lua/json.lua:685: HTML passed to JSON:decode():

anybody any solution ?
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

When you open the page: http://<DL Ipadres>/dlx/download/live in browser, what do you get?

My result is:

Code: Select all

{
	"language" : "en",
	"headers" : [
	{
		"id" : "00_0010_2211_0100",
		"description" : "VBus 0: DeltaSol CS Plus",
		"channel" : 0,
		"destination_address" : 16,
		"source_address" : 8721,
		"protocol_version" : 16,
		"command" : 256,
		"info" : 0,
		"destination_name" : "DFA",
		"source_name" : "DeltaSol CS Plus",
		"fields" : [
		{
			"id" : "000_2_0",
			"name" : "Temperature sensor 1",
			"unit" : " \u00B0C",
			"unit_code" : "DegreesCelsius"
		},
		{
			"id" : "002_2_0",
			"name" : "Temperature sensor 2",
			"unit" : " \u00B0C",
			"unit_code" : "DegreesCelsius"
		},
		{
			"id" : "004_2_0",
			"name" : "Temperature sensor 3",
			"unit" : " \u00B0C",
			"unit_code" : "DegreesCelsius"
		},
		{
			"id" : "006_2_0",
			"name" : "Temperature sensor 4",
			"unit" : " \u00B0C",
			"unit_code" : "DegreesCelsius"
		},
		{
			"id" : "008_1_0",
			"name" : "Pump speed relay 1",
			"unit" : "%",
			"unit_code" : "Percent"
		},
		{
			"id" : "012_1_0",
			"name" : "Pump speed relay 2",
			"unit" : "%",
			"unit_code" : "Percent"
		},
		{
			"id" : "010_2_0",
			"name" : "Operating hours relay 1",
			"unit" : " h",
			"unit_code" : "Hours"
		},
		{
			"id" : "014_2_0",
			"name" : "Operating hours relay 2",
			"unit" : " h",
			"unit_code" : "Hours"
		},
		{
			"id" : "016_1_0",
			"name" : "UnitType",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "017_1_0",
			"name" : "System",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "020_2_0",
			"name" : "ErrorMask",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "022_2_0",
			"name" : "System time",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "020_1_1",
			"name" : "Sensor 1 defective",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "020_1_2",
			"name" : "Sensor 2 defective",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "020_1_4",
			"name" : "Sensor 3 defective",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "020_1_8",
			"name" : "Sensor 4 defective",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "024_4_0",
			"name" : "Status mask",
			"unit" : "",
			"unit_code" : "None"
		},
		{
			"id" : "028_4_0",
			"name" : "Heat quantity",
			"unit" : " Wh",
			"unit_code" : "WattHours"
		},
		{
			"id" : "032_2_0",
			"name" : "SV Version",
			"unit" : "",
			"unit_code" : "None"
		}
		]
	},
	{
		"id" : "00_0015_2211_0100",
		"description" : "VBus 0: DeltaSol CS Plus => Standard-Infos",
		"channel" : 0,
		"destination_address" : 21,
		"source_address" : 8721,
		"protocol_version" : 16,
		"command" : 256,
		"info" : 0,
		"destination_name" : "Standard-Infos",
		"source_name" : "DeltaSol CS Plus",
		"fields" : [
		]
	}
	],
	"headerset_stats" : {
		"headerset_count" : 1,
		"min_timestamp" : 1491424375.784000,
		"max_timestamp" : 1491424375.784000
	},
	"headersets" : [
	{
		"timestamp" : 1491424375.784000,
		"packets" : [
		{
			"header_index" : 0,
			"timestamp" : 1491424374.894000,
			"field_values" : [
			{
				"field_index" : 0,
				"raw_value" : 18.900000,
				"value" : "18.9"
			},
			{
				"field_index" : 1,
				"raw_value" : 33.300000,
				"value" : "33.3"
			},
			{
				"field_index" : 2,
				"raw_value" : 43.400000,
				"value" : "43.4"
			},
			{
				"field_index" : 3,
				"raw_value" : 23.300000,
				"value" : "23.3"
			},
			{
				"field_index" : 4,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 5,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 6,
				"raw_value" : 1619.000000,
				"value" : "1619"
			},
			{
				"field_index" : 7,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 8,
				"raw_value" : 11.000000,
				"value" : "11"
			},
			{
				"field_index" : 9,
				"raw_value" : 1.000000,
				"value" : "1"
			},
			{
				"field_index" : 10,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 11,
				"raw_value" : 1354.000000,
				"value" : "22:34"
			},
			{
				"field_index" : 12,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 13,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 14,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 15,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 16,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 17,
				"raw_value" : 0.000000,
				"value" : "0"
			},
			{
				"field_index" : 18,
				"raw_value" : 1.110000,
				"value" : "1.11"
			}
			]
		},
		{
			"header_index" : 1,
			"timestamp" : 1491424375.284000,
			"field_values" : [
			]
		}
		]
	}
	]
}
That is where my script is based on.
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Mace »

Just started this weekend to dive into the Domoticz world, so bare with me please.... ;)
I'm trying to get your script running, Marcel, but I get an error message, stating:

Error: EventSystem: in Resol: [string "commandArray = {} ..."]:74: attempt to index local 'lua_value' (a nil value)

Line 74 states:
TempCollector = lua_value.headersets[1].packets[1].field_values[1].value
(the same as in your script)

I've downloaded the required JSON.lua file and stored it in "C:\Apps\Domoticz\scripts\lua\JSON.lua" (I'm running Win2008 Server). I've put C:\\Apps\\Domoticz\\scripts\\lua\\JSON.lua in line 52, as you apparently have to use \\ instead of single \.

Then edited your script in line 41 with my resol url: http://macesolar.via.vbus.net/dlx/download/live=> used the external link, as the internal link won't resolve somehow.

Finally, I made a new sensor in Domoticz, which has IDX21 and assigned this to TempCollectorIDX. Edited out the rest of the sensors for test puposes.

When I run the script, I get the following messages:
2017-08-21 20:13:49.877 dzVents: ========================================================================================================
2017-08-21 20:13:49.877 dzVents: Getting Resol DL2 Data
2017-08-21 20:13:49.877 dzVents: ========================================================================================================
2017-08-21 20:13:49.904 dzVents: Decoding JSON Resol DL2 Data to Lua Table
2017-08-21 20:13:49.904 dzVents: nil
2017-08-21 20:13:49.904 dzVents: Getting interesting Values
2017-08-21 20:13:49.905 Error: EventSystem: in Resol: [string "commandArray = {} ..."]:74: attempt to index local 'lua_value' (a nil value)

I've googled around, but all I get is that there is an integer or : missing in the code, but as I've just copied your script, that seems strange to me.

Hope you can help this nitwit out.... ;)
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

Hi Mace,

I see you are using Windows and DZVents. I use my setup on Raspbian and Ubuntu, without DZVents so there might be a difference there.
You could start by changing

-- print_r (lua_value)
to
print_r (lua_value)

to see if there are any values in the array. You can find them in the log.

but according to you log is not. So also try putting
print (dl2_data)
right after:

print ("Decoding JSON Resol DL2 Data to Lua Table");


That way you can check if the (io.popen('curl '..DL2_URL..'')) did work.
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Mace »

Thanks for your reply! The 'DZVents' is standard now, I suppose, came with the install.
I already tried the 'print_r (lua value), didn't help.

Added the 'print (dl2_data)', now looks like this:

Code: Select all

 print ("Decoding JSON Resol DL2 Data to Lua Table");
    print (dl2_data)
   local lua_value = JSON:decode(dl2_data)
Still get the same error... :cry:
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

Since you are on windows, do you have curl available?
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Mace »

I do now.... ;)
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Mace »

Still working on this. Decided to do a fresh install on Raspberry, Windows gave me more problems in different area's too.

I've got the script running, put the code into an 'event' and in te logging, I can see the correct values coming inn:

2017-08-30 22:29:01.302 LUA: TempCollector=14.9
2017-08-30 22:29:01.302 LUA: TempBoilerTop=74.5
2017-08-30 22:29:01.302 LUA: TempBoilerBottom=26.9
2017-08-30 22:29:01.302 LUA: CurrentPumpSpeed=0
2017-08-30 22:29:01.302 LUA: TotalPumpTime=6397

Problem I now have that when I assign the virtual sensors, I get values of 0....
BTW: I used the already available JSON.lau and the one you mentioned, no difference.

Hope you can help me!
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

Wise choice! You won't regret is.

Your json.lua is fine, since you are getting values now.

Did you see this part in the guide?
Create the Dummy sensors you need, in my case "TempCollector", "TempBoilerTop", "TempBoilerBottom", "CurrentPumpSpeed", "TotalPumpTime".
Note their IDX's and add them to the script.


and did you use them here?
DL2_URL="http://192.168.1.133/dlx/download/live" ---If guest user doesn't have rights to view live data, you need to add user & password
TempCollectorIDX=188
TempBoilerTopIDX=189
TempBoilerBottomIDX=190
CurrentPumpSpeedIDX=191
TotalPumpTimeIDX=192

Maybe you can post your complete script here?
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by Mace »

I did create the sensors, but I mistakenly filled the IDX numbers of the hardware in the file, not the IDX numbers of the created devices....Works like a charm now!!!

Thanks for your help!

PS: Forget the PM I send you just before this.... ;)
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Resol DL2 Datalogger(Vbus)

Post by MarceldeJongNL »

You are welcome, enjoy!
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests