An add-on to integrate Petoneer Smart Dot with Home Assistant.
- Head to Supervisor => Add-on Store.
- Click on the three dots on the top right, select Repositories.
- Add this repository https://github.com/marcomow/hass-addons.
- A new section should appear "marcomow Home Assistant add-on repo", click on "Petoneer Smart Dot controller", install.
- Head to Configuration -> Helpers.
- Create a new "Input Select".
- Name it "Smartdot" and add the following options: stop, preset_small, preset_medium, preset_large.
- Head to Configuration -> Automations.
- Add automation.
- Click on the three dots on the top right, select Edit in YAML.
- Copy-paste the following code.
alias: Smartdot Handler
description: ''
trigger:
- platform: state
entity_id: input_select.smartdot
condition: []
action:
- service: hassio.addon_stdin
data:
addon: 96fe3986_smartdot
input: '{{ states(''input_select.smartdot'') }}'
mode: single
Add a new card by entity and select input_select.smartdot.
Enjoy!
I learned how to reverse engineer a bluetooth device thanks to @urish! In particular I took inspiration from these articles:
- Reverse Engineering a Bluetooth Lightbulb
- Start Building with Web Bluetooth and Progressive Web Apps
Without the open source code of @balda I would never had properly setup the Dockerfile, I heavily took inspiration from this repository.