rdh8
(Robert DeHate)
May 16, 2024, 5:06am
1
I wrote a simple program to control my pool filler.
But only once in a while does it show in HA.
WiFi is like -40dBm
It does show in ESPhome.
It works just fine, but was wondering if their was a noob mistake.
Thanks,
Robert
?How do I list code?
code below
esphome:
name: pool-filler
friendly_name: Pool Filler
esp8266:
board: nodemcuv2 #esp01_1m
Enable logging
logger:
Enable Home Assistant API
api:
encryption:
key: “**************************”
ota:
password: “********************”
wifi:
ssid: !secret wifi_ssid_ext
password: !secret wifi_password
Optional manual IP
manual_ip:
static_ip: 192.168.50.201
gateway: 192.168.50.1
subnet: 255.255.255.0
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “Pool-Filler Fallback Hotspot”
password: “********”
captive_portal:
Binary sensors
binary_sensor:
platform: gpio
pin:
number: D1
mode: INPUT_PULLUP
inverted: true
name: “Pool level”
publish_initial_state: True
filters:
delayed_off: 60000ms
on_press:
then:
switch.turn_on: Pool_Valve
logger.log: “Valve On”
on_release:
then:
switch.turn_off: Pool_Valve
logger.log: “Valve Off”
switch:
platform: gpio
pin:
number: D7
inverted: false
id: Pool_Valve
name: “Pool valve”
nickrout
(Nick Rout)
May 16, 2024, 5:51am
3
What do you mean “show in HA” - exactly where?
rdh8
(Robert DeHate)
May 20, 2024, 5:26pm
4
esphome:
name: pool-filler
friendly_name: Pool Filler
esp8266:
board: nodemcuv2 #esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "**********"
ota:
password: "********"
wifi:
ssid: !secret wifi_ssid_ext
password: !secret wifi_password
# Optional manual IP
manual_ip:
static_ip: 192.168.50.201
gateway: 192.168.50.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Pool-Filler Fallback Hotspot"
password: "********"
captive_portal:
## Binary sensors
binary_sensor:
- platform: gpio
pin:
number: D1
mode: INPUT_PULLUP
inverted: true
name: "Pool level"
publish_initial_state: True
filters:
- delayed_off: 60000ms
on_press:
then:
- switch.turn_on: Pool_Valve
- logger.log: "Valve On"
on_release:
then:
- switch.turn_off: Pool_Valve
- logger.log: "Valve Off"
switch:
- platform: gpio
pin:
number: D7
inverted: false
id: Pool_Valve
name: "Pool valve"
rdh8
(Robert DeHate)
May 20, 2024, 5:32pm
5
I guess that was open ended.
When I go to Overview it simply says Unavailable.
But I can see it in ESPhome.
Just didn’t know if it was something I didn’t put in my yaml file.
Robert