Charging station status shown in Homekit?

Hi All

I have installed the Easee Chargingstation and would like to integrate the status in Homekit
But all the other integration I have is not defined like this one:

image

So how should I go about this? Defining it as a switch?
Disconnected = Off
Connected = On
Would that work? and how would i define this in the YAML file (Have all my configuration there)

Sorry I normally just do the basic integrations, so this is new

Okay I tried changing this sensor in Node red:


This changes the binary.sensor to on/off but how to “create” a virtual switch for this so I can see the status in other devices…