pantherale0 / ha-fuelprices

A generic and extensible integration with pyfuelprices to retrieve local (or remote) fuel price data.
MIT License
16 stars 2 forks source link

Home Assistant Yellow not supported #17

Closed Ralf-Th closed 2 months ago

Ralf-Th commented 2 months ago

System Health details

System Information

version core-2024.6.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4949 Installed Version | 1.34.0 Stage | running Available Repositories | 1465 Downloaded Repositories | 41 HACS Data | ok
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | 23. November 2024 um 01:00 relayer_connected | true relayer_region | eu-central-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | false remote_server | eu-central-1-13.ui.nabu.casa certificate_status | ready instance_id | 8f8d5984e65b48db9d5e159d1af807a5 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Easee EV Charger component_version | 0.9.59 -- | -- reach_easee_cloud | ok connected2stream | true
Home Assistant Supervisor host_os | Home Assistant OS 12.4 -- | -- update_channel | stable supervisor_version | supervisor-2024.06.0 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 916.9 GB disk_used | 14.4 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | yellow supervisor_api | ok version_api | ok installed_addons | Advanced SSH & Web Terminal (18.0.0), Mosquitto broker (6.4.1), Samba share (12.3.1), evcc (0.127.2), FiatChamp (3.0.8), MQTT Explorer (browser-1.0.3), Matter Server (6.1.2), openWakeWord (1.10.0), RaspberryMatic CCU (3.75.7.20240601), File editor (5.8.0), Music Assistant BETA (2.1.0b7), Studio Code Server (5.15.0), Firefox (1.2.0), Music Assistant (2.0.7)
Dashboards dashboards | 6 -- | -- resources | 13 views | 15 mode | storage
Recorder oldest_recorder_run | 21. April 2024 um 07:19 -- | -- current_recorder_run | 21. Juni 2024 um 10:44 estimated_db_size | 3373.81 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

please wait, configuration assistant for fuel_prices is starting after some time:
Error Configurationflow could not be started: unkown error. HA is rebooting automatically

Reproduction steps

  1. add/download repo
  2. reboot HA
  3. add integration ...

Debug logs

