Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with german U-Umlaut in friendly name of mqtt topic #68

Closed
hansiputz opened this issue Sep 19, 2023 · 1 comment
Closed

Error with german U-Umlaut in friendly name of mqtt topic #68

hansiputz opened this issue Sep 19, 2023 · 1 comment

Comments

@hansiputz
Copy link

Hi
Today I found that an mqtt topic I am using in the meter configuration got a timeout since last update to 0.120.0
Before the update it worked.

evcc.yaml
...
meters:

  • name: grid_meter
    type: custom
    power:
    source: mqtt
    topic: ha/sensor/energie_surplus2/state
    timeout: 30s # don't accept values older than timeout
    scale: -1
    ...

And the (new) definition of the sensor in HA:
...

  • platform: template
    sensors:
    energie_surplus2:
    friendly_name: "PV Ueberschuss (inkl. Akku Ladung)"
    unit_of_measurement: 'W'
    value_template: >-
    {% if ((states('sensor.battery_charge_discharge_power') | int) > 0) %}
    {{ states("sensor.power_meter_active_power") | int }}
    {% else %}
    {{ states("sensor.power_meter_active_power") | int + states("sensor.battery_charge_discharge_power") | int }}
    {% endif %}
    ...

Befor update the friendly_name was "PV Überschuss (inkl. Akku Ladung)"
After Update this topic got a timeout in ha:
[site ] ERROR 2023/09/19 18:57:34 grid meter: ha/sensor/energie_surplus2/state outdated: 34s

Changed Ü ==> Ue and everything worked again

@thecem
Copy link
Collaborator

thecem commented Nov 11, 2023

@thecem thecem closed this as completed Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants