15 hours ago15 hr 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?
9 hours ago9 hr 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)
4 hours ago4 hr 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 unlikelyRun 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