Advertisement
yurghie

Untitled

Apr 24th, 2024 (edited)
809
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.25 KB | None | 0 0
  1. substitutions:
  2.   name: vp-oppe
  3.   friendly_name: Varmepumpe oppe
  4.  
  5. esphome:
  6.   name: ${name}
  7.   platform: ESP8266
  8.   board: d1_mini
  9.   # Boards tested: ESP-01S (ESP8266), Wemos D1 Mini (ESP8266); ESP32 Wifi-DevKit2
  10.  
  11. wifi:
  12.   ssid: !secret wifi_ssid
  13.   password: !secret wifi_password
  14.   domain: .lan
  15.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  16.   ap:
  17.     ssid: "${friendly_name} Fallback Hotspot"
  18.     password: !secret fallback_password
  19.  
  20. # Note: if upgrading from 1.x releases of esphome-mitsubishiheatpump, be sure
  21. # to remove any old entries from the `libraries` and `includes` section.
  22. #libraries:
  23.   # Remove reference to SwiCago/HeatPump
  24.  
  25. #includes:
  26.   # Remove reference to src/esphome-mitsubishiheatpump
  27.  
  28. captive_portal:
  29. # Enable logging
  30. logger:
  31.  # ESP8266 only - disable serial port logging, as the HeatPump component
  32.   # needs the sole hardware UART on the ESP8266
  33.   baud_rate: 0
  34.   level: DEBUG
  35.   logs:
  36.     component: ERROR
  37.  
  38. mqtt:
  39.   broker: !secret mqtt_addr
  40.   username: !secret mqtt_user
  41.   password: !secret mqtt_password
  42.   keepalive:
  43.     seconds: 120
  44.  
  45. ota:
  46. # Enable Web server.
  47. web_server:
  48.   port: 80
  49.  
  50. time:
  51.   - platform: sntp
  52.     id: sntp_time
  53.     timezone: Europe/Oslo
  54.     servers:
  55.     - 0.pool.ntp.org
  56.      - 1.pool.ntp.org
  57.      - 2.pool.ntp.org
  58.  
  59. # Text sensors with general information.
  60. text_sensor:
  61.  # Expose ESPHome version as sensor.
  62.   - platform: version
  63.     name: ${name} ESPHome Version
  64.   # Expose WiFi information as sensors.
  65.   - platform: wifi_info
  66.     ip_address:
  67.       name: ${name} IP
  68.     ssid:
  69.       name: ${name} SSID
  70.     bssid:
  71.       name: ${name} BSSID
  72.  
  73. # Sensors with general information.
  74. sensor:
  75.  # Uptime sensor.
  76.   - platform: uptime
  77.     name: ${name} Uptime
  78.  
  79.   # WiFi Signal sensor.
  80.   - platform: wifi_signal
  81.     name: ${name} WiFi Signal
  82.     update_interval: 60s
  83.  
  84. external_components:
  85.   - source: github://geoffdavis/esphome-mitsubishiheatpump
  86.  
  87. climate:
  88.   - platform: mitsubishi_heatpump
  89.     name: "${friendly_name}"
  90.  
  91.     # ESP32 only - change UART0 to UART1 or UART2 and remove the
  92.     # logging:baud_rate above to allow the built-in UART0 to function for
  93.     # logging.
  94.     hardware_uart: UART0
  95.  
  96. switch:
  97.   - platform: restart
  98.     name: "Restart"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement