Switches vs Devices

Not sure if this is in the right category, but let’s try.

I’m getting a bit confused and think maybe I’m missing something obvious. Here’s my setup:

I have a number of Z-wave built-in switch/dimmers (Fibaro Dimmer 2), and these are connected to normal non-smart dimming lights. These dimmers have 2 switches, and I can theoretically attach 2 lights to it. I can then also make the buttons do whatever I like through automations.

But addressing the automations is where it confuses me. So the entity is a switch, with a dimming value (say Switch 1 and Switch 2). But then the device I’m controlling is what I’m interested in. So let’s say the light connected to Switch 1 is called “Table Light”. If I now want an automation where if I press Switch 1 2 times to turn on the “Floor Light”, my automation is as such:

When Table Light is pressed twice, turn on the Floor Light.

Is there a way I can make this simpler? Am I missing something obvious here?

Thanks in advance.