Shelly Addon mit Luftfeuchte Sensor DHT22

Alle Shelly Geräte mit der originalen Firmware (Kein TASMOTA)

Moderator: Ulrich

Ruhz69
Beiträge: 91
Registriert: Fr 28. Jan 2022, 19:41
Hat sich bedankt: 12 Mal
Danksagung erhalten: 4 Mal

Shelly Addon mit Luftfeuchte Sensor DHT22

Beitrag von Ruhz69 »

Hallo Ulrich,
Ich habe mir noch zwei Shellys mit Addon besorgt. Am Addon hängt jeweils ein DHT22/AM2302 Luftfeuchte und Temperaturmessung.

Shelly 1 Generation 3 Temperatur vom Addon wird ausgelesen, nicht die Luftfeuchte.
Shelly 2PM Generation 3 das Addon wird nicht ausgelesen.

Kann man das noch einrichten?

Viele Grüße

Rüdiger

Benutzeravatar
Ulrich
Administrator
Beiträge: 5678
Registriert: Sa 7. Nov 2015, 10:33
Wohnort: Essen
Hat sich bedankt: 165 Mal
Danksagung erhalten: 837 Mal

Re: Shelly Addon mit Luftfeuchte Sensor DHT22

Beitrag von Ulrich »

Hallo Rüdiger,

melde dich mal per eMail. Das bekommen wir geregelt.
-----------------------------------------------------
Ulrich . . . . . . . . [ Admin ]

Ruhz69
Beiträge: 91
Registriert: Fr 28. Jan 2022, 19:41
Hat sich bedankt: 12 Mal
Danksagung erhalten: 4 Mal

Re: Shelly Addon mit Luftfeuchte Sensor DHT22

Beitrag von Ruhz69 »

Mail ist raus, ich lande ja gerne in deinem Spam Ordner :D

Ruhz69
Beiträge: 91
Registriert: Fr 28. Jan 2022, 19:41
Hat sich bedankt: 12 Mal
Danksagung erhalten: 4 Mal

Re: Shelly Addon mit Luftfeuchte Sensor DHT22

Beitrag von Ruhz69 »

Hallo,
Vielen Dank an Ulrich fürs Einrichten.
Dann packe ich auch dazu, was ich vorhabe.
Zunächst mal eine Grafana Visualisierung, ob sich lüften lohnt. Heißt in der Regel dass die absolute Luftfeuchte draußen kleiner ist als drinnen. Ich habe die „Magnus Formel“ dafür verwendet. Gilt streng nur über 0°C, reicht mir als Näherung.

Mal schauen, ob ich mir noch einen Fensteröffner oder einen Belüfter kaufe und damit automatisiere.
Dann bräuchte ich aber eine „math.php“ für den Energiemonitor oder die Automation. Gibt es das eigentlich?
Es ist zweimal das gleiche, nur die Zahlen ausgeblendet. Er meckert, das ich die falsche variablen nehme zeigt aber richtig an.

Sieht dann so aus
Dashboard
Dashboard
Hier noch das Dashboard zum runterladen.

