Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Change Flowsmart water valve data to gallons

Featured Replies

Have installed the YS5018 Flowsmart plugin and I'm getting good data. My only issue is that the data is in liters. How do I change to gallons (which is currently displayed in the yolink app)? Does it require a custom configuration parameter?

The current release does not support it. I am working on an update that supports it - with other internal improvements

Hope it can wait until I release the new version (it is a bigger update to easier handle Yolink changing API calls)

In iox you can get the same capability with 3 variables and an iox program to convert the data real-time to gallons for use in your programs that need to work in gallons. I've done something similar with yolink 8003 temp/humidity sensors to track humidity rise for a bathroom fan.

Liters to Gallons program - provides a state variable for programs in gallons. It catches changes from yolink sensor real-time and assigns to state variable for programs to use. Read all of this and see the assumption in the notes and test it first.

If

liters_variable <> yolink-node-liters (Catch the sensor changing its value)

Then

gallons_variable_local = yolink-node-liters (capture the current liters from sensor)

gallons_variable_local *= 0.264172 (convert to gallons)

gallons_variable = gallons_variable_local (separate var so conversion does not confuse your programs)

liters_variable = yolink-node-liters (reset liters value, its last so the program doesn't stop executing)

Assumption: Based on my experience, yolink sensor data changes can be minutes or more apart. If its updating every few seconds, this program is not a good idea, but i find that unlikely

Run it for a while and watch the gallons variable to make sure it's doing the right thing.

With the program running correctly, use the gallons_variable state variable to trigger the automations instead of the node until the plugin gets updated. About the variables:

liters_variable - must be state - tracks changes from the yolink node. Set precision to equal to the node

gallons_variable_local - can be int or state - handles conversion to gallons without affecting programs

gallons_variable - must be state - ready to use gallons value. Use this for gallons for your actual application

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.