2024-06-21 11:01:20.706 WARNING (MainThread) [homeassistant.components.mqtt.mixins] ValueError: Template error: float got invalid input '' when rendering template '{{ (value | float / 1000) | round(4) }}' but no default was specified rendering template for entity 'sensor.evcc_charged_energy_kwh', template: '{{ (value | float / 1000) | round(4) }}', default value: default and payload: 
2024-06-21 11:01:20.724 WARNING (MainThread) [homeassistant.components.mqtt.mixins] ValueError: Template error: round got invalid input '' when rendering template '{{ value | round(0) }}' but no default was specified rendering template for entity 'sensor.evcc_charge_duration_s', template: '{{ value | round(0) }}', default value: default and payload: 
2024-06-21 11:01:21.160 WARNING (MainThread) [homeassistant.components.mqtt.mixins] ValueError: Template error: round got invalid input '' when rendering template '{{ value | round(1) }}' but no default was specified rendering template for entity 'sensor.evcc_pv_power_w', template: '{{ value | round(1) }}', default value: default and payload: 
2024-06-21 11:01:21.181 WARNING (MainThread) [homeassistant.components.mqtt.mixins] ValueError: Template error: round got invalid input '' when rendering template '{{ value | round(1) }}' but no default was specified rendering template for entity 'sensor.evcc_battery_power_w', template: '{{ value | round(1) }}', default value: default and payload: 
2024-06-21 11:01:21.210 WARNING (MainThread) [homeassistant.components.mqtt.mixins] ValueError: Template error: round got invalid input '' when rendering template '{{ value | round(1) }}' but no default was specified rendering template for entity 'sensor.evcc_grid_power_w', template: '{{ value | round(1) }}', default value: default and payload: 
2024-06-21 11:01:21.213 WARNING (MainThread) [homeassistant.components.mqtt.mixins] ValueError: Template error: round got invalid input '' when rendering template '{{ value | round(1) }}' but no default was specified rendering template for entity 'sensor.evcc_home_power_w', template: '{{ value | round(1) }}', default value: default and payload: 
2024-06-21 11:01:22.137 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.evcc_max_current: 32 (range 6.0 - 16.0)
2024-06-21 11:01:22.228 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.evcc_max_current: 32 (range 6.0 - 16.0)
2024-06-21 11:02:07.875 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.1og_monat (kWh) cannot be converted to the unit of previously compiled statistics (W). Generation of long term statistics will be suppressed unless the unit changes back to W or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-06-21 11:02:08.185 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.werkstattzahler_energy from integration powercalc has state class total_increasing, but its state is negative. Triggered by state -227.4444 with last_updated set to 2024-06-21T08:49:59.999999+00:00. Please create a bug report at https://github.com/bramstroker/homeassistant-powercalc/issues
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A2024-06-21 11:04:30.745 WARNING (MainThread) [hahomematic.caches.dynamic] Pending PONG mismatch: There is a mismatch between send ping events and received pong events for HA instance CCU3-HmIP-RF. Possible reason 1: You are running multiple instances of HA with the same instance name configured for this integration. Re-add one instance! Otherwise this HA instance will not receive update events from your CCU. Possible reason 2: Something is stuck on the CCU or hasn't been cleaned up. Therefore, try a CCU restart.Possible reason 3: Your setup is misconfigured and HA is not able to receive events from the CCU.
2024-06-21 11:05:38.547 WARNING (SyncWorker_22) [custom_components.localtuya.climate] [bf8...qna] Entity climate.infrarotheizung_2 is requesting unset index for option hvac_action_dp
2024-06-21 11:05:38.548 WARNING (SyncWorker_22) [custom_components.localtuya.climate] [bf8...qna] Entity climate.infrarotheizung_2 is requesting unknown DPS index None
2024-06-21 11:05:38.548 WARNING (SyncWorker_22) [custom_components.localtuya.climate] [bf8...qna] Entity climate.infrarotheizung_2 is requesting unset index for option hvac_action_dp
2024-06-21 11:05:38.548 WARNING (SyncWorker_22) [custom_components.localtuya.climate] [bf8...qna] Entity climate.infrarotheizung_2 is requesting unknown DPS index None

Diagnostics dump

No response

pantherale0 commented 2 months ago

Hi,

Thanks for raising, how much memory does the computer have that you are running HA on?

Will probably need to dive deeper into the system logs rather than Home Assistant logs, but my initial thought is that there might not be enough ram available and thE OS is killing processes automatically to try and free up memory itself.

Thanks

Ralf-Th commented 2 months ago

in Supervisor-App: Core: 26,7%, Supervisor: 3,8%, Host:1,6% in Hardware Menu: 1,5 GB / 2 GB

Ralf-Th commented 2 months ago

i start top commands with: op - 12:55:15 up 1:57, 0 user, load average: 0.30, 0.40, 0.43 Tasks: 15 total, 1 running, 13 sleeping, 1 stopped, 0 zombie %Cpu(s): 5.2 us, 2.0 sy, 0.0 ni, 92.6 id, 0.1 wa, 0.0 hi, 0.1 si, 0.0 st MiB Mem : 1888.7 total, 54.6 free, 1557.4 used, 357.1 buff/cache
MiB Swap: 624.2 total, 0.6 free, 623.7 used. 331.4 avail Mem

do you need more information?

pantherale0 commented 2 months ago

Thanks, is this with the integration setup or without?

Ralf-Th commented 2 months ago

i am not able to add the integration

pantherale0 commented 2 months ago

Ok, in this case it looks like there is not enough memory available for this integration to run. I can't confirm with the logs provided, but you will need to look for out of memory (oom) errors in the kernel logs of the OS. They are usually found by running the command dmesg during current boot, or dependant on OS you can use journalctl to retrieve logs for previous boots.

To run, you will need to increase the amount of memory allocated to the VM (if running as a virtual machine), or upgrade your hardware. This integration will rely heavily on memory to run.

Ralf-Th commented 2 months ago

no, i have a HA yellow so i cannot use your integration, right?

pantherale0 commented 2 months ago

Looking at the specs of the CM4 that is included, there is probably not enough memory to use this integration.

RPI do sell compute modules with higher specs though:

https://thepihut.com/products/raspberry-pi-compute-module-4