Water flow sensor with temperature yf-b6 esphome

hi! anyone here use a water flow sensor like this with temperature? can share yaml?
my water flow works perfect… dont know how to use the temperature option …something about dallas code… its correct? thanks!!

this is the model yf-b6

Just found this amazing item on AliExpress. Check it out! CLP8.076 | G3/4" Flow Sensor Water Flow Switch With Temperature Detection For Turbine Liquid Sensor Copper Shell Hall Flow Meters 77UD
https://a.aliexpress.com/_mPA1iRm

esphome:
name: water_flow_meter
platform: ESP8266
board: nodemcuv2

wifi:
ssid: “your_wifi_ssid”
password: “your_wifi_password”
in

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: “Water Flow Meter Fallback Hotspot”
password: “fallback_password”

captive_portal:

Enable logging

logger:

Enable Home Assistant API

api:
password: “api_password”

ota:
password: “ota_password”

Water Flow Sensor

sensor:

  • platform: pulse_counter
    pin: D2 # GPIO pin where the flow meter is connected
    name: “Water Flow Rate”
    update_interval: 1s
    unit_of_measurement: “L/min”
    accuracy_decimals: 2
    filters:
    • lambda: return x/ 595;

Come on dude. You have been a member of these forums for well over a year you should know this by now: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16