-
-
Save johansolve/a9fe64c7088a61b8318ee37c4a9edd22 to your computer and use it in GitHub Desktop.
Invalid config for [sensor]: required key not provided @ data['platform']. Got None.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure a default setup of Home Assistant (frontend, api, etc) | |
default_config: | |
# Text to speech | |
tts: | |
- platform: google_translate | |
automation: !include automations.yaml | |
script: !include scripts.yaml | |
scene: !include scenes.yaml | |
sensor: | |
- platform: fusion_solar_kiosk | |
kiosks: | |
- url: "https://region02eu5.fusionsolar.huawei.com/pvmswebsite/nologin/assets/build/index.html#/kiosk?kk=xxx" | |
name: "Solceller" | |
# Easyserv värmepump REST API | |
- platform: rest | |
resource: https://easyserv.local:8080/api/metrics?authkey=xxxx | |
verify_ssl: false | |
name: heatpump | |
json_attributes: | |
- HotwaterTemp1 | |
- HotwaterTemp2 | |
- IndoorTemp | |
- OutdoorTemp | |
- RadiatorForwardTemp | |
- RadiatorReturnTemp | |
- HeatCarrierInTemp | |
- HeatCarrierOutTemp | |
- BrineInTemp | |
- BrineOutTemp | |
- HotGasTemp | |
- CompressorState | |
- ColdCircuitPumpState | |
- HeatCircuitPumpState | |
- RadiatorPumpState | |
- AddHeat2State | |
- AddHeat1State | |
- SwitchValve1State | |
- HeatingSetpointTemp | |
- HotwaterSetpointTemp | |
- AddHeatLevelPercent | |
- SumAlarm | |
value_template: '{{ value_json.CompressorState }}' | |
- platform: template | |
sensors: | |
hotwater_temp: | |
friendly_name: 'Varmvatten' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.HotwaterTemp1 }}' | |
outdoor_temp: | |
friendly_name: "Utomhus-temp" | |
unit_of_measurement: 'C' | |
device_class: temperature | |
value_template: '{{ states.sensor.heatpump.attributes.OutdoorTemp }}' | |
radiator_forward: | |
friendly_name: 'Framledning' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.RadiatorForwardTemp }}' | |
radiator_return: | |
friendly_name: 'Returledning' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.RadiatorReturnTemp }}' | |
heatcarrier_in: | |
friendly_name: 'Värmebärare in' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.HeatCarrierInTemp }}' | |
heatcarrier_out: | |
friendly_name: 'Värmebärare ut' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.HeatCarrierOutTemp }}' | |
brine_in: | |
friendly_name: 'Köldbärare in' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.BrineInTemp }}' | |
brine_out: | |
friendly_name: 'Köldbärare ut' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.BrineOutTemp }}' | |
hotgas: | |
friendly_name: 'Hetgas' | |
unit_of_measurement: 'C' | |
value_template: '{{ states.sensor.heatpump.attributes.HotGasTemp }}' | |
compressor_state: | |
friendly_name: "Kompressor" | |
value_template: >- | |
{% if states.sensor.heatpump.attributes.CompressorState > 0 %} | |
På | |
{% else %} | |
Av | |
{% endif %} | |
switchvalve_state: | |
friendly_name: "Växelventil" | |
value_template: >- | |
{% if states.sensor.heatpump.attributes.SwitchValve1State > 0 %} | |
På | |
{% else %} | |
Av | |
{% endif %} | |
radiatorpump_state: | |
friendly_name: "Radiatorpump" | |
value_template: >- | |
{% if states.sensor.heatpump.attributes.RadiatorPumpState > 0 %} | |
På | |
{% else %} | |
Av | |
{% endif %} | |
coldcircuitpump_state: | |
friendly_name: "Köldbärarpump" | |
value_template: >- | |
{% if states.sensor.heatpump.attributes.ColdCircuitPumpState > 0 %} | |
På | |
{% else %} | |
Av | |
{% endif %} | |
# nordpool: | |
# sensor: | |
- platform: nordpool | |
# Should the prices include vat? Default True | |
VAT: True | |
# What currency the api fetches the prices in | |
# this is only need if you want a sensor in a non local currency | |
currency: "SEK" | |
# Option to show prices in cents (or the equivalent in local currency) | |
price_in_cents: false | |
# Helper so you can set your "low" price | |
# low_price = hour_price < average * low_price_cutoff | |
low_price_cutoff: 0.95 | |
# What power regions your are interested in. | |
# Possible values: "DK1", "DK2", "FI", "LT", "LV", "Oslo", "Kr.sand", "Bergen", "Molde", "Tr.heim", "Tromsø", "SE1", "SE2", "SE3","SE4", "SYS", "EE" | |
region: "SE4" | |
# How many decimals to use in the display of the price | |
precision: 3 | |
# What the price should be displayed in default | |
# Possible values: MWh, kWh and Wh | |
# default: kWh | |
price_type: kWh | |
# This option allows the usage of a template to add a tariff. | |
# now() always refers start of the hour of that price. | |
# this way we can calculate the correct costs add that to graphs etc. | |
# The price result of the additional_costs template expects this additional cost to be in kWh and not cents as a float | |
# default {{0.0|float}} | |
# additional_costs: "{{0.0|float}}" | |
- name: Electricity price level (1-day) | |
icon: mdi:currency-usd | |
state: >- | |
{% set price_cur = states('sensor.electricity_price_tibber') | float(0) %} | |
{% set price_avg = state_attr('sensor.electricity_price_tibber', 'avg_price') | float(0) %} | |
{% if price_cur == 0 or price_avg == 0 %} | |
unknown | |
{% else %} | |
{% set price_ratio = (price_cur / price_avg) %} | |
{% if price_ratio >= 1.4 %} | |
VERY_EXPENSIVE | |
{% elif price_ratio >= 1.15 %} | |
EXPENSIVE | |
{% elif price_ratio <= 0.6 %} | |
VERY_CHEAP | |
{% elif price_ratio <= 0.9 %} | |
CHEAP | |
{% else %} | |
NORMAL | |
{% endif %} | |
{% endif %} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment