Sign up for a new Developer account on Works with Legrand website (https://developer.legrand.com/login).
Sign in, go to menu "API > Subscriptions" and make sure you have "Starter Kit for Legrand APIs" subscription activated; if not, activate it.
Go to menu "User > My Applications" and click on "Create new" to register a new application:
- Insert a valid public URL in "First Reply Url".
- Make sure to tick the checkbox near scopes
comfort.read
andcomfort.write
Submit your request and wait for a response via email from Legrand (it usually takes 1-2 days max). If your app has been approved, you should find in the email your "Client ID" and "Client Secret" attributes.
Public Url = https://github.com/andrea-mattioli/bticino_x8000_component
First Reply Url = https://my.home-assistant.io/
From the official "Thermostat" app go to Account --> Third party access
client_id: received via email
client_secret: received via email
subscription_key: subscription key
domain: my home assistant public domain ex: https//pippo.duckdns.com:8123 (specify the port if is not standard 443)
Copy or directly open the proposal link
Accept the scope
Copy the url link
Paste
Select thermostats to add as Entity (Default ALL)
Thanks to everyone who will make a donation!