sonpython / homeassistant-cloudflare-ddns

This add on will check the IP of the server and update to cloudflare DNS
MIT License
0 stars 1 forks source link

Cloudflare DDNS Updater Add-on for Home Assistant

An add-on for Home Assistant to automatically update your Cloudflare DNS record with your current public IP address.

Features

Installation

  1. Copy the git repo:

    https://github.com/sonpython/homeassistant-cloudflare-ddns.git
  2. Go to the Home Assistant web interface, and navigate to Settings -> Add-ons -> Add-on Store.

  3. Click on the three dots in the top right corner and select Repositories. Add the path to the add-on repository.

  4. You should now see Cloudflare DDNS Updater in the list of available add-ons. Click on it and then click Install.

Configuration

After installing, you need to configure the add-on. You can edit the configuration through the Home Assistant UI.

cf_api_token: "YOUR_CLOUDFLARE_API_TOKEN"
zone_id: "YOUR_ZONE_ID"
record_name: "YOUR_RECORD_NAME"
update_interval: 300  # Time interval to check for IP changes (in seconds)

How to Get Cloudflare Credentials

1. Get cf_api_token

2. Get zone_id

3. Set record_name

Usage

Logs

You can see the logs of the add-on in the Home Assistant Supervisor -> Cloudflare DDNS Updater page to verify if the IP update was successful.

Support

If you encounter any issues or have questions, please create an issue in this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.s