Browse Source

Add static ip to the esphome implementation

master
Elis Hirwing 3 months ago
parent
commit
5bc6af49a9
Signed by: Elis Hirwing <elis@hirwing.se> GPG Key ID: D57EFA625C9A925F
2 changed files with 9 additions and 0 deletions
  1. 2
    0
      esphome/secrets.yaml
  2. 7
    0
      esphome/watersensor.yaml

+ 2
- 0
esphome/secrets.yaml View File

@@ -1,4 +1,6 @@
wifi_ssid: <ssid>
wifi_password: <psk>
wifi_static_ip: <ip>
wifi_static_gateway: <gateway>
api_password: <api-password>
ota_password: <ota-password>

+ 7
- 0
esphome/watersensor.yaml View File

@@ -8,6 +8,12 @@ wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

# Optional manual IP
manual_ip:
static_ip: !secret wifi_static_ip
gateway: !secret wifi_static_gateway
subnet: 255.255.255.0

# Enable logging
logger:

@@ -24,6 +30,7 @@ sensor:
- platform: adc
pin: A0
name: "Chilli Moisture Sensor"
unit_of_measurement: "%"
filters:
- calibrate_linear:
- 0.30 -> 100.00

Loading…
Cancel
Save