Button + (Release 0.7.25, Test 0.7.26)

Hi Adrian, and others reading this :blush:.

I have an advanced flow where I’m struggeling to use the Button+ (v1) properly, and I was wondering if you or anyone else can help me in the right direction.

To simplify:

1 trigger is monitoring my TVs power state, if powered on then set variable “TV on” to yes.

1 trigger monitor the left button on configuration 2 page 1, if turned on then set the same variable (TV on) to yes.

A variable change triggers another part of the flow, TV On is set to yes and stuff happen.

1 more trigger is monitoring my TVs power state, if powered off then set variable “TV on” to no.

1 more trigger monitor the left button on configuration 2 page 1, if turned off then set the same variable (TV on) to no.

Why multiple triggers you ask? Because the TV is sometimes started via remote control, sometimes via homey, sometimes via Button+ etc.

The problem is:

The Button+ button press creates a loop where the button switches from an off state to an on state (the TV turns on), but then the button immediately turns itself off, and then back on again.

How would you suggest setting this up to avoid this loop? Ideally, I’d like to be able to press the button on Button+ to power it on, and then either turn it back off a while later, or turn it off using the remote (and then the button should update its status to off).

Edit: Here’s a video showing the issue:

And here’s a few images showing the advanced flow:

Powering on:

Google Photos

Powering off:

Google Photos

Actions based on whether a power on, or power off action was triggered at the image below. The red icons at the far right that were cut off are the last cards in the chain, they send a command to the TV to set a specific HDMI input.

Google Photos

I’m also seeing a lot of these errors in the diagnostics log:

Google Photos

Could you open the app settings, change the Show Options For to Import and Export, Tap on Export and then copy the contents of the output and paste it into a text document. Then send it to me at ady@rockalls.uk

1 Like

Is it already possible to configure a svg for the display and bars, @Adrian_Rockall?
I searched for svg in this topic but couldn’t find it. Or did I miss something?

I haven’t added that yet, but have been thinking about it.

Would be great, if possible.
Feel free to let me know I I can help you anywhere…
Thanks for the quick response!

I have published a new test version that has a new Flow action card to send SVG code to a button.

If a button has a page defined with a multipage screen, you will need to define the button on each page for the Flow to work. If the buttons is not defined on any page then you can send the SVG code to page 0.

To clear the image, just send empty SVG code the button.

I t seems the layout can be a bit funny if you have text and an SVG, so it is probably worth either clear the text or use a template that has an empty button.

Great, @Adrian! As always; you’re the best.
Is it also possible to select a svg by inputting it via the button confguration in the apps settings screen?

Have a great Easter!

Not yet. I want to test the core function first.

1 Like

Sending SVG’s to the buttons via flows works flawlessly here.

I expect te following is as expected?
When I resend the original configuration (so text only) it doesn’t overwrite the svg and keeps showing it instead of the text as configured.
Only sending a new empy (just a “space” in de “SVG string” field) SVG clears the SVG and makes it show the text as in the configuration again…

By the way (minor detail): in this SVG flow: “left/right” translates in Dutch as “linker / rechter” in this case.

AFAIK, the svg takes priority, so if one has been set it overrides the text.

Ah, clear. Thought so. Thanks!