Skip to content

Instantly share code, notes, and snippets.

@letsautomatenet
Last active July 2, 2025 08:14
Show Gist options
  • Save letsautomatenet/6b70dac109b4876d05c2ea4a25d7823c to your computer and use it in GitHub Desktop.
Save letsautomatenet/6b70dac109b4876d05c2ea4a25d7823c to your computer and use it in GitHub Desktop.
Sonoff SWV - Liters Per Minute
# Create a Template Sensor in Home Assistant to show Liters Per Minute (L/m) instead of Meters Cubed Per Hour (m³/h)
# Set "Unit of Measurement" to "L/min" and "Device Class" to "Volume FLow Rate"
{{ (states('sensor.front_garden_sprinklers_flow') | float * 1000 / 60) | round(2) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment