WATER SOFTENER SALT LEVEL CHECKER (USING — NODEMCU/HOMEASSISTANT)

esphome:
name: salt_checker
platform: ESP8266
board: nodemcuv2
wifi:
ssid: <Your_Wifi_SSID>
password: <Your_Wifi_Password>
manual_ip:
static_ip: <Static_IP_for_this_device>
gateway: <Gateway_IP>
subnet: <Subnet_Mask>
mqtt:
broker: <MQTT_Broker_IP>
username: <MQTT_Username>
password: <MQTT_Password>
birth_message:
topic: salt_checker/birth_msg
payload: disable
will_message:
topic: salt_checker/will_msg
payload: disable
client_id: salt_checker
captive_portal:# Enable logging
logger:
ota:
password: "<some_password_here>"
sensor:
- platform: ultrasonic
trigger_pin: 4
echo_pin: 5
name: "Salt Level"
filters:
- lambda: return ( 33 - ( x * 39.3701 ) );
- filter_out: nan
unit_of_measurement : "in"
update_interval: 30s
accuracy_decimals: 3
deep_sleep:
id: deep_sleep_1
sleep_duration: 30min
Usable Salt Percentage % = ( (Salt Height – Brine Hight)/(Total Bin Height – Brine Height) )* 100
Usable Salt Percentage % = ( (Salt Height – 10)/(33 – 10) )* 100Usable Salt Percentage % = ( (Salt Height – 10)/(23) )* 100
- platform: mqtt  name: "Salt Percentage"  state_topic: “<device_name>/salt_pct”  unit_of_measurement: '%'

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store