Gate opening

Hi everyone,
just a suggestion to improve a (working) configuration.

I domotized my gate by cloning its RF signal into a Broadlink RM switch to control it:

- platform: broadlink
  host: !secret b2_ip
  mac: !secret b2_mac
  timeout: 15
  switches:
    cancello:
      friendly_name: "Cancello"
      command_on: !secret cmd3_on

This creates two icons (lightnings) “ON” and “OFF” in HA which is useless because they should use the same code and anyway I cannot control the state of the gate ( I can still open the gate using other devices so HA wont be aware of the gate state).

Is it possible to show only one icon for the switch or what solution can you suggest?

Thank you
SoL

You could configure it using a script instead of a switch entity. The way to do this is described in the docs

Supercool, I was thinking about a script but never used it.
Gonna test it, thx!