Skip to content

Instantly share code, notes, and snippets.

@theundefined
Created August 20, 2022 15:24
Show Gist options
  • Save theundefined/5f233be79a3bb7b0ea6d4edbdbeaa6b5 to your computer and use it in GitHub Desktop.
Save theundefined/5f233be79a3bb7b0ea6d4edbdbeaa6b5 to your computer and use it in GitHub Desktop.
mqtt:
sensor:
- state_topic: "wmbusmeters/XXX"
name: Apator XXX
value_template: |-
{% if value_json["total_m3"] < 1000 %}
{{ value_json["total_m3"] }}
{% else %}
{{ states(entity_id) }}
{% endif %}
unit_of_measurement: 'm³'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment