Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Discussioni relative al software di monitoraggio energetico METERN
buemarino
Messaggi: 291
Iscritto il: 26/03/2016, 20:37

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda buemarino » 31/10/2020, 18:42

Da importare su Grafana

Codice: Seleziona tutto

{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": 2,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Home Assistant",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null
          },
          "links": [],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 8,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "sort": null,
        "sortDesc": null,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.1",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Autoconsumo",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_autoconsumo"
            }
          ]
        },
        {
          "alias": "Consumi",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_consumi"
            }
          ]
        },
        {
          "alias": "Immissioni",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_immissioni"
            }
          ]
        },
        {
          "alias": "Produzione",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "E",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_produzione"
            }
          ]
        },
        {
          "alias": "Prelievi",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "F",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_prelievi"
            }
          ]
        },
        {
          "alias": "Picco massimo",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_picco_massimo"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "=",
              "value": "select tag value"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Solare Produzione & Consumi",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "watt",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "datasource": "Home Assistant",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "watt"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Consumi"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Prelievi"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Autoconsumo"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "#EAB839",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 24,
        "x": 0,
        "y": 7
      },
      "id": 11,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.1",
      "targets": [
        {
          "alias": "Autoconsumo",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_autoconsumo"
            }
          ]
        },
        {
          "alias": "Consumi",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_consumi"
            }
          ]
        },
        {
          "alias": "Immissioni",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_immissioni"
            }
          ]
        },
        {
          "alias": "Produzione",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "E",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_produzione"
            }
          ]
        },
        {
          "alias": "Prelievi",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "F",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_prelievi"
            }
          ]
        },
        {
          "alias": "Picco massimo",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "Watt",
          "orderByTime": "ASC",
          "policy": "autogen",
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_picco_massimo"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "=",
              "value": "select tag value"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Solar Ultima Lettura",
      "transparent": true,
      "type": "stat"
    },
    {
      "aliasColors": {
        "Temperatura Boiler": "light-blue"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Home Assistant",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 0,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 13,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.1",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Temperatura Boiler",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "C",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "boiler_temperatura"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Boiler",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "celsius",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Anodo giallo": "dark-yellow",
        "Anodo rosso": "dark-red",
        "Anodo verde": "green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Home Assistant",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 7,
        "x": 8,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 15,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.1",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "Anodo verde",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Anodo giallo",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "lux",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "anodo_giallo"
            }
          ]
        },
        {
          "alias": "Anodo rosso",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "lux",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "anodo_rosso"
            }
          ]
        },
        {
          "alias": "Anodo verde",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "lux",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "anodo_verde"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Anodi Boiler",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "lumens",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "lumens",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": true,
        "alignLevel": null
      }
    },
    {
      "datasource": "Home Assistant",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 9,
        "x": 15,
        "y": 13
      },
      "id": 10,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "7.3.1",
      "targets": [
        {
          "alias": "Volt",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Volt",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"value\") FROM \"Volt\" WHERE (\"domain\" = 'sensor') AND $timeFilter GROUP BY time($__interval) fill(none)",
          "rawQuery": false,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "domain",
              "operator": "=",
              "value": "sensor"
            }
          ]
        },
        {
          "alias": "Ampere",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "Ampere",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "solar_ampere"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Volt + Ampere",
      "transparent": true,
      "type": "gauge"
    }
  ],
  "refresh": false,
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-24h",
    "to": "now-1m"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Solar & MeterN",
  "uid": "BCZ8xUWgk",
  "version": 11
}
Fotovoltaico 4,195 Kw (2E2S) - Inverter Aurora PO 3.6 OUTD --> RPI 2b -->SDM120c x lettura consumi su stesso bus - SolarStretch v3.1 . Boiler solare con integrazione elettrica e PWM dimmer v1.22


s_p
Messaggi: 283
Iscritto il: 06/04/2017, 20:49

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda s_p » 31/10/2020, 19:03

grazie @bluemarino

