Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily Delivered and Daily Received not able to be set in Energy Grid #48

Open
nyr3188 opened this issue Feb 6, 2024 · 9 comments
Open

Comments

@nyr3188
Copy link

nyr3188 commented Feb 6, 2024

Version of the custom_component

0.0.1

Configuration

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

Describe the bug

The Daily Delivered KWH and Daily Received KWH sensors are not able to be set as Energy Sensors. I would like to be able to set them under "Grid consumption" and "Return to grid"

Debug log


2024-02-06 17:32:02.520 ERROR (MainThread) [custom_components.fpl] 'electric'
2024-02-06 17:32:02.880 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.892 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.903 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.914 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.924 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.934 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.948 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.959 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.970 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.980 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:02.991 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_MONETARY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.MONETARY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.005 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.015 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.030 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.040 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.060 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.070 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.081 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.091 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues
2024-02-06 17:32:03.117 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.fpl_6694435444_daily_usage_kwh (<class 'custom_components.fpl.sensor_DailyUsageSensor.FplDailyUsageKWHSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise create a bug report at https://github.com/dotKrad/hass-fpl/issues

@jabetcha
Copy link
Contributor

Check out pull request #49 might be useful.

@nyr3188 nyr3188 closed this as completed Apr 20, 2024
@nyr3188
Copy link
Author

nyr3188 commented Apr 20, 2024

It appears that your pull request didn't work. Any other ideas?

@nyr3188 nyr3188 reopened this Apr 20, 2024
@GitittomeNow
Copy link

What does pull request didn’t work mean? Is there a specific error?

@nyr3188
Copy link
Author

nyr3188 commented Apr 22, 2024

What does pull request didn’t work mean? Is there a specific error?

Jabetcha referenced pull request #49 and if you look they tried something and it didn't work. The issue is still that the Daily Delivered KWH and Daily Received KWH sensors are not able to be set as Energy Sensors.

@jabetcha
Copy link
Contributor

jabetcha commented Apr 22, 2024

The sensor did read the info, but didn't provide the expected result in the energy dashboard. It would show additional usage every time the value was re-read. I re-wrote a couple things and added 2 new sensors that read the daily received reading and daily delivered reading correctly. The data is updated daily around 4 am for the day before, and the energy dashboard shows everything occuring at 4am. It is not perfect, but it gets closer to figuring out what my usage truly is. I hope you find it helpful.

I updated the pull request with what I have to date. It does have some unfinished code attempting to read the hourly statistics. I found this project and was attempting to integrate the historical sensor (not a state sensor) for this https://github.com/ldotlopez/ha-historical-sensor/tree/main

@GitittomeNow
Copy link

I’m curious why the integration doesn’t use version numbers. I installed CE36020 which I believe is the update that includes the above. It works great and now is able to add to the energy dashboard both for delivered and received. It still receives errors about Nomenclature that expires in 2025.1

Thank you!!

@nyr3188
Copy link
Author

nyr3188 commented Apr 30, 2024

I am now seeing some data show up in the energy dashboard but it seems to just repeatedly show the totals from the prior day over and over throughout the day

image

As you can see here, those bars match my usage for Sunday:
image

Here's what the hourly chart actually looks like on FPL.com:
image

@jabetcha
Copy link
Contributor

@nyr3188 Make sure you're using the "Daily Delivered Reading" and "Daily Received Reading". I had the same issue when using "daily delivered kwh" and "daily received kwh"

@Soygen
Copy link

Soygen commented May 7, 2024

@nyr3188 Make sure you're using the "Daily Delivered Reading" and "Daily Received Reading". I had the same issue when using "daily delivered kwh" and "daily received kwh"

I was having the same issue as @nyr3188 - switching to two daily 'readings' seems to give me nothing at all now. Had it set for the day and a half and am not seeing any updates.

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

No branches or pull requests

4 participants