Hi, ich will den Deye microinverter ohne Cloud per curl auslesen:
Das Beispiel das ich gefunden habe sollte so aussehen. Die Werte im Converter passen wohl zur Abfrage: Die IP Adresse ist natürlich die “richtige”:
sensor:
- name: power_balkon_pv_now
platform: command_line
command: curl -s -u admin:admin http://192.168.x.x/status.html | grep -E "\webdata_now_p(\s|$)" | cut -d'"' -f 2
unit_of_measurement: "W"
scan_interval: 60
- name: power_balkon_pv_total
platform: command_line
command: curl -s -u admin:admin http://192.168.x.x/status.html | grep -E "\webdata_total_e(\s|$)" | cut -d'"' -f 2
unit_of_measurement: "kWh"
scan_interval: 120
- name: "balkon_pv_energy"
state: "{{ states('sensor.power_balkon_pv_total') if states('sensor.power_balkon_pv_total') | float > 0 }}"
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
unique_id: balkon_pv_energy
- name: power_balkon_pv_now
platform: command_line
command: curl -s -u admin:admin http://192.168.x.x/status.html | grep -E "\webdata_now_p(\s|$)" | cut -d'"' -f 2
unit_of_measurement: "W"
scan_interval: 60
Nun bekomme ich folgenden Fehler:
Logger: homeassistant.config
Source: config.py:982
First occurred: 19:26:00 (1 occurrences)
Last logged: 19:26:00
Invalid config for [template]: expected a dictionary @ data[‘sensor’][3]. Got None. (See /config/configuration.yaml, line 43).
Als Novize stehe ich echt noch auf Kriegsfuss mit den Definitionen. In den Dokus gibt es neue und alte Schreibweisen.
Kann mir jemand auf die Sprünge helfen?