diff --git a/integrations/sensor/discogs.yaml b/integrations/sensor/discogs.yaml deleted file mode 100644 index ba47445..0000000 --- a/integrations/sensor/discogs.yaml +++ /dev/null @@ -1,2 +0,0 @@ -- platform: discogs - token: !secret discogs_token diff --git a/integrations/template/binary_sensor/energy.yaml b/integrations/template/binary_sensor/energy.yaml deleted file mode 100644 index 4a78b44..0000000 --- a/integrations/template/binary_sensor/energy.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- name: 'Solar overproduction' - unique_id: solar_overproduction - icon: > - mdi:solar-power-variant-outline - state: > - {{ states('sensor.power_produced') > states('sensor.power_consumed') }} - -- name: 'High solar production' - unique_id: high_solar_production - icon: > - mdi:solar-power - state: > - {{ states('sensor.solar_production_watt') > (states('input_number.high_solar_production') | int(default=0)) }} - -- name: 'Power (High Consumption)' - unique_id: power_high_consumption - icon: mdi:flash-triangle - delay_on: 00:02:00 - delay_off: 00:01:00 - state: > - {% set consumption_in_watt = (states('sensor.power_consumed') | float(default=0)) * 1000 %} - {% set treshold = states('input_number.power_consumption_treshold') | float(default=0) %} - {{ consumption_in_watt > treshold }} diff --git a/integrations/template/trigger/sensor.yaml b/integrations/template/trigger/sensor.yaml deleted file mode 100644 index a481291..0000000 --- a/integrations/template/trigger/sensor.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- name: 'Electricity Max Peak (Daily)' - unique_id: electricity_max_peak_daily - unit_of_measurement: 'kW' - icon: > - mdi:transmission-tower - state: > - {% if is_number(states('sensor.electricity_max_peak_daily')) %} - {% if ((now().hour == 0) and (now().minute < 15)) %} - {{ states('sensor.power_delivery_15m') | float }} - {% else %} - {% if ((states('sensor.electricity_max_peak_daily') | float) < (states('sensor.power_delivery_15m')) | float) %} - {{ states('sensor.power_delivery_15m') or 0 | float }} - {% else %} - {{ states('sensor.electricity_max_peak_daily') | float }} - {% endif %} - {% endif %} - {% else %} - 0 - {% endif %} - -- name: 'Electricity Max Peak (Monthly)' - unique_id: electricity_max_peak_monthly - unit_of_measurement: 'kW' - icon: > - mdi:transmission-tower - state: > - {% if is_number(states('sensor.electricity_max_peak_monthly')) %} - {% if ((now().day == 1) and (now().hour == 0) and (now().minute < 15)) %} - {{ states('sensor.power_delivery_15m') | float }} - {% else %} - {% if ((states('sensor.electricity_max_peak_monthly') | float) < (states('sensor.power_delivery_15m')) | float) %} - {{ states('sensor.power_delivery_15m') or 0 | float }} - {% else %} - {{ states('sensor.electricity_max_peak_monthly') | float }} - {% endif %} - {% endif %} - {% else %} - 0 - {% endif %}