Dashboard button template doesn't work? Have to use virtual switch and rules?

Sample dimmer switch

I want to add buttons to dashboard. Eg "on", "off" and "refresh" etc

I know i can use the dimmer template. But I just want to add one button from that device.

added button template like this.

also tried putting a number.

both ways, the button itself doesn't do anything.

I know the work around for this is just use virtual switches and then rules. But that can solution can get bloated for 21 buttons.

How do i just add simple buttons that can action a command from device details? I tried searching here couldn't find it.

These posts say cannot do it. Have to do it virtual switch way. Posts is 6 years old.

The other posts are correct. A button template is for running button commands, like push or hold. If you donโ€™t have a button device, it is not going to work that way.

Simple yet very useful feature.
Guess virtual switches is the only way for now.

will just get so bloated with so 21 rules and 21 virtual buttons for the 21 actual buttons.

You don't need that many buttons. You can create multiple button numbers on a single device. And the Button Controller app can keep all the "rules" grouped together.

so you mean like this.

3 physical buttons. Create 1 virtual button, That one virtual button will have 3 button states that i can use. Those 3 button states can action the 3 physical buttons.

I'm not sure what you mean with "physical" or "states." My suggestion is to create one virtual button device, set the number of buttons to whatever you need, then use Button Controller to create whatever automations you want in response to your desired combination (e.g., button 1 pushed, button 2 held, etc.).

You might find remote builder useful in this scenario.
image

More info: [RELEASE] Remote Builder โ€“ A New Way to Control Devices - 6 Remotes Available

i'll give it a go. Looks interesting.

can get granular with what the buttons do. This is nice! didn't know about button controller.

So far i achieved similar results with virtual buttons and rule machine. Button Controller looks easier to work with.

1 Like

You will likely find this out as you start to use it, but from your last screenshot, you might notice that under the "Button" column there is the number 1, if you choose to expand your BC rule to cover multiple buttons, e.g. 1, 2, 3, etc, then you will see these represented here with rows for each.

yea i created one virtual button with 21 buttons. And in Button Controller will make the rules for all of them. Then make it appear in dashboard as i want.

question, the DoubleTap and Held actions dont work via dashboard buttons

image

They only for physical buttons I assume?

You must choose the button event that you want tapping the dashboard tile to do. This is chosen per tile, and the event is generated when you tap on the tile (same as performing any other simple action on other dashboard tiles) -- there is no "literal" double-tapping of the dashboard tile, just as there is also no pushing or holding. It's the event that you chose in the tile configuration.

In your case, you must have chosen "pushed." As I mentioned above, you can use any combination that you want -- e..g, for 21 different things, you don't need 21 buttons, but that might be the easiest way (for you) to do it. You could also use 7 buttons and 3 events from each, e.g., pushed, held, and released, or any combination that gives you enough different events to do however many different things you need.

1 Like

ya tested that and you are correct. Interesting.

yea true could do the 7/3 way. Multiple solutions. Good to know. Thanks!

ya this way looks tidier.

The buttons in dashboard works good!!

image

but all buttons show up has "dooya remote" text. How do I put custom text here?

there should be some CSS way to custom edit the titles im guessing.

identify tile by it's number.

then edit it's attributes eg title.

would be nice if possible. Can edit CSS for individual tiles this way. Dashboard templates apply to all tiles.

Ok did some CSS digging and got it working this way.

Had to hide the standard text first. Then apply the new CSS with new text.

image

image

Cool stuff!!

1 Like