Code: Alles auswählen

 {
  "__inputs": [
    {
      "name": "DS_ENERGIEMONITOR",
      "label": "energiemonitor",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    },
    {
      "name": "DS_EXPRESSION",
      "label": "Expression",
      "description": "",
      "type": "datasource",
      "pluginId": "__expr__"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "datasource",
      "id": "__expr__",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "12.0.0"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_ENERGIEMONITOR}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "G"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Luftfeuchtigkeit Unterschied abs."
              },
              {
                "id": "unit",
                "value": "congm3"
              },
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "from": -100,
                      "result": {
                        "color": "orange",
                        "index": 0,
                        "text": "Lüften bring nichts"
                      },
                      "to": 0
                    },
                    "type": "range"
                  },
                  {
                    "options": {
                      "from": 0,
                      "result": {
                        "color": "blue",
                        "index": 1,
                        "text": "Lüften möglich"
                      },
                      "to": 100
                    },
                    "type": "range"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Luftfeuchtigkeit Keller"
              },
              {
                "id": "unit",
                "value": "humidity"
              },
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "from": 55,
                      "result": {
                        "color": "dark-red",
                        "index": 0
                      },
                      "to": 105
                    },
                    "type": "range"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Temperatur Keller"
              },
              {
                "id": "unit",
                "value": "celsius"
              },
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "from": -50,
                      "result": {
                        "color": "super-light-blue",
                        "index": 1
                      },
                      "to": 5
                    },
                    "type": "range"
                  },
                  {
                    "options": {
                      "from": 5,
                      "result": {
                        "color": "blue",
                        "index": 2
                      },
                      "to": 15
                    },
                    "type": "range"
                  },
                  {
                    "options": {
                      "from": 16,
                      "result": {
                        "color": "green",
                        "index": 3
                      },
                      "to": 22
                    },
                    "type": "range"
                  },
                  {
                    "options": {
                      "from": 23,
                      "result": {
                        "color": "red",
                        "index": 4
                      },
                      "to": 50
                    },
                    "type": "range"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Luftfeuchtigkeit draußen"
              },
              {
                "id": "unit",
                "value": "humidity"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "D"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Temperatur draußen"
              },
              {
                "id": "unit",
                "value": "celsius"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "E"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Luftfeuchtigkeit Keller abs."
              },
              {
                "id": "unit",
                "value": "congm3"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "F"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Luftfeuchtigkeit draußen abs."
              },
              {
                "id": "unit",
                "value": "congm3"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 13,
        "w": 21,
        "x": 0,
        "y": 0
      },
      "id": 3,
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "auto",
        "wideLayout": true
      },
      "pluginVersion": "12.0.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Keller",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Ext_Luftfeuchte1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Keller",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Ext_Temperatur1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Schopf",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Ext_Luftfeuchte1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Schopf",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "Ext_Temperatur1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "610.5 * 2.71828**(17.27*($B/($B+237.3)))",
          "hide": true,
          "refId": "Ps",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "$A * $Ps / 461.5 / ($B+273.15) /100 * 1000",
          "hide": false,
          "refId": "E",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "$C * $Ps2 / 461.5 / ($D+273.15) /100 * 1000",
          "hide": false,
          "refId": "F",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "$E - $F",
          "hide": false,
          "refId": "G",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "610.5 * 2.71828**(17.27*($D/($D+237.3)))",
          "hide": true,
          "refId": "Ps2",
          "type": "math"
        }
      ],
      "title": "Lüftung ",
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_ENERGIEMONITOR}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "from": -100,
                "result": {
                  "color": "yellow",
                  "index": 0,
                  "text": "Lüften bringt nichts"
                },
                "to": 0
              },
              "type": "range"
            },
            {
              "options": {
                "from": 0,
                "result": {
                  "color": "blue",
                  "index": 1,
                  "text": "Lüften"
                },
                "to": 100
              },
              "type": "range"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "#EAB839",
                "value": 60
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "G last"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "from": 0,
                      "result": {
                        "color": "blue",
                        "index": 0,
                        "text": "Lüften möglich"
                      },
                      "to": 100
                    },
                    "type": "range"
                  },
                  {
                    "options": {
                      "from": -100,
                      "result": {
                        "color": "yellow",
                        "index": 1,
                        "text": "Lüften bringt nichts"
                      },
                      "to": 0
                    },
                    "type": "range"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 20,
        "x": 0,
        "y": 13
      },
      "id": 2,
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "/^G last$/",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "value",
        "wideLayout": true
      },
      "pluginVersion": "12.0.0",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Keller",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "Ext_Luftfeuchte1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Keller",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "Ext_Temperatur1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Schopf",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "C",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "Ext_Luftfeuchte1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_ENERGIEMONITOR}"
          },
          "groupBy": [],
          "hide": false,
          "measurement": "Schopf",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "D",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "Ext_Temperatur1"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "610.5 * 2.71828**(17.27*($B/($B+237.3)))",
          "hide": false,
          "refId": "Ps",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "$A * $Ps / 461.5 / ($B+273.15) /100 * 1000",
          "hide": false,
          "refId": "E",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "$C * $Ps2 / 461.5 / ($D+273.15) /100 * 1000",
          "hide": false,
          "refId": "F",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "$E - $F",
          "hide": false,
          "refId": "G",
          "type": "math"
        },
        {
          "datasource": {
            "type": "__expr__",
            "uid": "${DS_EXPRESSION}"
          },
          "expression": "610.5 * 2.71828**(17.27*($D/($D+237.3)))",
          "hide": false,
          "refId": "Ps2",
          "type": "math"
        }
      ],
      "title": "Keller",
      "transparent": true,
      "type": "stat"
    }
  ],
  "schemaVersion": 41,
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "DHT22 dashboard",
  "uid": "983cb212-dc13-44bb-bb95-5d30bcdef09a",
  "version": 2,
  "weekStart": ""
}

Zurück zu „Shelly Geräte mit original Firmware“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste