Code copied from @lukasroegner credentials-generator-website.js
Use https://github.com/lantrix/libdyson-neon/tree/bearer-token to get the Bearer token.
gh repo clone lantrix/libdyson-neon
cd libdyson-neon
git checkout bearer-token
python -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
python get_devices.py
Get value for Account ID
Get value for Bearer Token
Edit in this repo .env
with the above two values as shown, using your values:
DYSON_ACCOUNTID="b45790f0-26cd-40ab-a359-e20b48be3290"
DYSON_API_TOKEN="OKDCBCXUWKTZSXWRIC6Q1QGYW1OMYSO95ZF2BHVIC0N1JU3X1OPJQEEF8AC8OFD0-1"
Generate credentials object for homebridge-dyson-pure-cool
- Install node.js (tested with
v18
) - Install
pnpm
- for example with npm:
npm install -g pnpm
- for example with npm:
- Install dependencies:
pnpm install
- Start the web app:
pnpm start
Access http://localhost:8089 to view your homebridge-dyson-pure-cool
credentials object.
Tested successfully with homebridge-dyson-pure-cool
2.7.5
with one Dyson device on the account.