Advertisement
Guest User

display1

a guest
Nov 19th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.87 KB | None | 0 0
  1. esphome:
  2.   name: display
  3.   platform: ESP8266
  4.   board: nodemcuv2
  5.  
  6. wifi:
  7.   ssid: "Fam.Scherrebeck.Net"
  8.   password: "Jacob1905"
  9.  
  10.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  11.   ap:
  12.     ssid: "Display Fallback Hotspot"
  13.     password: "tPnpzpNCGLRy"
  14.  
  15. captive_portal:
  16. # Enable logging
  17. logger:
  18. # Enable Home Assistant API
  19. api:
  20. ota:
  21. mqtt:
  22.   broker: 10.0.1.2
  23.  
  24. # Example configuration entry
  25. i2c:
  26.   sda: D1
  27.   scl: D2
  28.  
  29.  
  30. display:
  31.   - platform: lcd_pcf8574
  32.     dimensions: 20x4
  33.     address: 0x27
  34.     id: my_display
  35.     pages:
  36.       - id: page1
  37.         lambda: |-
  38.           it.print(0, 10, "This is page 1!");
  39.       - id: page2
  40.         lambda: |-
  41.           it.print(0, 10, "This is page 2!");
  42.  
  43. interval:
  44.   - interval: 5s
  45.     then:
  46.       - display.page.show_next: my_display
  47.       - component.update: my_display
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement