Just following up on some previous threads.
Had some troubles getting this installed. You might be amused at this. I couldn't get it to work. I typed "how to install Hubitat_Switchbot" into Chat GPT. It referenced your code and my goodness...the instructions were dead simple. And it may be you have these posted somewhere but i coudnt find them,
My bots are running YAY. i can turn on my water heater now from a zigbee remote switch.....and not have to use the scheduling in Switchbot.
Awesome code. Thanks
Mac
For shits and giggles...i gotta copy the instructions Chat GPT gave me in the event it helps someone else.
Step 1: Install the Driver
- Access Hubitat Web Interface:
- Navigate to your Hubitat hub's web interface.
- Install via Hubitat Package Manager (HPM) (Recommended):
- If you have HPM installed:
- Open HPM.
- Search for
hubitat_switchbot. - Follow the prompts to install the driver and associated device drivers.
- If you don't have HPM:
- Install it by following the instructions on the Hubitat Community.
Step 2: Obtain SwitchBot API Credentials
- Enable Developer Mode in SwitchBot App:
- Open the SwitchBot app on your mobile device.
- Navigate to Profile > Preferences > Developer Options.
- Enable Open Token.
- Retrieve Token and Secret Key:
- After enabling, your Token and Secret Key will be displayed.
- Copy and securely store them for later use.
Step 3: Configure the SwitchBot System Device
- Create a Virtual Device:
- In Hubitat, go to Devices > + Add Device.
- Select Virtual.
- Name the device (e.g., "SwitchBot System").
- Set the Type to
SwitchBot System.
- Enter API Credentials:
- Open the newly created device.
- In the Preferences section:
- Enter your Token and Secret Key.
- Set the Refresh Interval (e.g., 600 seconds). This determines how often the device status is refreshed.
- Click Save Preferences.
- Create Child Devices:
- After saving, click the Create Child Devices button.
- This will automatically create devices for each of your SwitchBot devices linked to your account.