per curiosità, usi la solarbuster di Flane?

buemarino
Messaggi: 291
Iscritto il: 26/03/2016, 20:37

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda buemarino » 31/10/2020, 19:10

No, quella in firma. Ho sempre un RPI2b che lavora dall'inizio dell'avventura....... Fin quando mi assiste non lo cambiero'. Scalda poco o nulla, senza dissipatori, anche perche' li dentro ci tengo solo la monitorizzazione del solare e la gestione della resistenza del boiler. Gli altri RPI 3 e 4 li uso per HA e Volumio vari.
Fotovoltaico 4,195 Kw (2E2S) - Inverter Aurora PO 3.6 OUTD --> RPI 2b -->SDM120c x lettura consumi su stesso bus - SolarStretch v3.1 . Boiler solare con integrazione elettrica e PWM dimmer v1.22

buemarino
Messaggi: 291
Iscritto il: 26/03/2016, 20:37

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda buemarino » 01/11/2020, 19:52

Dimenticavo di precisare che in quel file che ho postato, ci sono anche le istruzioni per la parte inferiore del grafico che contiene i dati del boiler solare e delle spie dell'anodo elettronico. Ovviamente quelle parti di codice vanno eliminate.


Immagine
Fotovoltaico 4,195 Kw (2E2S) - Inverter Aurora PO 3.6 OUTD --> RPI 2b -->SDM120c x lettura consumi su stesso bus - SolarStretch v3.1 . Boiler solare con integrazione elettrica e PWM dimmer v1.22

StepSolar
Messaggi: 18
Iscritto il: 02/05/2021, 10:24

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda StepSolar » 08/05/2021, 18:36

ciao wifi75,
ti contatto per un aiuto su home assistent, ho letto e straletto il tuo post viewtopic.php?f=4&t=2601&hilit=pappa+pronta ma non sono riuscito a farlo funzionare dv sbaglio non lo capisco.

Se copio il tuo codice su configuration.yaml allora funziona

Codice: Seleziona tutto

#### lettura dati da 123solar e MeterN direttamente da file json ###
##### https://www.home-assistant.io/integrations/rest/ ####

sensor:
  - platform: rest
    resource: http://192.168.1.51/123solar/programs/programlive.php?invtnum=1
    name: solar potenza immediata
    value_template: '{{ value_json.G1P }}'
    force_update: true
    unit_of_measurement: Watt

  - platform: rest
    resource: http://192.168.1.51/123solar/programs/programlive.php?invtnum=1
    name: solar tensione
    value_template: '{{ value_json.G1V }}'
    unit_of_measurement: Volt
 
  - platform: rest
    resource: http://192.168.1.51/123solar/programs/programlive.php?invtnum=1
    name: solar ampere
    value_template: '{{ value_json.G1A }}'
    unit_of_measurement: Ampere

  - platform: rest
    resource: http://192.168.1.51/123solar/programs/programlive.php?invtnum=1
    name: solar picco massimo
    value_template: '{{ value_json.PMAXOTD }}'
    unit_of_measurement: Watt
   
   
  - platform: rest
    resource: http://192.168.1.51/metern/programs/programlive.php   
    name: solar consumi
    value_template: '{{ value_json.Consumi2 }}'
    force_update: true
    unit_of_measurement: Watt
   
  - platform: rest
    resource: http://192.168.1.51/metern/programs/programlive.php   
    name: solar prelievi
    value_template: '{{ value_json.Prelievi3 }}'
    unit_of_measurement: Watt

  - platform: rest
    resource: http://192.168.1.51/metern/programs/programlive.php   
    name: solar immissioni
    value_template: '{{ value_json.Immissioni4 }}'
    unit_of_measurement: Watt
   
  - platform: rest
    resource: http://192.168.1.51/metern/programs/programlive.php   
    name: solar autoconsumo
    value_template: '{{ value_json.Autoconsumo5 }}'
    unit_of_measurement: Watt
   

#### Lettura dati totali ###

  - platform: rest
    resource: https://solar.iu3cyv.eu/metern/programs/programtotal.php
    name: solar totoali produzione day
    value_template: '{{ value_json.Dailycounter1 }}'
    unit_of_measurement: KWh


ma se cervo di creare il file pv.yaml questo non funziona. Ho fatto anche la prova ad inserire tale stringa pv: !include pv.yaml su configuration.yaml ma nulla ricevo errore.

Cosa potrei fare?
mi interesserebbe anche Grafana ma devo prima installarlo? io sulla mia raspberry4 ho l'img di SolarBuster 0.1 beta - TEST PRELIMINARE viewtopic.php?f=4&t=2590
si potrebbe installare?

Ho visto che anche tu hai solaredge con pannelli sunpower ottima scelta anche il ho gli stessi..

Grazie

dolam
Messaggi: 222
Iscritto il: 15/08/2016, 23:08

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda dolam » 04/06/2021, 17:33

StepSolar
homeassistant:
packages: !include_dir_named packages

se provi così funziona? interessa anche me ma non sono capace di nulla , vado a naso

dolam
Messaggi: 222
Iscritto il: 15/08/2016, 23:08

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda dolam » 05/06/2021, 7:06

Vedo dallo script si wifi75 che c'è una chiamata a "platform: rest"
forse è qui che bisogna integrare qualcosa per creare i sensori ma sinceramente non saprei proprio come si fa , se wifi75 e/o buemarino ci volessero dire di più sarebbe fantastico, grazie.

https://www.home-assistant.io/integrations/rest/

StepSolar
Messaggi: 18
Iscritto il: 02/05/2021, 10:24

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda StepSolar » 05/06/2021, 17:59

Ciao ragazzi, giorni fa ci sn riuscito e bisogna fare così :
Aprire il file configuration.yaml e copiarci dentro il seguente codice.

Codice: Seleziona tutto

homeassistant:
  packages: !include_dir_named packages


Creare una cartelle in homeassistant/.homeassistant/ chiamata packages ed al suo interno inserire il file di wifi75

Riavviate home assistant e tutto funziona.

StepSolar
Messaggi: 18
Iscritto il: 02/05/2021, 10:24

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda StepSolar » 05/06/2021, 18:08

buemarino ha scritto:Dimenticavo di precisare che in quel file che ho postato, ci sono anche le istruzioni per la parte inferiore del grafico che contiene i dati del boiler solare e delle spie dell'anodo elettronico. Ovviamente quelle parti di codice vanno eliminate.


Immagine


Vorrei chiedervi se avete installato grafana sul raspberry dove c'è 123solar e Metern, perché io lo installato li ma riscontro dei rallentamenti credo ci siamo troppi processi, ed il rallentamento mi provoca la perdita di lettura su 123solar e metern. Cosa consigliate di fare?

Io ho raspberry pi4 ed ho dovuto disabilitare grafana ed il database.

Grazie

buemarino
Messaggi: 291
Iscritto il: 26/03/2016, 20:37

Re: Guida ufficiale per importare dati 123solar+meterN in Home assistant tramite file json

Messaggioda buemarino » 05/06/2021, 21:10

@StepSolar,
come dicevo qualche post sopra, Home Assistant è in un Rpi4 a parte e fa solo quello (necessari per me dissipatori e ventole) . 123Solar e MeterN li ho da sempre su un Rpi2 insieme alla gestione della resistenza del boiler solare. Quest'ultimo senza dissipatori o ventole, in funzione h24 da almeno 5 o 6 anni.
Fotovoltaico 4,195 Kw (2E2S) - Inverter Aurora PO 3.6 OUTD --> RPI 2b -->SDM120c x lettura consumi su stesso bus - SolarStretch v3.1 . Boiler solare con integrazione elettrica e PWM dimmer v1.22


Torna a “MeterN”

Chi c’è in linea

Visitano il forum: Nessuno e 14 ospiti