76 lines
1.2 KiB
YAML
76 lines
1.2 KiB
YAML
esphome:
|
|
name: p1
|
|
platform: ESP8266
|
|
board: d1_mini
|
|
|
|
# Enable logging
|
|
logger:
|
|
baud_rate: 0
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
reboot_timeout: 0s
|
|
|
|
ota:
|
|
password: !secret ota
|
|
|
|
wifi:
|
|
networks:
|
|
- ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
- ssid: !secret wifi_ssid2
|
|
password: !secret wifi_password2
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: !secret ap_ssid
|
|
password: !secret ap_password
|
|
|
|
web_server:
|
|
port: 80
|
|
|
|
captive_portal:
|
|
|
|
time:
|
|
- platform: sntp
|
|
id: time1
|
|
timezone: Europe/Amsterdam
|
|
|
|
|
|
status_led:
|
|
pin:
|
|
number: GPIO2
|
|
inverted: True
|
|
|
|
|
|
|
|
mqtt:
|
|
broker: mqtt.lan
|
|
discovery: true
|
|
|
|
dsmr:
|
|
id: dsmr_instance1
|
|
|
|
uart:
|
|
- rx_pin: RX
|
|
baud_rate: 115200
|
|
|
|
sensor:
|
|
- platform: dsmr
|
|
energy_delivered_tariff1: # Dit is het Dal tarief
|
|
name: Energy Tarief 1
|
|
energy_delivered_tariff2: # Dit is het Normaal tarief
|
|
name: Energy Tarief 2
|
|
power_delivered:
|
|
name: Power
|
|
gas_delivered:
|
|
name: Gas
|
|
# tarief 1 is dal tarief!!!
|
|
|
|
text_sensor:
|
|
- platform: dsmr
|
|
identification:
|
|
name: "DSMR Identification"
|
|
p1_version:
|
|
name: "DSMR Version"
|