Storm of onSet events
### Analysis

At my [plugin](https://github.com/JeroenVdb/homebridge-daikin-cloud) I noticed that when I flip a Switch service the onSet handler isn't called immediately. It takes some time to be called and when it's called it is called like 10 times or more.

Is there maybe problem with combining a HeaterCooler or Lightbulb and Switches?

### Expected Behavior

I would expect the Switch to send out the events, and only one event.

### Steps To Reproduce

I took the plugin template and tried to simulate it: https://github.com/JeroenVdb/homebridge-plugin-template-test
There is a Lightbulb Service with 2 Switch services. When I try to use Switch service in the Home app I get (delayed) the logs bellow.

When I just use the Homebridge interface it doesn't seem to happen. Could it be a Apple Home problem? But in that case I would guess most people have this problem?

Commit that added the Switches: https://github.com/JeroenVdb/homebridge-plugin-template-test/commit/cc78d639eaf41e9478fb44455239a2f2a95f53db

### Logs

```markdown
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true
[8/6/2024, 5:17:44 PM] [Example Dynamic Platform sqfdsqfqds ] Set Characteristic On 2222 -> true

```
```


### Configuration

```json
Default template plugin config.
```


### Environment

- OS: MacOS (macOS Sonoma) and Linux (Raspberry Pi)
- Software: hb-service
- Node: 18.19.1
- npm: 10.2.4

Tried on my local machine and my dedicated Raspberry Pi, same problem

### Process Supervisor

hb-service

### Additional Context

_No response_