Hi All. Please if someone could point me in the right direction. I have connected a flow meter to a D1Mini using tasmota firmware. It works perfectly well and all data is brought into Home assistant with MQTT. I now however need to create a MQTT sensor using the values from tasmota.
This here is the code that I am using. I have put it in configuration.yaml undet MQTT
are you sure the multiplier is correct? Based on your topic response and what you’re saying, the template is completely different, which makes me doubt that the multiplier in the code that you provided is correct.
it is probably not correct but it should still give me a number in “L” correct? even though it might not be accurate until I have worked out the multiplier. Or am I understanding this wrong?
No, the template you posted is wildly incorrect. Your topic outputs a single number and you’re traversing in an object that doesn’t exist. Use the template I wrote previously.