esphome: name: roleta_1 platform: ESP8266 board: nodemcuv2 wifi: ssid: "xxxx" password: "xxxx" manual_ip: # Set this to the IP of the ESP static_ip: 192.168.1.130 # Set this to the IP address of the router. Often ends with .1 gateway: 192.168.1.1 # The subnet of the network. 255.255.255.0 works for most home networks. subnet: 255.255.255.0 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Roleta 1 Fallback Hotspot" password: "XzWTuZecmx6m" captive_portal: # Enable logging logger: # Enable Home Assistant API api: services: - service: control_servo variables: level: float then: - servo.write: id: my_servo level: !lambda 'return level / 100.0;' ota: output: - platform: esp8266_pwm id: pwm_output pin: D1 frequency: 50 Hz servo: - id: my_servo output: pwm_output