Skip to content

Add feature get hourly power consumption#431

Open
sambarza wants to merge 3 commits intoalbertogeniola:0.4.X.Xfrom
sambarza:feature/get-hourly-power-consumption
Open

Add feature get hourly power consumption#431
sambarza wants to merge 3 commits intoalbertogeniola:0.4.X.Xfrom
sambarza:feature/get-hourly-power-consumption

Conversation

@sambarza
Copy link

@sambarza sambarza commented Feb 14, 2026

Hi @albertogeniola ,

Thank you for MerossIot!

I needed to retrieve the hourly power consumption, so this pull request adds support for it through a new mixin.

The implementation is based on the existing async_get_daily_power_consumption method, with minimal changes to handle the specific command payload and response structure required for hourly data.

Changes

  • Added a mixin for hourly consumption
  • Adjusted payload handling and response parsing

Testing

  • Tested on a real physical device
  • Added unit tests similar for async_get_daily_power_consumption

Documentation

  • Updated the daily power consumption description (added the word "daily")
  • Added a new page for hourly power consumption

I can create a pull request for the other branches if needed.

Thanks
Sam

#362

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