esphome: name: new_node platform: ESP8266 board: nodemcuv2 includes: - shift_register_switch.h libraries: - ShiftRegister74HC595@1.2 wifi: ssid: "TR-1" password: "1234" manual_ip: # Set this to the IP of the ESP static_ip: 192.168.1.240 # Set this to the IP address of the router. Often ends with .1 gateway: 192.168.1.254 # The subnet of the network. 255.255.255.0 works for most home networks. subnet: 255.255.255.0 switch: - platform: custom lambda: |- std::vector switches; for(int i = 0; i < 8; i++) { auto zone_switch = new ShiftRegisterSwitch(i); App.register_component(zone_switch); switches.push_back(zone_switch); } return switches; switches: - name: "Zone 1" inverted: yes icon: mdi:nintendo-switch # icon: mdi:water - name: "Zone 2" inverted: yes icon: mdi:nintendo-switch # icon: mdi:water - name: "Zone 3" inverted: yes icon: mdi:nintendo-switch # icon: mdi:water - name: "Zone 4" inverted: yes icon: mdi:nintendo-switch # icon: mdi:water - name: "Zone 5" inverted: yes icon: mdi:dip-switch # icon: mdi:water - name: "Zone 6" inverted: yes icon: mdi:dip-switch # icon: mdi:water - name: "Zone 7" inverted: yes icon: mdi:dip-switch # icon: mdi:water - name: "Zone 8" inverted: yes icon: mdi:dip-switch # icon: mdi:water status_led: pin: 16 text_sensor: - platform: version name: DIY_Controller # Enable logging logger: # Enable Home Assistant API api: password: "1234" ota: password: "1234"