Facebook
From Violet Penguin, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 136
  1. esphome:
  2.   name: roleta_1
  3.   platform: ESP8266
  4.   board: nodemcuv2
  5.  
  6. wifi:
  7.   ssid: "xxxx"
  8.   password: "xxxx"
  9.  
  10.   manual_ip:
  11.     # Set this to the IP of the ESP
  12.     static_ip: 192.168.1.130
  13.     # Set this to the IP address of the router. Often ends with .1
  14.     gateway: 192.168.1.1
  15.     # The subnet of the network. 255.255.255.0 works for most home networks.
  16.     subnet: 255.255.255.0
  17.  
  18.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  19.   ap:
  20.     ssid: "Roleta 1 Fallback Hotspot"
  21.     password: "XzWTuZecmx6m"
  22.  
  23. captive_portal:
  24.  
  25. # Enable logging
  26. logger:
  27.  
  28. # Enable Home Assistant API
  29. api:
  30.   services:
  31.     - service: control_servo
  32.       variables:
  33.         level: float
  34.       then:
  35.         - servo.write:
  36.             id: my_servo
  37.             level: !lambda 'return level / 100.0;'
  38.  
  39. ota:
  40.  
  41. output:
  42.   - platform: esp8266_pwm
  43.     id: pwm_output
  44.     pin: D1
  45.     frequency: 50 Hz
  46.    
  47. servo:
  48.   - id: my_servo
  49.     output: pwm_output