diff --git a/_data/r3-cpu-pwr.yaml b/_data/r3-cpu-pwr.yaml new file mode 100644 index 0000000..8200e5c --- /dev/null +++ b/_data/r3-cpu-pwr.yaml @@ -0,0 +1,83 @@ +substitutions: + device_name: r3-cpu-pwr + dn: r3_cpu_pwr + friendly_name: Rack3 Computer Power + +esphome: + name: "${device_name}" + platform: ESP8266 + board: esp01_1m + +wifi: + ssid: !secret wifi_oss_ssid + password: !secret wifi_oss_pw + fast_connect: true + + manual_ip: + static_ip: 192.168.35.248 + gateway: 192.168.35.1 + subnet: 255.255.255.0 + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "${device_name} Fallback Hotspot" + password: !secret wifi_fallback_pw + +# Enable logging +logger: + +# Enable Home Assistant API +api: + +ota: + # password: !secret gosund_1_ota + +binary_sensor: + - platform: gpio + pin: + number: GPIO4 + mode: INPUT_PULLUP + inverted: True + name: "${friendly_name} Button" + id: "${dn}_button" + on_press: + - switch.toggle: "${dn}_relay" + - platform: status + name: "${friendly_name} Status" + id: "${dn}_status" + +switch: + - platform: gpio + name: "${friendly_name} Relay" + id: "${dn}_relay" + pin: GPIO14 + on_turn_on: + - output.turn_on: led + on_turn_off: + - output.turn_off: led + +status_led: + pin: + number: GPIO12 + inverted: yes + +output: + - platform: gpio + pin: GPIO13 + inverted: true + id: led + +sensor: + - platform: wifi_signal + name: "${friendly_name} WiFi signal" + id: "${dn}_wifi_signal" + update_interval: 60s + - platform: uptime + name: "${friendly_name} Uptime" + id: "${dn}_uptime" + update_interval: 60s + +text_sensor: + - platform: version + name: "${friendly_name} ESPHome Version" + id: "${dn}_esphome_version" \ No newline at end of file diff --git a/_data/tv1-cpu-pwr.yaml b/_data/tv1-cpu-pwr.yaml new file mode 100644 index 0000000..d758b2f --- /dev/null +++ b/_data/tv1-cpu-pwr.yaml @@ -0,0 +1,83 @@ +substitutions: + device_name: tv1-cpu-pwr + dn: tv1_cpu_pwr + friendly_name: 1st Floor TV Computer Power + +esphome: + name: "${device_name}" + platform: ESP8266 + board: esp01_1m + +wifi: + ssid: !secret wifi_oss_ssid + password: !secret wifi_oss_pw + fast_connect: true + + manual_ip: + static_ip: 192.168.35.250 + gateway: 192.168.35.1 + subnet: 255.255.255.0 + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "${device_name} Fallback Hotspot" + password: !secret wifi_fallback_pw + +# Enable logging +logger: + +# Enable Home Assistant API +api: + +ota: + # password: !secret gosund_1_ota + +binary_sensor: + - platform: gpio + pin: + number: GPIO4 + mode: INPUT_PULLUP + inverted: True + name: "${friendly_name} Button" + id: "${dn}_button" + on_press: + - switch.toggle: "${dn}_relay" + - platform: status + name: "${friendly_name} Status" + id: "${dn}_status" + +switch: + - platform: gpio + name: "${friendly_name} Relay" + id: "${dn}_relay" + pin: GPIO14 + on_turn_on: + - output.turn_on: led + on_turn_off: + - output.turn_off: led + +status_led: + pin: + number: GPIO12 + inverted: yes + +output: + - platform: gpio + pin: GPIO13 + inverted: true + id: led + +sensor: + - platform: wifi_signal + name: "${friendly_name} WiFi signal" + id: "${dn}_wifi_signal" + update_interval: 60s + - platform: uptime + name: "${friendly_name} Uptime" + id: "${dn}_uptime" + update_interval: 60s + +text_sensor: + - platform: version + name: "${friendly_name} ESPHome Version" + id: "${dn}_esphome_version" \ No newline at end of file