Hi,
Ich habe das Problem, dass nicht alle Werte von MQTT angezeigt werden. Hatte mich dann mit mqtt_statement beschäftigt aber mir gefällt die Anzeige nicht.
MQTT Ausgabe
192.168.2.155
evcc
loadpoints
site
tariffCo2Loadpoints = 156
homePower = 127.02
tariffPriceLoadpoints = 0.2628
gridPower = 127.02
gridCurrents = 0
tariffPriceHome = 0.2628
tariffCo2Home = 156
greenShareLoadpoints = 0
greenShareHome = 0
pvPower = 0
batteryGridChargeActive = false
tariffGrid = 0.2628
tariffCo2 = 156
statistics
updated = 1735653185
status = online
configurations.yaml
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
sensor:
- name: "EVCC Grid Power"
unique_id: evcc_grid_power
state_topic: "evcc/site/gridPower"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "W"
availability_topic: "evcc/status"
device_class: power
- name: "EVCC PV Power"
unique_id: evcc_pv_power_2
state_topic: "evcc/site/pvPower"
value_template: "{{ value | round(1) }}"
unit_of_measurement: "W"
availability_topic: "evcc/status"
device_class: power
- name: "EVCC Tariff Grid"
unique_id: evcc_tariff_grid
state_topic: "evcc/site/tariffGrid"
value_template: "{{ value | round(1) }}"
unit_of_measurement: "EUR/kWh"
availability_topic: "evcc/status"
- name: "EVCC geladen an Wallbox"
unique_id: evcc_geladen_an_wallbox
state_topic: "evcc/site/statistics/total/chargedKWh"
unit_of_measurement: "kWh"
availability_topic: "evcc/status"
device_class: energy
state_class: total_increasing
- name: "EVCC Hausverbrauch"
unique_id: evcc_hausverbrauch
state_topic: "evcc/site/homePower"
unit_of_measurement: "W"
availability_topic: "evcc/status"
device_class: power
- name: "EVCC PV Energy"
unique_id: evcc_pv_energy
state_topic: "evcc/site/pvEnergy"
value_template: "{{ value | round(1) }}"
unit_of_measurement: "kWh"
availability_topic: "evcc/status"
- name: "EVCC PV Dose Power"
unique_id: smart_outdoor_socket_leistung
state_topic: "evcc/loadpoints/2/chargePower"
value_template: "{{ value | round(1) }}"
unit_of_measurement: "kW"
availability_topic: "evcc/status"
device_class: power
- name: "EVCC PV Dose Energy"
unique_id: smart_outdoor_socket_energy
state_topic: "evcc/loadpoints/2/chargedEnergy"
value_template: "{{ value | round(2) }}"
unit_of_measurement: "kWh"
availability_topic: "evcc/status"
device_class: energy
state_class: total_increasing
- name: "EVCC PV Dose Energy"
unique_id: evcc_pv_dose_energy
state_topic: "evcc/site/evccPVDoseEnergy"
unit_of_measurement: "kWh"
availability_topic: evcc/status
device_class: energy
state_class: total_increasing
sensor:
- platform: rest
name: EVCC Tariff Forecast
unique_id: evcc_tariff_forecast
resource: http://192.168.2.155:7070/api/tariff/grid
value_template: "{{value_json.result.rates[0].price}}"
json_attributes:
- result
scan_interval: 60
- platform: rest
name: EVCC Tariff Forecast
unique_id: evcc_tariff_forecast
resource: http://192.168.2.155:7070/api/tariff/grid
value_template: "{{value_json.result.rates[0].price}}"
json_attributes:
- result
scan_interval: 60
influxdb:
host: 192.168.2.155
port: 8086
database: homeassistant
username: homeassistant
password: [redacted]
max_retries: 3
default_measurement: state
evcc.yaml
network:
# schema is the HTTP schema
# setting to `https` does not enable https, it only changes the way URLs are generated
schema: http
# host is the hostname or IP address
# if the host name contains a `.local` suffix, the name will be announced on MDNS
# docker: MDNS announcements don't work. host must be set to the docker host's name.
host: 192.168.2.155
# port is the listening port for UI and api
# evcc will listen on all available interfaces
port: 7070
log: debug
interval: 30s
meters:
- name: grid
type: template
template: tibber-pulse
usage: grid
token: [redacted]
homeid: [redacted]
- name: my_pv
type: custom
power:
source: mqtt
topic: evcc/site/pvPower
- name: my_wb
type: custom
power:
source: mqtt
topic: evcc/site/pvDosePower
#chargers:
# - name: mqttcharger
# type: custom
# status:
# source: mqtt
# topic: evc/state
# enabled: # charger enabled state (true/false or 0/1)
# source: mqtt
# topic: evc/charging
# timeout: 30s
# enable: # set charger enabled state (true/false or 0/1)
# source: mqtt
# topic: evc/chargerenable
# timeout: 30s
# maxcurrent: # set charger max current (A)
# source: mqtt
# topic: evc/current
# timeout: 30s
# - name: my_pv
# type: template
# template: deye-string
# usage: pv
# - name: meter_charger_1
# type: custom
chargers:
- name: Elli
type: template
template: demo-charger
status: A # optional
power: 0 # optional
enabled: true # optional
- name: Paneldose
type: template
template: demo-charger
status: A # optional
power: 0 # optional
enabled: true # optional
# - name: my_smartswitch
# type: template
# template: homewizard
# host: 192.0.2.2 # IP-Adresse oder Hostname
# standbypower: 15 # Leistung oberhalb des angegebenen Wertes wird als Ladeleistung gewertet (optional)
vehicles:
- name: my_car
type: template
template: peugeot
title: e-208 # Wird in der Benutzeroberfläche angezeigt (optional)
capacity: 50 # Akkukapazität in kWh (optional)
user: [redacted] # (bspw. E-Mail Adresse, User Id, etc.)
accessToken:
refreshToken:
# vin: V... # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (optional)
site:
title: Zuhause
meters:
grid: grid
# pv: my_pv
# battery: battery
loadpoints:
- title: Stellplatz
charger: Elli
mode: "off"
#meter: meter_charger_1
#vehicle: vehicle_1
- title: PV Dose
charger: Paneldose
mode: "off"
#meter: meter_charger_2
#vehicle: vehicle_2
tariffs:
currency: EUR # three letter ISO-4217 currency code (default EUR)
grid:
type: template
template: tibber
token: [redacted]
homeid: [redacted]
co2:
type: template
template: grünstromindex
zip: [redacted]
mqtt:
broker: 192.168.2.155:1883
topic: evcc # root topic for publishing, set empty to disable publishing
# clientid: mqtt-explorer-52dfac40
user: mqtt
password: [redacted]
Hat jemand noch eine Idee?