With the Cloudflare integration, you can keep your Cloudflare DNS records up to date.
The integration runs every hour, but can also be triggered by running the
The setup requires an API Token created with
Zone:DNS:Edit permissions for all zones in your account.
An easy way to create this is to start with the “Edit zone DNS” template then add
Zone:Zone:Read to the permissions.
Adding Cloudflare to your Home Assistant instance can be done via the user interface, by using this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
Browse to your Home Assistant instance.
In the sidebar, select Settings.
From the configuration menu, select Devices & Services.
In the bottom right, select the Add Integration button.
From the list, search and select Cloudflare.
Follow the instructions on screen to complete the setup.
Usage of external service
This integration uses the whoami service from home-assistant/services.home-assistant.io to set the public IP address.
Due to a limitation in the Cloudflare API, you can not use this integration with any of the following TLD’s:
This integration can only update A records.
This integration can only have 1 instance and manage 1 Zone/TLD.
This integration must be deleted and re-added to change the Zone and A record selection. You cannot view which records were selected or view the API Token once the integration is configured.