Create entity (switch) for Go-echarger

Hello, I’m relatively new to homeassistant. I would like to charge my wallbox (Go-echarger) with excess PV using the application: INVENTOCASA - PV Excess Optimizer. I integrated the Goe-charger into Home assistant and have all entities in HA. I have also installed the automation of PV Excess in HA. In the PV Excess blueprint I now need a switch that turns the wallbox on when there is a PV excess and off when there is no excess. The problem now is that the entities for switching on and off in the Goe-charger consist of 2 buttons. one for switching on, the other for off. But I need them as a switch in one entity. Does anyone have a solution for me? Greetings Leo

You’re unlikely to get assistance if you are not more precise in what you have installed from others and do not show what you have done yourself…

Sorry that I expressed myself unclearly. It’s about these 2 entities you see in the picture below of the wallbox. I need it as a switch in an entity for automation.

As you can see in the picture, I need the entity here as a switch entity in the blueprint to enter. Unfortunately I can’t enter 2 entities like I have now as buttons.

What blueprint?

You could create a template switch out of your buttons, but it will be useless if the blueprint needs the state of your e-charger at some point. Unless you can get that state from somewhere else…

I’ve already spent a few hours creating a template switch. I have the template switch with the code below on the Homeassistant Lovelace , but it doesn’t switch the wallbox on/off as desired.

  • switch:
    • platform: template
      switches:
      goecharger:
      turn_on:
      service: switch.turn_on
      target:
      entity_id: button.go_echarger_241534_frc_3
      turn_off:
      service: switch.turn_off
      target:
      entity_id: button.go_echarger_241534_frc_2
  1. Please format any code you post to the forum

Code_format

  1. As I (tried to) point you to, buttons use the button.press service, not the switch.turn_ one

Hello, thanks for your help, it’s working now. When I set button.press instead of switch.on it worked.

[image]