friedpenguin

HA Victron

May 19th, 2023 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. esphome:
  2. name: vicmppt
  3. friendly_name: vicmppt
  4. platformio_options:
  5. board_build.flash_mode: dio
  6. board_build.extra_flags:
  7. - "-DARDUINO_USB_CDC_ON_BOOT=0"
  8.  
  9. esp32:
  10. board: seeed_xiao_esp32c3
  11. variant: esp32c3
  12. framework:
  13. type: arduino
  14.  
  15. # Enable logging
  16. logger:
  17.  
  18. # Enable Home Assistant API
  19. api:
  20. encryption:
  21. key: "McjB70+2qF3oeBvvZU="
  22.  
  23. ota:
  24. password: "3d1ea1f08"
  25.  
  26. wifi:
  27. ssid: !secret wifi_ssid
  28. password: !secret wifi_password
  29.  
  30. # Enable fallback hotspot (captive portal) in case wifi connection fails
  31. ap:
  32. ssid: "Vicmppt Fallback Hotspot"
  33. password: "g6fO9FF319BW"
  34.  
  35. captive_portal:
  36.  
  37. external_components:
  38. - source: github://KinDR007/VictronMPPT-ESPHOME@main
  39.  
  40. uart:
  41. id: uart_1
  42. tx_pin: GPIO21 # Not used! The communication is read-only
  43. rx_pin: GPIO20
  44. baud_rate: 19200
  45. rx_buffer_size: 512
  46.  
  47. victron:
  48. id: victron0
  49. uart_id: uart_1
  50.  
  51. sensor:
  52. - platform: victron
  53. victron_id: victron0
  54. panel_power:
  55. name: "Panel Power"
  56. panel_voltage:
  57. name: "Panel voltage"
  58. battery_voltage:
  59. name: "Battery voltage"
  60. battery_current:
  61. name: "Battery current"
  62. max_power_today:
  63. name: "Max Power Today"
  64.  
  65. esp32_ble_tracker:
  66. scan_parameters:
  67. interval: 1100ms
  68. window: 1100ms
  69. active: true
  70.  
  71. bluetooth_proxy:
  72. active: true
  73.  
Advertisement
Add Comment
Please, Sign In to add comment