Hi guys,
Newbie ST user here but getting into it! I’ve most of my smart devices connected to my hub, all logging to an influx DB/grafana instance in AWS.
Chiming in here as I too have a Resol Deltasol BS/2 HE solar controller with 30tube Joule solar array.
I’m trying to figure out a way to pull the temps from the controller.
Am I right in saying I CAN’T get the ST Hub to poll the controller on the local LAN?
If I hit the controller via curl:
$ curl "http://192.168.1.80/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=admin"
{
"language" : "en",
"headers" : [
{
"id" : "00_0010_4720_0100",
"description" : "VBus 0: DeltaSol BS/2 HE",
"channel" : 0,
"destination_address" : 16,
"source_address" : 18208,
"protocol_version" : 16,
"command" : 256,
"info" : 0,
"destination_name" : "DFA",
"source_name" : "DeltaSol BS/2 HE",
"fields" : [
{
"id" : "004_2_0",
"name" : "Temperature sensor 1",
"unit" : " \u00B0C",
"unit_code" : "DegreesCelsius"
},
{
"id" : "006_2_0",
"name" : "Temperature sensor 2",
"unit" : " \u00B0C",
"unit_code" : "DegreesCelsius"
},
{
"id" : "008_2_0",
"name" : "Temperature sensor 3",
"unit" : " \u00B0C",
"unit_code" : "DegreesCelsius"
},
{
"id" : "016_1_0",
"name" : "Pump speed relay 1",
"unit" : "%",
"unit_code" : "Percent"
},
{
"id" : "020_4_0",
"name" : "Heat quantity",
"unit" : " Wh",
"unit_code" : "WattHours"
},
{
"id" : "024_2_0",
"name" : "SW Version",
"unit" : "",
"unit_code" : "None"
},
{
"id" : "028_4_0",
"name" : "Operating hours relay 1",
"unit" : " h",
"unit_code" : "Hours"
},
{
"id" : "068_4_0",
"name" : "Error mask",
"unit" : "",
"unit_code" : "None"
}
]
},
{
"id" : "00_0015_4720_0100",
"description" : "VBus 0: DeltaSol BS/2 HE => Standard-Infos",
"channel" : 0,
"destination_address" : 21,
"source_address" : 18208,
"protocol_version" : 16,
"command" : 256,
"info" : 0,
"destination_name" : "Standard-Infos",
"source_name" : "DeltaSol BS/2 HE",
"fields" : [
]
}
],
"headerset_stats" : {
"headerset_count" : 1,
"min_timestamp" : 1530285003.508000,
"max_timestamp" : 1530285003.508000
},
"headersets" : [
{
"timestamp" : 1530285003.508000,
"packets" : [
{
"header_index" : 0,
"timestamp" : 1530285003.348000,
"field_values" : [
{
"field_index" : 0,
"raw_value" : 67.000000,
"value" : "67.0"
},
{
"field_index" : 1,
"raw_value" : 52.000000,
"value" : "52.0"
},
{
"field_index" : 2,
"raw_value" : 70.500000,
"value" : "70.5"
},
{
"field_index" : 3,
"raw_value" : 45.000000,
"value" : "45"
},
{
"field_index" : 4,
"raw_value" : 3.000000,
"value" : "3"
},
{
"field_index" : 5,
"raw_value" : 1.000000,
"value" : "1.00"
},
{
"field_index" : 6,
"raw_value" : 2613.000000,
"value" : "2613"
},
{
"field_index" : 7,
"raw_value" : 0.000000,
"value" : "0"
}
]
},
{
"header_index" : 1,
"timestamp" : 1530285002.548000,
"field_values" : [
]
}
]
}
]
}
I get all the data as you can see.
If enabled, you can get the controller to publish the same to vbus.net, allowing it to be pulled via a unqiue url:
https://www.vbus.net/scheme/19198204b21a9d4db8d5e67533a64b23
$ curl https://www.vbus.net/scheme/19198204b21a9d4db8d5e67533a64b23
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<title>VBus.net Scheme-Designer</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css styles/main.css -->
<!--<link href="../../../bower_components/font-awesome-animation/dist/font-awesome-animation.css" type="text/css" rel="stylesheet" /> // bower lib has not all animations included -->
<link href="../../../bower_components/jquery-ui/themes/base/minified/jquery-ui.min.css" type="text/css" rel="stylesheet" />
<link href="../../../bower_components/jquery.colorpicker/jquery.colorpicker.css" type="text/css" rel="stylesheet" />
<link href="../../../bower_components/weather-icons/css/weather-icons.css" type="text/css" rel="stylesheet" />
<link href="../../../bower_components/weather-icons/css/weather-icons-wind.css" type="text/css" rel="stylesheet" />
<link href="../../../bower_components/font-awesome/css/font-awesome.css" type="text/css" rel="stylesheet" />
<link href="css/main-built.min.css" type="text/css" rel="stylesheet" />
<link rel="apple-touch-icon" sizes="57x57" href="../../images/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="72x72" href="../../images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="../../images/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="120x120" href="../../images/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="../../images/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="../../images/apple-touch-icon-152x152.png">
<link rel="icon" type="image/png" sizes="32x32" href="../../images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../../images/favicon-16x16.png">
<meta name="application-name" content="VBus.net" />
<meta name="msapplication-TileColor" content="#009900" />
<meta name="msapplication-square70x70logo" content="../../images/smalltile.png" />
<meta name="msapplication-square150x150logo" content="../../images/mediumtile.png" />
<meta name="msapplication-square310x310logo" content="../../images/largetile.png" />
<!--<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>-->
<!-- endbuild -->
<!-- build:js scripts/vendor/modernizr.js -->
<script src="../../../bower_components/modernizr/modernizr.js"></script>
<!-- endbuild -->
</head>
<body>
<!--[if lt IE 11]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="navbar navbar-inverse navbar-fixed-top hide" role="navigation">
<div class="container-fluid">
<div class="navbar-header" style="margin-top:4px">
<a href="/#visualization/schemes">
<img src="/images/vbus.png" alt="logo" style="height:22px;border:none;margin-right:10px;" />
</a>
<i class="fa fa-sun-o"></i>
<b class="navbar-scheme-name"></b>
<input type="hidden" id="scheme_id" />
<small class="hide">
<i class="fa fa-picture-o"></i>
<span class="navbar-image-name"></span>
-
<i class="fa fa-filter"></i>
<span class="navbar-filter-name"></span>
</small>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<div id="togglebar"></div>
</ul>
</div>
</div>
</div>
<div id="resol-vbus-visualization-scheme" class="resol-vbus-visualization-scheme"></div>
<!-- build:js scripts/main.js -->
<script data-main="scripts/main" src="../../../bower_components/requirejs/require.js"></script>
<script>
require.config({
waitSeconds: 60
});
</script>
<!-- <script src="lib/require.min.js"></script>
<script>
require.config({
paths: {
//Comment out this line to go back to loading
//the non-optimized main.js source file.
"main": "scripts/main-built"
}
});
require(["main"]);
</script>
-->
<!-- endbuild -->
<div class="modal fade" id="modal-energy" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h2 class="modal-title">
∑ / <i class="fa fa-bar-chart"></i>
<span class="energyValues"></span>
</h2>
</div>
<div class="modal-body">
<table class="table">
<tbody>
<tr>
<td valign="top" width="120px">
<label class="energy-label-year"></label>:
</td>
<td>
<div>
<input type="radio" name="energy-range-year" class="energy-range-year-current" checked />
<span class="energy-current-year"></span>
</div>
<div>
<input type="radio" name="energy-range-year" class="energy-range-year-previous" />
<span class="energy-previous-year"></span>
</div>
</td>
</tr>
<tr>
<td valign="top">
<label class="energy-label-energyValuesRange"></label>:
</td>
<td>
<div>
<input type="radio" name="energy-range-month" class="energy-range-month-current" checked />
<span class="energy-range-month"></span>
</div>
<div>
<input type="radio" name="energy-range-month" value="selected" id="energy-range-month-selected" />
<select class="form-control" id="energy-selected-month" style="height:20px;width:120px;display:inline"></select>
</div>
<div>
<input type="radio" name="energy-range-month" value="year" />
<span class="energy-label-wholeYear"></span>
</div>
</td>
</tr>
<tr>
<td valign="top">
<label class="energy-label-view"></label>:
</td>
<td>
<div>
<input type="radio" name="energy-view" value="T" checked />
<span class="energy-label-textForm"></span>
</div>
<div>
<input type="radio" name="energy-view" value="D" />
<span class="energy-label-diagram"></span>
</div>
<div style="margin-top:10px;width:300px;">
<div style="margin-bottom:10px">
<input type="checkbox" id="energy-automatic-title" value="1" checked />
<span class="energy-automatic-title"></span>
</div>
<div style="margin-bottom:20px">
<input id="energy-width" type="range" min="140" max="500" step="10" value="280" />
<span class="energy-label-width"></span>
<span class="energy-width">280</span>px
</div>
<div>
<input id="energy-height" type="range" min="70" max="300" step="10" value="160" />
<span class="energy-label-height"></span>
<span class="energy-height">160</span>px
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-xs btn-primary btn-set-energy-format filteredId"></button>
<button type="button" class="btn btn-xs btn-default btn-reset-energy-format filteredId" data-dismiss="modal"></button>
</div>
</div>
</div>
</div>
</body>
</html>
You can see curling the url directly doesn’t get you any data, displays fine in a browser.
Any thoughts on how I can go about getting the data into ST?
Thanks!
Bren