From 4668b1a35f6c78a2d08ba03b6cdd8c2bf50875f1 Mon Sep 17 00:00:00 2001 From: Bearded Tinker Date: Fri, 3 Nov 2023 13:27:06 +0100 Subject: [PATCH] Fixing bunch of errors from logs. --- automations/locations/school.yaml | 2 +- .../templates/energy_cost_daily_offpeak.yaml | 2 +- entities/templates/energy_cost_daily_peak.yaml | 2 +- entities/templates/energy_cost_daily_total.yaml | 2 +- .../templates/energy_cost_monthly_offpeak.yaml | 2 +- .../templates/energy_cost_monthly_total.yaml | 2 +- entities/templates/energy_cost_monthy_peak.yaml | 2 +- .../smart_inverter_template_energy.yaml | 2 +- entities/weather/my_weather.yaml | 17 ----------------- integrations/frontend.yaml | 2 +- integrations/recorder.yaml | 5 +++++ integrations/sun.yaml | 2 +- 12 files changed, 15 insertions(+), 27 deletions(-) delete mode 100644 entities/weather/my_weather.yaml diff --git a/automations/locations/school.yaml b/automations/locations/school.yaml index 05889546..394bfd51 100644 --- a/automations/locations/school.yaml +++ b/automations/locations/school.yaml @@ -12,7 +12,7 @@ trigger: - platform: numeric_state entity_id: - proximity.school - above: '100' + above: 100 condition: condition: template diff --git a/entities/templates/energy_cost_daily_offpeak.yaml b/entities/templates/energy_cost_daily_offpeak.yaml index af3fa184..f06eb98f 100644 --- a/entities/templates/energy_cost_daily_offpeak.yaml +++ b/entities/templates/energy_cost_daily_offpeak.yaml @@ -6,5 +6,5 @@ - name: Daily Offpeak Energy Cost state: "{{ ((states('sensor.daily_energy_offpeak')|float ) * states('input_number.offpeak_energy_cost')|float) }}" unit_of_measurement: "EUR" - state_class: measurement + #state_class: measurement device_class: monetary diff --git a/entities/templates/energy_cost_daily_peak.yaml b/entities/templates/energy_cost_daily_peak.yaml index b93cfc0c..68d08330 100644 --- a/entities/templates/energy_cost_daily_peak.yaml +++ b/entities/templates/energy_cost_daily_peak.yaml @@ -6,5 +6,5 @@ - name: Daily Peak Energy Cost state: "{{ ((states('sensor.daily_energy_peak')|float ) * states('input_number.peak_energy_cost')|float) }}" unit_of_measurement: "EUR" - state_class: measurement + #state_class: measurement device_class: monetary diff --git a/entities/templates/energy_cost_daily_total.yaml b/entities/templates/energy_cost_daily_total.yaml index 095b5f6c..96a97534 100644 --- a/entities/templates/energy_cost_daily_total.yaml +++ b/entities/templates/energy_cost_daily_total.yaml @@ -6,5 +6,5 @@ - name: Daily Total Energy Cost state: "{{ (states('sensor.daily_peak_energy_cost')|float + states('sensor.daily_offpeak_energy_cost')|float + states('input_number.energy_daily_cost')|float)|round(2) }}" unit_of_measurement: "EUR" - state_class: measurement + #state_class: measurement device_class: monetary diff --git a/entities/templates/energy_cost_monthly_offpeak.yaml b/entities/templates/energy_cost_monthly_offpeak.yaml index 56b4275e..6d0d2a18 100644 --- a/entities/templates/energy_cost_monthly_offpeak.yaml +++ b/entities/templates/energy_cost_monthly_offpeak.yaml @@ -6,5 +6,5 @@ - name: Monthly Offpeak Energy Cost state: "{{ ((states('sensor.monthly_energy_offpeak')|float ) * states('input_number.offpeak_energy_cost')|float) }}" unit_of_measurement: "EUR" - state_class: measurement + #state_class: measurement device_class: monetary diff --git a/entities/templates/energy_cost_monthly_total.yaml b/entities/templates/energy_cost_monthly_total.yaml index 42a1a172..3dc5ffa9 100644 --- a/entities/templates/energy_cost_monthly_total.yaml +++ b/entities/templates/energy_cost_monthly_total.yaml @@ -6,5 +6,5 @@ - name: Monthly Total Energy Cost state: "{{ (states('sensor.monthly_peak_energy_cost')|float(0) + states('sensor.monthly_offpeak_energy_cost')|float(0) + states('input_number.energy_monthly_cost')|float)|round(2) }}" unit_of_measurement: "EUR" - state_class: measurement + #state_class: measurement device_class: monetary diff --git a/entities/templates/energy_cost_monthy_peak.yaml b/entities/templates/energy_cost_monthy_peak.yaml index 9b6400d0..c8df3d71 100644 --- a/entities/templates/energy_cost_monthy_peak.yaml +++ b/entities/templates/energy_cost_monthy_peak.yaml @@ -6,5 +6,5 @@ - name: Monthly Peak Energy Cost state: "{{ ((states('sensor.monthly_energy_peak')|float ) * states('input_number.peak_energy_cost')|float) }}" unit_of_measurement: "EUR" - state_class: measurement + #state_class: measurement device_class: monetary diff --git a/entities/templates/smart_inverter_template_energy.yaml b/entities/templates/smart_inverter_template_energy.yaml index 5a5d1c44..5052a10c 100644 --- a/entities/templates/smart_inverter_template_energy.yaml +++ b/entities/templates/smart_inverter_template_energy.yaml @@ -7,7 +7,7 @@ - name: "Solar Energy Production" unique_id: 2fc1895e-5ad8-4d7e-94ec-bfb18b49c6db unit_of_measurement: kWh - state_class: measurement + state_class: total_increasing device_class: energy icon: mdi:solar-power-variant state: > diff --git a/entities/weather/my_weather.yaml b/entities/weather/my_weather.yaml deleted file mode 100644 index 97082485..00000000 --- a/entities/weather/my_weather.yaml +++ /dev/null @@ -1,17 +0,0 @@ -##### -# Custom weather using multiple sources -# Introduced in 2021.3 -##### - -platform: template -name: "Super Weather station" -unique_id: e17d521d-14f5-4cbf-a630-1a60a89faff9 -condition_template: "{{ states('weather.forecast_home') }}" -temperature_template: "{{ states('sensor.balcony_temperature') | float(0) }}" -humidity_template: "{{ states('sensor.balcony_humidity') | float(0) }}" -forecast_template: "{{ state_attr('weather.accuweather', 'forecast') }}" -pressure_template: "{{ states('sensor.balcony_pressure') | float(0) }}" -wind_speed_template: "{{ state_attr('weather.forecast_home', 'wind_speed') }}" -wind_bearing_template: "{{ state_attr('weather.accuweather', 'wind_bearing') }}" -ozone_template: "{{ states('sensor.current_ozone_level') | float(0) }}" -visibility_template: "{{ state_attr('weather.forecast_home', 'visibility') }}" diff --git a/integrations/frontend.yaml b/integrations/frontend.yaml index 42902081..7e9fc016 100644 --- a/integrations/frontend.yaml +++ b/integrations/frontend.yaml @@ -16,6 +16,6 @@ frontend: # deprecated # We can define additional/custom themes for the frontend here. themes: !include_dir_merge_named ../themes - javascript_version: latest +# javascript_version: latest extra_module_url: - /local/community/custom-brand-icons/custom-brand-icons.js diff --git a/integrations/recorder.yaml b/integrations/recorder.yaml index f761c6a1..26a0c969 100644 --- a/integrations/recorder.yaml +++ b/integrations/recorder.yaml @@ -17,3 +17,8 @@ recorder: # - sensor.next_launch_countdown - sensor.blitzortung_lightning_azimuth - sensor.blitzortung_lightning_distance +# exceed maximum size of + - sensor.pixel_7_pro_active_notification_count + - sensor.oppo_active_notification_count + - sensor.watchman_missing_entities + - sensor.ele_l29_active_notification_count \ No newline at end of file diff --git a/integrations/sun.yaml b/integrations/sun.yaml index e9d0cde3..e37d7368 100644 --- a/integrations/sun.yaml +++ b/integrations/sun.yaml @@ -7,4 +7,4 @@ sun: # The (physical) elevation of your location, in meters above sea level. - elevation: !secret home_elevation + #elevation: !secret home_elevation