@kaijk
I have an issue I can’t seam to overcome. I have a Davis Vantage Vue. I am pulling data in from WeeWx via GitHub - michael-slx/weewx-mqtt: WeeWX extension for publishing data to an MQTT broker I am not having issues with getting the data into Home Assistant. I have one issue I have solved with and input_number helper but it won’t plot correctly. My advice was to do it with only a sensor.
Here is the issues. I need either a total of the tips or total rainfall to use the utility_meter and get things to work correctly with Plotly.
- name: "Davis Rain Tips Counter"
unique_id: uniqueid_weather_rain_count
state_topic: "weather/rainCount_count"
value_template: "{{ value | float(0) }}"
unit_of_measurement: "tips"
state_class: total_increasing
This publish a one then goes away. I can seam to get it to sum each time it publishes. I followed up with another sensor
template:
- sensor:
- name: "Davis Rain Inches"
unique_id: "weather_sensor_davis_rain_inches"
device_class: precipitation
state_class: total_increasing
unit_of_measurement: "in"
state: "{{ states('sensor.davis_rain_tips_counter') | float(0.0) * 0.01 }}"
This pulses the value of 0.01 and the value stays at zero after the publish of a tip.
I also have another mqtt sensor that gives me the same response as the above. It pulses .01 then goes away. I started using this one, but again cant get it to total with a sensor.
- name: "Davis Rain"
unique_id: uniqueid_weather_rain_inch
state_topic: "weather/rain_inch"
value_template: "{{ value|round(2) }}"
unit_of_measurement: "inch"
qos: 1
I could use some help. I got this working from start to here never doing MQTT before.
Need total rainfall
hourly
daily
monthly
yearly
(everything seems to hinge on this totaling the .01 pulses i get in HA from MQTT)