Advertisement
product2847

esphome_powerpal

Dec 1st, 2024
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. esphome:
  2. name: "powerpal"
  3. platform: ESP32
  4. board: esp32dev
  5.  
  6. external_components:
  7. - source:
  8. type: git
  9. url: https://github.com/muneeb1990/esphome
  10. ref: powerpal_ble
  11. components: [ powerpal_ble ]
  12.  
  13. # Enable logging
  14. logger:
  15. level: DEBUG
  16. logs:
  17. esp32_ble_tracker: WARN
  18.  
  19. # Enable Home Assistant API
  20. api:
  21.  
  22. ota:
  23. password: "OTA_PASSWORD"
  24.  
  25. wifi:
  26. manual_ip:
  27. # Set this to the IP of the ESP
  28. static_ip: 192.168.0.180
  29. # Set this to the IP address of the router. Often ends with .1
  30. gateway: 192.168.0.1
  31. # The subnet of the network. 255.255.255.0 works for most home networks.
  32. subnet: 255.255.255.0
  33.  
  34. ssid: !secret wifi_ssid
  35. password: !secret wifi_password
  36.  
  37. # Enable fallback hotspot (captive portal) in case wifi connection fails
  38. ap:
  39. ssid: "powerpal"
  40. password: !secret ap_password
  41.  
  42. captive_portal:
  43.  
  44. time:
  45. - platform: homeassistant
  46. id: homeassistant_time
  47.  
  48. esp32_ble_tracker:
  49.  
  50. ble_client:
  51. - mac_address: !secret powerpal_mac
  52. id: powerpal
  53.  
  54. switch:
  55. - platform: restart
  56. name: "Powerpal Monitor Reboot"
  57.  
  58. sensor:
  59. - platform: powerpal_ble
  60. ble_client_id: powerpal
  61. power:
  62. name: "Powerpal Power"
  63. daily_energy:
  64. name: "Powerpal Daily Energy"
  65. energy:
  66. name: "Powerpal Total Energy"
  67. battery_level:
  68. name: "Powerpal Battery"
  69. pairing_code: !secret powerpal_pairing_code
  70. notification_interval: 1
  71. pulses_per_kwh: 800
  72. # http_request: powerpal_cloud_uploader
  73. time_id: homeassistant_time # daily energy still works without a time_id, but recommended to include one to properly handle daylight savings, etc.
  74.  
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement