Add switch status to Influxdb 2 (write)

Hi,
I’ve recently added InfluxDB add on to my home assistant. Works great. Writes temperatures, consumption data etc to my influxdb.

How do I add additional data to influxdb? I would f.ex like to also write the switch status of switch.heavy_duty_switch (On/Off) to influxdb but not sure where to add it.
My config:
tags:
source: HA
tags_attributes:
- friendly_name
default_measurement: units
exclude:
entities:
- zone.home
domains:
- persistent_notification
- person
include:
domains:
- sensor
- binary_sensor
- sun
- tibber
entities:
- weather.home

br
Stian