Replies: 6 comments 2 replies
-
If there is a false value, this is not transfered. You need to make a filter on the receiver side if you want to remove those inputs. |
Beta Was this translation helpful? Give feedback.
-
Hi, does anyone has a proposal for such a filter? |
Beta Was this translation helpful? Give feedback.
-
I am using the JSON API with the following code: - platform: rest
resource: http://gasmeter.fritz.box/json
name: "Gaszähler"
unit_of_measurement: "m³"
device_class: "gas"
icon: "mdi:meter-gas"
value_template: "{{ float(value_json.main.value) }}"
json_attributes_path: "$.main"
unique_id: "gasmeter"
state_class: "total_increasing" I think generally the JSON api is a bit more safe to use, though unfortunately sometimes I have errors with that too. I didn't quite got to the bottom of it. |
Beta Was this translation helpful? Give feedback.
-
You could try to use the Filter sensor using your MQTT sensor as the base: https://www.home-assistant.io/integrations/filter/ with the setting "range" and a lower_bound of your current value. That way it should filter out the 0 values. |
Beta Was this translation helpful? Give feedback.
-
Hello together, I'm using this configuration for 'homeassistant' and it works fine:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for all your input. I started to consolidate it in https://github.com/jomjol/AI-on-the-edge-device/wiki/Integration-Home-Assistant |
Beta Was this translation helpful? Give feedback.
-
First of all - great project.
I have a problem with the display of the water meter value in Homeassistant.
Sometimes the value is given as 0 m³, sometimes the right value is present.
As a result, the graphics have gaps.
Can I fix the fact that it always shows the last value and the graphic curve is continuous in Homeassistant?
My code in a "sensor" folder as "wasserzahler.yaml":
platform: mqtt #Minus instead of point!
name: "Wasserzähler"
state_topic: wasserzaehler/main/json
value_template: "{{ value_json.value }}"
unit_of_measurement: "m3"
icon: "mdi:water"
Beta Was this translation helpful? Give feedback.
All reactions