Ik heb dit staan:
# 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
# start pompao integratie
multiscrape:
- name: Dewarmte Status
resource
https://mydewarmte.com/status
scan_interval: 300
headers:
User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36'
referer: 'https://www.mydewarmte.com/'
origin: 'https://www.mydewarmte.com'
host: 'www.mydewarmte.com'
form_submit:
submit_once: True
resource: 'https://mydewarmte.com/'
select: "#login-form"
input:
username: --
password: --
binary_sensor:
- name: "PompAO Heatpump Status"
unique_id: pompao_on_off_status
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var PompAoOnOff = "(.*?)?";')|bool }}
icon: mdi:heat-pump
- name: "PompAO Boiler Status"
unique_id: pompao_boiler_on_off_status
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var BoilerOnOff = "(.*?)?";')|bool }}
icon: mdi:water-boiler
- name: "PompAO Thermostat Status"
unique_id: pompao_thermostat_status
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var ThermostatOnOff = "(.*?)?";')|bool }}
icon: mdi:thermostat-box
sensor:
- name: "PompAO Water Flow"
unique_id: pompao_waterflow
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var WaterFlow = "(.*?)?";')|float(0) }}
icon: mdi:pump
state_class: measurement
device_class: "volume"
unit_of_measurement: "l/min"
- name: "PompAO Supply Temperature"
unique_id: pompao_supplytemp
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var SupplyTemp = "(.*?)?";')|float(0) }}
icon: mdi:thermometer-water
state_class: measurement
device_class: "temperature"
unit_of_measurement: "°C"
- name: "PompAO Outside Temperature"
unique_id: pompao_outsidetemp
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var OutSideTemp = "(.*?)?";')|float(0) }}
state_class: measurement
device_class: "temperature"
unit_of_measurement: "°C"
- name: "PompAO Heat Input"
unique_id: pompao_heatinput
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var HeatInput = "(.*?)?";')|float(0) }}
state_class: measurement
device_class: "power"
unit_of_measurement: "kW"
- name: "PompAO Return Temperature"
unique_id: pompao_returntemp
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var ReturnTemp = "(.*?)?";')|float(0) }}
icon: mdi:thermometer-water
state_class: measurement
device_class: "temperature"
unit_of_measurement: "°C"
- name: "PompAO Electrical Consumption"
unique_id: pompao_electricalcons
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var ElecConsump = "(.*?)?";')|float(0) }}
state_class: measurement
device_class: "power"
unit_of_measurement: "kW"
- name: "PompAO Heat Output"
unique_id: pompao_heatoutput
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('var HeatOutPut = "(.*?)?";')|float(0) }}
state_class: measurement
device_class: "power"
unit_of_measurement: "kW"
- name: "PompAO Heat Total"
unique_id: pompao_total_heat
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('const total_heat = "(.*?)?";')|float(0) }}
state_class: measurement
device_class: "energy"
unit_of_measurement: "kWh"
- name: "PompAO Electricity Total"
unique_id: pompao_total_electricity
select: "body > script:nth-child(1)"
value_template: >-
{% set value = value|trim %}
{{ value|regex_findall_index('const total_electricity = "(.*?)?";')|float(0) }}
state_class: measurement
device_class: "energy"
unit_of_measurement: "kWh"