Browse Source

Add static ip to the esphome implementation

master
Elis Hirwing 2 years ago
parent
commit
5bc6af49a9
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 2
      esphome/secrets.yaml
  2. 7
      esphome/watersensor.yaml

2
esphome/secrets.yaml

@ -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
esphome/watersensor.yaml

@ -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