Closed fgamache1 closed 1 year ago
Can you post some logs from the device after startup? You should be able to get them from the ESPHome dashboard, use View Logs and then restart the device using the Restart button in HA. Then download them and add them to this issue.
I have some other sensor, like a flow meter and a pressure meter too.
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
INFO Waiting for result... INFO OTA successful INFO Successfully uploaded program. INFO Starting log output from esphome-web-5c8418.local using esphome API INFO Successfully connected to esphome-web-5c8418.local [06:55:43][I][app:102]: ESPHome version 2023.4.4 compiled on May 9 2023, 06:55:09
[06:55:43][C][wifi:363]: Local MAC: $$$$$$$ [06:55:43][C][wifi:364]: SSID: 'flme'[redacted] [06:55:43][C][wifi:365]: IP Address: $$$$$$$$$$$ [06:55:43][C][wifi:367]: BSSID: $$$$$$$$$$$$$[redacted]
[06:55:43][C][wifi:370]: Signal strength: -62 dB ▂▄▆█ [06:55:43][C][wifi:374]: Channel: 1 [06:55:43][C][wifi:375]: Subnet: 255.255.255.0 [06:55:43][C][wifi:376]: Gateway: $$$$$$$$$$ [06:55:43][C][wifi:377]: DNS1: $$$$$$$$$$$$$$ [06:55:43][C][wifi:378]: DNS2: 0.0.0.0 [06:55:43][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04
[06:55:43][C][logger:295]: Level: DEBUG [06:55:43][C][logger:296]: Log Baud Rate: 0 [06:55:43][C][logger:297]: Hardware UART: UART0 [06:55:43][C][uart.arduino_esp32:108]: UART Bus 0: [06:55:43][C][uart.arduino_esp32:109]: TX Pin: GPIO1 [06:55:43][C][uart.arduino_esp32:110]: RX Pin: GPIO3 [06:55:43][C][uart.arduino_esp32:112]: RX Buffer Size: 256 [06:55:44][C][uart.arduino_esp32:114]: Baud Rate: 9600 baud [06:55:44][C][uart.arduino_esp32:115]: Data Bits: 8 [06:55:44][C][uart.arduino_esp32:116]: Parity: NONE [06:55:44][C][uart.arduino_esp32:117]: Stop bits: 1
[06:55:44][C][modbus:157]: Send Wait Time: 250 ms [06:55:44][C][homeassistant.time:010]: Home Assistant Time:
[06:55:44][C][century_vs_pump:093]: Address: 0x15 [06:55:44][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:44][C][adc:087]: ADC Sensor 'Filter Pressure' [06:55:44][C][adc:087]: Device Class: 'voltage' [06:55:44][C][adc:087]: State Class: 'measurement' [06:55:44][C][adc:087]: Unit of Measurement: 'PSI' [06:55:44][C][adc:087]: Accuracy Decimals: 2
[06:55:44][C][adc:097]: Pin: GPIO32 [06:55:44][C][adc:103]: Attenuation: 0db [06:55:44][C][adc:126]: Update Interval: 30.0s [06:55:44][C][pulse_counter:160]: Pulse Counter 'Pool Water Flow min' [06:55:44][C][pulse_counter:160]: State Class: 'measurement' [06:55:44][C][pulse_counter:160]: Unit of Measurement: 'L/min' [06:55:44][C][pulse_counter:160]: Accuracy Decimals: 1
[06:55:44][C][pulse_counter:161]: Pin: GPIO26 [06:55:44][C][pulse_counter:162]: Rising Edge: INCREMENT [06:55:44][C][pulse_counter:163]: Falling Edge: DISABLE [06:55:44][C][pulse_counter:164]: Filtering pulses shorter than 13 µs [06:55:44][C][pulse_counter:165]: Update Interval: 2.0s [06:55:44][C][captive_portal:088]: Captive Portal: [06:55:44][C][web_server:151]: Web Server: [06:55:44][C][web_server:152]: Address: esphome-web-5c8418.local:80
[06:55:44][C][mdns:109]: Hostname: esphome-web-5c8418 [06:55:44][C][ota:093]: Over-The-Air Updates: [06:55:44][C][ota:094]: Address: esphome-web-5c8418.local:3232 [06:55:44][C][api:138]: API Server: [06:55:44][C][api:139]: Address: esphome-web-5c8418.local:6053 [06:55:44][C][api:141]: Using noise encryption: YES [06:55:44][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:44][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:44][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:44][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:44][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:44][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:44][D][century_vs_pump:140]: Pump command 45 no response received - removed from send queue [06:55:46][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:46][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:46][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:46][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:48][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:48][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:48][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:48][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:49][D][uart_debug:114]: >>> 15:43:20:50:EC [06:55:49][D][uart_debug:114]: >>> 15:43:20:50:EC [06:55:50][D][uart_debug:114]: >>> 15:43:20:50:EC [06:55:50][D][uart_debug:114]: >>> 15:43:20:50:EC [06:55:50][D][uart_debug:114]: >>> 15:43:20:50:EC [06:55:50][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:50][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:50][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:50][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:50][D][century_vs_pump:140]: Pump command 43 no response received - removed from send queue [06:55:50][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:51][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:51][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:51][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:51][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:52][D][century_vs_pump:140]: Pump command 45 no response received - removed from send queue [06:55:52][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:55:52][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:55:52][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:52][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:52][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:52][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:52][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:55:53][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:55:53][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:55:53][D][century_vs_pump:140]: Pump command 45 no response received - removed from send queue [06:55:53][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:53][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:54][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:54][D][sensor:110]: 'Filter Pressure': Sending state 3.71000 PSI with 2 decimals of accuracy [06:55:54][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:54][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:55:54][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:54][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:54][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:54][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:54][D][century_vs_pump:140]: Pump command 45 no response received - removed from send queue [06:55:56][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:56][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:56][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:56][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:58][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:55:58][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:55:58][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:55:58][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:55:59][D][uart_debug:114]: >>> 15:43:20:50:EC [06:55:59][D][uart_debug:114]: >>> 15:43:20:50:EC [06:56:00][D][uart_debug:114]: >>> 15:43:20:50:EC [06:56:00][D][uart_debug:114]: >>> 15:43:20:50:EC [06:56:00][D][uart_debug:114]: >>> 15:43:20:50:EC [06:56:00][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:56:00][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:56:00][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:56:00][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:56:00][D][century_vs_pump:140]: Pump command 43 no response received - removed from send queue [06:56:00][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:01][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:01][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:01][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:01][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:02][D][century_vs_pump:140]: Pump command 45 no response received - removed from send queue [06:56:02][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:56:02][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:56:02][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:56:02][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:56:02][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:56:02][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:56:02][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:56:03][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:56:03][D][uart_debug:114]: >>> 15:45:20:00:00:3D:05 [06:56:03][D][century_vs_pump:140]: Pump command 45 no response received - removed from send queue [06:56:03][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:03][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:04][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:04][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:04][D][uart_debug:114]: >>> 15:45:20:00:03:7D:04 [06:56:04][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:56:04][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:56:04][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:56:04][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy [06:56:04][D][century_vs_pump:140]: Pump command 45 no response received - removed from send queue [06:56:06][D][pulse_counter:174]: 'Pool Water Flow min': Retrieved counter: 0.00 pulses/min [06:56:06][D][sensor:110]: 'Pool Water Flow min': Sending state 0.00000 L/min with 1 decimals of accuracy [06:56:06][D][pulse_counter:180]: 'Pool Water Flow min': Total : 0 pulses [06:56:06][D][sensor:110]: 'Pool Water Total': Sending state 0.00000 L with 1 decimals of accuracy '
Hmm. You don't appear to be getting any response to the commands being sent to the pump which would certainly give the "Unknown" sensor values. It looks like your pump isn't switched into Modbus mode (DIP 1 - ON, DIP 2-5 OFF), but your original issue looked like you had tried that combination. Basically your logs ought to have lines like this:
12:19:41 | [D] | [uart_debug:114] | >>> 15:45:20:00:03:7D:04
12:19:41 | [D] | [modbus:077] | Modbus user-defined function 45 found
12:19:41 | [D] | [century_vs_pump:203] | Read value 2600 from page 0, addr 3
12:19:41 | [D] | [sensor:110] | 'Pool Pump Controller Demand': Sending state 2600.00000 RPM with 0 decimals of accuracy
12:19:41 | [D] | [uart_debug:114] | <<< 15:45:10:00:03:A0:28:18:89
Hmm. You said that the demand buttons worked (which makes sense because they are sent on the TX line, but the sensor values aren't working as there is no record of any response). This would seem to indicate that the device is in modbus mode, but not getting any return data. Maybe the RX line is damaged? Can you check that both wires have continuity between the pump and the ESP device?
SOLVE::: :). That's in the code. I use the MAX485 and I forgot to add flow_control_pin to my code into modbus section.
'
modbus:
id: id_modbus_3
flow_control_pin: 4
'
Thanks you so much for your help.
Awesome code.
Hi. Thank a lot for the development of that.
I have a problem. I cannot see the rpm value. The button and the number selector work. I can set my rpm by pressing the button, or sliding with the slider. But the slider not showing the right number in the value, and I have a Unknow value to rpm sensor.
My pump is a Pentair VS Superflow. I try with the dipswitch 1 or 5 at ON. And both have the same result.
Can you help me ?
Thanks