From ca0bc1639137454efd698ebb33e30c81d39101cf Mon Sep 17 00:00:00 2001 From: dennismdejong Date: Mon, 27 Jul 2026 21:44:00 +0200 Subject: [PATCH] fix: enable daily energy sensors by default (Closes #429, Closes #386, Closes #373) --- README.md | 6 +++--- custom_components/panasonic_cc/const.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1ea88f0..51abc58 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ The initial setup form includes the following options: |--------|-------------|---------| | **Panasonic ID** | Your Panasonic Comfort Cloud account ID | — | | **Password** | Your Panasonic Comfort Cloud password | — | -| **Enable daily energy sensors** | Create daily energy and current power sensors | Disabled | +| **Enable daily energy sensors** | Create daily energy and current power sensors | Enabled | | **Enable Nanoe switch for all devices** | Force the Nanoe switch to appear even if the device doesn't report Nanoe support | Disabled | | **Use Panasonic preset names** | Use "Quiet" and "Powerful" instead of "Eco" and "Boost" preset names | Enabled | | **Device fetch interval** | How often to poll device data (5–300 seconds) | 120s | @@ -131,7 +131,7 @@ After initial setup, you can modify the following options from the integration's | Option | Description | Default | |--------|-------------|---------| | **Force outside sensor** | Force the outside temperature sensor to appear even if no reading is available | Disabled | -| **Enable daily energy sensors** | Create daily energy and current power sensors | Disabled | +| **Enable daily energy sensors** | Create daily energy and current power sensors | Enabled | | **Enable Nanoe switch for all devices** | Force the Nanoe switch to appear on all devices | Disabled | | **Use Panasonic preset names** | Use "Quiet" and "Powerful" instead of "Eco" and "Boost" | Enabled | | **Device fetch interval** | How often to poll device data (5–300 seconds) | 120s | @@ -180,7 +180,7 @@ data: - **No outside temperature** — Not all devices report outside temperature. Use the "Force outside sensor" option if you want the sensor entity to always appear. ### Energy Sensors -- **Energy data not updating** — Ensure "Enable daily energy sensors" is checked in the integration options. Note that energy data resets daily. +- **Energy data not updating** — Ensure "Enable daily energy sensors" is checked in the integration options. Energy sensors are on by default but can be disabled; disabling them helps accounts with many devices avoid Panasonic 429 rate limiting. Note that energy data resets daily. - **Current power seems inaccurate** — Current power is extrapolated from the daily energy reading and may not reflect instantaneous power accurately. --- diff --git a/custom_components/panasonic_cc/const.py b/custom_components/panasonic_cc/const.py index 582a489..3b59291 100644 --- a/custom_components/panasonic_cc/const.py +++ b/custom_components/panasonic_cc/const.py @@ -18,7 +18,7 @@ CONF_FORCE_OUTSIDE_SENSOR = "force_outside_sensor" DEFAULT_FORCE_OUTSIDE_SENSOR = False CONF_ENABLE_DAILY_ENERGY_SENSOR = "enable_daily_energy_sensor" -DEFAULT_ENABLE_DAILY_ENERGY_SENSOR = False +DEFAULT_ENABLE_DAILY_ENERGY_SENSOR = True CONF_USE_PANASONIC_PRESET_NAMES = "use_panasonic_preset_names" DEFAULT_USE_PANASONIC_PRESET_NAMES = True CONF_DEVICE_FETCH_INTERVAL = "device_fetch_interval"