Right now the component allows only to trigger the SwitchBot.
The official SwitchBot API also allows to define the press duration (the time the servo motor stays on the “on” position).
It would be great to be able to define a custom duration when the switch entity is defined:
- platform: switchbot
mac: 'aa:bb:cc:dd:ee:ff'
duration: 10 # duration in seconds
Doing so, we could even use the same SwitchBot in multiple entities, each one with its own duration:
- platform: switchbot
name: 'short switch'
mac: 'aa:bb:cc:dd:ee:ff'
duration: 1
- platform: switchbot
name: 'long switch'
mac: 'aa:bb:cc:dd:ee:ff'
duration: 10