Skip to content

⚡️ Request for EnergySensor only 1 per hour#35

Open
MateoGreil wants to merge 2 commits intomainfrom
3-adjust-update-frequency-for-comwattenergysensor
Open

⚡️ Request for EnergySensor only 1 per hour#35
MateoGreil wants to merge 2 commits intomainfrom
3-adjust-update-frequency-for-comwattenergysensor

Conversation

@MateoGreil
Copy link
Copy Markdown
Owner

Solving #3

Request for EnergySensor only 1 per hour.
As this sensor is :

    _attr_native_unit_of_measurement = UnitOfEnergy.WATT_HOUR
    _attr_device_class = SensorDeviceClass.ENERGY
    _attr_state_class = SensorStateClass.TOTAL_INCREASING

It's not usefull to update it each 2 minutes.

This PR will reduce the number of request to comwatt servers, and probably avoid a bit the ban of IP (talked here and here)

@MateoGreil MateoGreil self-assigned this Jan 3, 2025
it lead to long time to init
@MateoGreil MateoGreil force-pushed the main branch 8 times, most recently from fe5cc69 to 5d7aa55 Compare January 7, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant