]> mj.ucw.cz Git - home-hw.git/commitdiff
Influx: More BSB attributes
authorMartin Mares <mj@ucw.cz>
Fri, 6 Mar 2020 20:38:30 +0000 (21:38 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 6 Mar 2020 20:38:30 +0000 (21:38 +0100)
influx/burrow-influx.c

index 5334d67ff770687948e2a29c2afdf91ca1d3a57a..5fb683e1a5219d714ab729ed544f947fa67954fa 100644 (file)
@@ -214,12 +214,36 @@ static const struct attr attr_table[] = {
                .topic = "burrow/heating/circuit1/mix-valve",
                .timeout = 300,
        },
+       {
+               .metric = "heating_active,circuit=1",
+               .value_name = "x",
+               .topic = "burrow/heating/circuit1/active",
+               .timeout = 660,
+       },
+       {
+               .metric = "pump_active,circuit=1",
+               .value_name = "x",
+               .topic = "burrow/heating/circuit1/pump",
+               .timeout = 300,
+       },
        {
                .metric = "heating_room_temp,circuit=2",
                .value_name = "t",
                .topic = "burrow/heating/circuit2/room-temp",
                .timeout = 300,
        },
+       {
+               .metric = "heating_active,circuit=2",
+               .value_name = "x",
+               .topic = "burrow/heating/circuit2/active",
+               .timeout = 660,
+       },
+       {
+               .metric = "heating_active,circuit=water",
+               .value_name = "x",
+               .topic = "burrow/heating/water/active",
+               .timeout = 660,
+       },
 };
 
 /*** MQTT ***/