[Beta] Flow Engine - A visual drag and drop rules engine - 100% Local

,

Having trouble getting this logic to work.


When I turn on the trigger the action does not happen.

Also; Refresh Tiles doesn't seem to do anything, the tiles do not update unless I back out of the editor and re-open the flow.

Just an observation, though I haven't played with this yet, your actions seem to contain events. Shouldn't those be Hold, DoubleTap, and Push, instead of Held, DoubleTapped, and Pushed?

The blue tile is;
Type [Action], and the action is,
Office Light Switch [On],
(top two lines).
The rest of the blue tile is populated by the system.

What I expected was with the Trigger being [On] "current switch on", that the Action would also be [On]. What I have is the Action tile says off, (the last line in the blue tile). Obviously I'm doing something wrong I just dont know what. I know Brian is working on it and I'm just posting to learn, so, no hurry, no worry.

New code drop... time to Repair!

Tons of little odds and ends, biggest thing is the way variables work under the hood. If you have flows using variables they definitely need some help. Should be the last time for something like this. Code is getting pretty solid.

Gonna add/fix the Mode functions next!

1 Like

When looking at a Flow, it's not dynamic in the sense that if something changes on the Hubitat side (switch is turned off), it will automatically update on the flow. It just shows what the current status is when the flow/tile was loaded.

Does refreshing the page refresh the state of devices? If so, perhaps you could add a refresh button to make it obvious.

1 Like

still working on a few other things but LIVE flow highlighting is part of the next update!

3 Likes

When opening the Flow Engine app, I see a duplicated "Enter a name for this automation*". Flow Engine was uninstalled, files deleted, and installed again. And then repaired a few minutes ago just for fun.

Changing the first has no effect, and will revert to whatever is in the second one. The second one is changeable and effects what is displayed in the first.

2 Likes

No. The Refresh Tiles button doesn't seem to do anything. I have to exit the editor and reload the flow.

@klinquist - thought you might find this topic to be of interest.

New drop... Go Repair!

  • If you have a flow loaded in the editor and it runs, you'll see the highlighted route it took.
  • Modes are now included
  • Device selectors don't jump anymore
  • Fixed the double naming
  • Lots of under the hood stuff

@tmpullen , Refresh Tiles button does a lot of things behind the scenes - adjusts the tiles so the connector lines are correct, reloads the devices so the currents are correct and more. It almost isn't needed anymore but if things just don't look right, hit the Refresh button. :wink:

So what do you want added next?

2 Likes

Request:

  1. please name files in File Manager starting with FlowEngine_xyz or something consistent to identify all files related to Flow Engine.

I also found a file called flowModes.json, too.

  1. It's possible I f*ed things up by saving the first few flows with a space in it. Didn't know the following restrictions. Request to please put that warning on the flow editor page, or prevent the flow from saving, or sanitize the input. To save me from myself. :grin:

1 Like

Where is the appid and token stored? Uninstalled all of the above files, uninstalled the app. Reinstalled.

The Flow Editor still remembered and old appid and token. Opening the flow editor (with old app id and token) gives me 4 of these:

Corrected the app id and token and then loaded the devices.

Would like to know what needs to be deleted to ensure the old appid and token are not remembered.

Cannot load saved Flows.

  1. Saved flow with "legal" name

  1. Flow saved

  1. Attempt to load saved flow

  1. log

Nobody try to download for a bit, making some naming changes

edit: it's taking forever for HPM to grab the new manifest. There should be a way to force HPM to get the new manifests.

Alright everything should be back in place.
Easiest way to change over is to uninstall and then re-install. Hey, that's what beta is all about! :grin:

  • Saved flow with "legal" name - Fix in place
  • appId and Token are saved in the browser local storage, clear the browser cacth to completely remove it.

Good luck!

3 Likes

Just added some more polish to the editor, big change is a Search box for device dropdowns.

Just need to do a repair

When I make a change to a Flow, the change will not work until I open the Child App and click "Done." After that, the newly edited Flow works as expected.
Nice updates so far. Flow Engine is getting flowier. :slightly_smiling_face:

Not anymore. Just remember to 'Save flow' after any changes. For now on, if you make any changes to the Trigger, then yes - you have to go into Hubitat and open the child app and hit 'done'. For any other nodes - conditions, actions, etc. Just have to 'Save Flow' in the Editor and you'll be all set.

Do a Repair to see the changes.

"Feel the Flow!"

Awesome work!

For Comparator, can we get a "Between"? I think everything is there except for that.

Thanks!