Pellet heating data from the CAN bus in STEM.
pelltech receives the values of a pellet heating (temperatures, outputs and error messages) from a CAN bus bridge via MQTT, shows them on the console and through web-api and raises a high priority notification as soon as the heating reports a new error.
- Receives CAN bus data on the MQTT topic
uvr/canbus/data - Asks connected StemLink clients for new data every 3 minutes (channel
heater_data) - Inlets (sensor values), outlets (on/off) and notifies (error messages) are defined in the database; indexes the CAN bus sends that are not defined yet are added automatically
- New active notify: notification with priority
HIGHand an information block on the display MQTTCanbusReceiveEventis fired for every message and can be canceled by other plugins
| Requirement | Version |
|---|---|
| STEM | 1.2.0 or newer (full stem dependency, uses StemLink), database module configured |
| Plugins | web-api |
| Hardware | CAN bus bridge that publishes JSON to uvr/canbus/data |
- Build the plugin with
mvn clean package(or take the build from Jenkins). - Copy
target/pelltech.jarinto thepluginsfolder of STEM. - Start STEM. Missing database tables are created automatically.
- Optional: give the entries meaningful names in the database (see below) and restart STEM.
There is no config.yml.
All tables are created automatically if they do not exist (MySQL/MariaDB). The inlets, outlets and notifies are loaded at startup from these tables:
| Table | Columns |
|---|---|
addon_heater_inlets |
inlet_id, index, name |
addon_heater_outlets |
outlet_id, index, name |
addon_heater_notifies |
notify_id, index, name |
When the CAN bus sends an index that is not in the table yet, it is added with a placeholder name such as
Inlet 7. Rename it in the database and restart STEM to show a meaningful name:
UPDATE addon_heater_inlets SET name = 'Kesseltemperatur' WHERE `index` = 7;The tables addon_heater_inlets_data, addon_heater_outlets_data and addon_heater_notifies_data are
created for history data.
index is the index used by the CAN bus bridge. Two indexes have a fixed meaning for the web API:
inlet 3 is the water temperature, outlet 1 is the burner.
{
"inlets": [ { "index": 3, "state": "OK", "value": 64.5 } ],
"outlets": [ { "index": 1, "value": "EIN" } ],
"notifies": [ { "index": 2, "state": "AUS" } ]
}An inlet is healthy when state is OK. Outlets and notifies are active when the value is EIN.
| Command | Description |
|---|---|
heating status |
Lists all inlets, outlets, notifies and the time of the last data |
/pelltech/data returns:
| Field | Description |
|---|---|
inlets |
name and value of every inlet |
outlets |
name and status of every outlet |
notifies |
name and status of every notify |
simple |
watertemperature, burnerstatus (0 = off, 1 = burning, 2 = error), date, datesimple |
Copyright (c) MirraNET, Niklas Linz. Licensed under the GNU Lesser General Public License v3.0.
