# Koppelen van de P1-interface met Home-assistant # Installeer en configureer de Mosquitto MQTT-broker via add-on in HA # Copieer onderstaande settings en plak je in configuration.yaml (/config) # Herstart HA # Op de P1-website (http://dsmr_if.local) klik je links onderaan op de knop "MQTT Instellingen" # Vul hier de gegevens is van de broker # Tip: gebruik als 'hostnaam' bij voorkeur het IP-adres van HA! # Foutje gemerkt of suggesties voor verbetering? mail ON4ABR@GMAIL.COM # Sensors for esp8266_p1meter to be used in Home Assistant mqtt: sensor: - name: P1 Meterstand Afname Tarief 1 (Dag) unique_id: 'sensor.p1_consumption_high_tariff' device_class: energy state_class: total_increasing unit_of_measurement: kWh state_topic: "sensors/power/dsmr/consumption_tarif_1" value_template: "{{ value|float / 1000 }}" - name: P1 Meterstand Afname Tarief 2 (Nacht/WE) unique_id: 'sensor.p1_consumption_low_tariff' device_class: energy state_class: total_increasing unit_of_measurement: kWh state_topic: "sensors/power/dsmr/consumption_tarif_2" value_template: "{{ value|float / 1000 }}" - name: P1 Meterstand Injectie Tarief 1 (Dag) unique_id: 'sensor.p1_delivery_high_tariff' device_class: energy state_class: total_increasing unit_of_measurement: kWh state_topic: "sensors/power/dsmr/returndelivery_tarif_1" value_template: "{{ value|float / 1000 }}" - name: P1 Meterstand Injectie Tarief 2 (Nacht/WE) unique_id: 'sensor.p1_delivery_low_tariff' device_class: energy state_class: total_increasing unit_of_measurement: kWh state_topic: "sensors/power/dsmr/returndelivery_tarif_2" value_template: "{{ value|float / 1000 }}" - name: P1 Actueel Vermogen Afname unique_id: 'sensor.p1_actual_power_consumption' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/actual_consumption" value_template: "{{ value|float / 1000 }}" - name: P1 Actueel Vermogen Injectie unique_id: 'sensor.p1_actual_return_delivery' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/actual_returndelivery" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 1 Afgenomen Vermogen unique_id: 'sensor.p1_l1_instant_power_usage' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/l1_instant_power_usage" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 2 Afgenomen Vermogen unique_id: 'sensor.p1_l2_instant_power_usage' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/l2_instant_power_usage" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 3 Afgenomen Vermogen unique_id: 'sensor.p1_l3_instant_power_usage' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/l3_instant_power_usage" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 1 Afgenomen Stroom unique_id: 'sensor.p1_l1_instant_power_current' device_class: current state_class: measurement unit_of_measurement: 'A' state_topic: "sensors/power/dsmr/l1_instant_power_current" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 2 Afgenomen Stroom unique_id: 'sensor.p1_l2_instant_power_current' device_class: current state_class: measurement unit_of_measurement: 'A' state_topic: "sensors/power/dsmr/l2_instant_power_current" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 3 Afgenomen Stroom unique_id: 'sensor.p1_l3_instant_power_current' device_class: current state_class: measurement unit_of_measurement: 'A' state_topic: "sensors/power/dsmr/l3_instant_power_current" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 1 Spanning unique_id: 'sensor.p1_l1_voltage' device_class: voltage state_class: measurement unit_of_measurement: 'V' state_topic: "sensors/power/dsmr/l1_voltage" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 2 Spanning unique_id: 'sensor.p1_l2_voltage' device_class: voltage state_class: measurement unit_of_measurement: 'V' state_topic: "sensors/power/dsmr/l2_voltage" value_template: "{{ value|float / 1000 }}" - name: P1 Fase 3 Spanning unique_id: 'sensor.p1_l3_voltage' device_class: voltage state_class: measurement unit_of_measurement: 'V' state_topic: "sensors/power/dsmr/l3_voltage" value_template: "{{ value|float / 1000 }}" - name: P1 Meterstand Gas unique_id: 'sensor.p1_gas_usage' device_class: gas state_class: total_increasing unit_of_measurement: 'm³' state_topic: "sensors/power/dsmr/gas_meter_m3" value_template: "{{ value|float / 1000 }}" - name: P1 Meterstand Water unique_id: 'sensor.p1_water_usage' device_class: water state_class: total_increasing unit_of_measurement: 'm³' state_topic: "sensors/power/dsmr/water_meter_m3" value_template: "{{ value|float / 1000 }}" - name: P1 Prognose KwartierPiek unique_id: 'sensor.p1_KP_prediction' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/KP_prediction" value_template: "{{ value|float / 1000 }}" - name: P1 KwartierPiek lopend Kwartier unique_id: 'sensor.p1_KP_current_peak' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/KP_current_peak" value_template: "{{ value|float / 1000 }}" - name: P1 KwartierPiek Maand unique_id: 'sensor.p1_KP_monthly_peak' device_class: power state_class: measurement unit_of_measurement: 'kW' state_topic: "sensors/power/dsmr/KP_monthly_peak" value_template: "{{ value|float / 1000 }}" - name: P1 Actueel Tarief unique_id: 'sensor.p1_actual_tariff_group' state_topic: "sensors/power/dsmr/actual_tarif_group"