Problem with sensor offline

Running ESPHome 2022.3.1 on Home Assistant 2022.3.8 and after upgraded a sensor in ESPHome it now shows up as offline. If i click on logs it connects and the logs updates. I can do a OTA updare of firmware, but it does not show up as online and the sensor is unavailable in Home Assistant.

This sensor reports every minute and does not go to sleep.

Nothing shows up in the logs

Any Ideas why it won’t connect ?

Apologies but that is a poor request for help.

Upgraded what, ESPHome, HA, the sensor config, all of the above?

What type of sensor?

Can we see the esphome config?

Can we see the esphome logs?

1 Like

Sorry, To early in the morning …
After upgrading ESPhome to ESPHome 2022.3.1 there is a button on each sensor that says “UPDATE” This Sensor I updated. Sorry I was unclear

The Sensor configuration is:

esphome:
  name: waterflow
  platform: ESP32
  board: esp-wrover-kit

wifi:
  ssid: "NoInternetAvailable"
  password: "AnotherSecretPassword"
  manual_ip:
    static_ip: 10.0.0.230
    gateway: 10.0.0.140
    subnet: 255.0.0.0
  
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Waterflow Fallback Hotspot"
    password: "YouReallyDontKnow"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

sensor:
  - platform: integration
    name: "Total Daily water usage day"
    sensor: my_flow_meter
    time_unit: d

  - platform: integration
    name: "Total Daily water usage hour"
    sensor: my_flow_meter
    time_unit: h

  - platform: pulse_counter
    pin: GPIO27
    id: my_flow_meter
    name: "Current Water usage"
    update_interval: 60s
    filters:
    - lambda: return (x /60);
    unit_of_measurement: "L/min"  

And here is the ESPHome logs

INFO Reading configuration /config/esphome/waterflow.yaml...
INFO Starting log output from 10.0.0.230 using esphome API
INFO Successfully connected to 10.0.0.230
[08:29:11][I][app:102]: ESPHome version 2022.3.1 compiled on Jun 30 2022, 12:14:58
[08:29:11][C][wifi:491]: WiFi:
[08:29:11][C][wifi:353]:   Local MAC: F0:08:D1:D3:12:60
[08:29:11][C][wifi:354]:   SSID: 'NoInternetAvailable'[redacted]
[08:29:11][C][wifi:355]:   IP Address: 10.0.0.230
[08:29:11][C][wifi:357]:   BSSID: 78:45:58:34:27:23[redacted]
[08:29:11][C][wifi:358]:   Hostname: 'waterflow'
[08:29:11][C][wifi:360]:   Signal strength: -72 dB ▂▄▆█
[08:29:11][C][wifi:364]:   Channel: 11
[08:29:11][C][wifi:365]:   Subnet: 255.0.0.0
[08:29:11][C][wifi:366]:   Gateway: 10.0.0.140
[08:29:11][C][wifi:367]:   DNS1: 0.0.0.0
[08:29:11][C][wifi:368]:   DNS2: 0.0.0.0
[08:29:11][C][logger:233]: Logger:
[08:29:11][C][logger:234]:   Level: DEBUG
[08:29:11][C][logger:235]:   Log Baud Rate: 115200
[08:29:11][C][logger:236]:   Hardware UART: UART0
[08:29:11][C][integration:025]: Integration Sensor 'Total Daily water usage day'
[08:29:11][C][integration:025]:   State Class: ''
[08:29:11][C][integration:025]:   Unit of Measurement: 'L/mind'
[08:29:11][C][integration:025]:   Accuracy Decimals: 4
[08:29:11][C][integration:025]:   Icon: 'mdi:pulse'
[08:29:11][C][integration:025]: Integration Sensor 'Total Daily water usage hour'
[08:29:11][C][integration:025]:   State Class: ''
[08:29:11][C][integration:025]:   Unit of Measurement: 'L/minh'
[08:29:11][C][integration:025]:   Accuracy Decimals: 4
[08:29:11][C][integration:025]:   Icon: 'mdi:pulse'
[08:29:11][C][pulse_counter:148]: Pulse Counter 'Current Water usage'
[08:29:11][C][pulse_counter:148]:   State Class: 'measurement'
[08:29:11][C][pulse_counter:148]:   Unit of Measurement: 'L/min'
[08:29:11][C][pulse_counter:148]:   Accuracy Decimals: 2
[08:29:11][C][pulse_counter:148]:   Icon: 'mdi:pulse'
[08:29:11][C][pulse_counter:149]:   Pin: GPIO27
[08:29:11][C][pulse_counter:150]:   Rising Edge: INCREMENT
[08:29:11][C][pulse_counter:151]:   Falling Edge: DISABLE
[08:29:11][C][pulse_counter:152]:   Filtering pulses shorter than 13 µs
[08:29:11][C][pulse_counter:153]:   Update Interval: 60.0s
[08:29:11][C][captive_portal:088]: Captive Portal:
[08:29:11][C][mdns:084]: mDNS:
[08:29:11][C][mdns:085]:   Hostname: waterflow
[08:29:11][C][ota:085]: Over-The-Air Updates:
[08:29:12][C][ota:086]:   Address: 10.0.0.230:3232
[08:29:12][C][api:138]: API Server:
[08:29:12][C][api:139]:   Address: 10.0.0.230:6053
[08:29:12][C][api:143]:   Using noise encryption: NO
[08:29:43][D][pulse_counter:162]: 'Current Water usage': Retrieved counter: 77.00 pulses/min
[08:29:43][D][sensor:125]: 'Current Water usage': Sending state 1.28327 L/min with 2 decimals of accuracy
[08:29:43][D][sensor:125]: 'Total Daily water usage day': Sending state 0.18785 L/mind with 4 decimals of accuracy
[08:29:43][D][sensor:125]: 'Total Daily water usage hour': Sending state 4.50848 L/minh with 4 decimals of accuracy