alengwenus / esphome_components

External components for ESPHome
GNU General Public License v3.0
29 stars 9 forks source link

No activity at all #3

Closed tofferlicious closed 2 years ago

tofferlicious commented 2 years ago

Hi,

I am basically using the same config as from the example, but with a different board and VERY_VERBOSE logging:

esphome: name: power_sensor platform: ESP8266 board: nodemcuv2

logger: level: VERY_VERBOSE baud_rate: 0

But I see no data coming and also the logging looks very "quiet". I just see the following:

[08:11:26][C][wifi:352]: Local MAC: 48:3F:DA:A3:D6:01 [08:11:26][C][wifi:353]: SSID: [redacted] [08:11:26][C][wifi:354]: IP Address: 192.168.1.94 [08:11:26][C][wifi:356]: BSSID: [redacted]

[08:11:26][C][wifi:359]: Signal strength: -72 dB ▂▄▆█ [08:11:26][V][wifi:361]: Priority: 0.0 [08:11:26][C][wifi:363]: Channel: 11 [08:11:26][C][wifi:364]: Subnet: 255.255.255.0 [08:11:26][C][wifi:365]: Gateway: 192.168.1.10 [08:11:26][C][wifi:366]: DNS1: 192.168.1.10 [08:11:26][C][wifi:367]: DNS2: 0.0.0.0 [08:11:26][C][uart.arduino_esp8266:095]: UART Bus: [08:11:26][C][uart.arduino_esp8266:096]: TX Pin: GPIO1 [08:11:26][C][uart.arduino_esp8266:097]: RX Pin: GPIO3 [08:11:26][C][uart.arduino_esp8266:099]: RX Buffer Size: 256 [08:11:26][C][uart.arduino_esp8266:101]: Baud Rate: 9600 baud [08:11:26][C][uart.arduino_esp8266:102]: Data Bits: 8 [08:11:26][C][uart.arduino_esp8266:103]: Parity: NONE [08:11:26][C][uart.arduino_esp8266:104]: Stop bits: 1 [08:11:26][C][uart.arduino_esp8266:106]: Using hardware serial interface.

[08:11:26][C][logger:234]: Level: VERY_VERBOSE [08:11:26][C][logger:235]: Log Baud Rate: 0 [08:11:26][C][logger:236]: Hardware UART: UART0

[08:11:26][C][sml_sensor:032]: State Class: '' [08:11:26][C][sml_sensor:032]: Unit of Measurement: 'kWh' [08:11:26][C][sml_sensor:032]: Accuracy Decimals: 1

[08:11:26][C][sml_sensor:032]: State Class: '' [08:11:26][C][sml_sensor:032]: Unit of Measurement: 'W' [08:11:26][C][sml_sensor:032]: Accuracy Decimals: 1

[08:11:26][C][captive_portal:150]: Captive Portal: [08:11:26][C][ota:082]: Over-The-Air Updates: [08:11:26][C][ota:083]: Address: power_sensor.local:8266 [08:11:26][C][api:134]: API Server: [08:11:26][C][api:135]: Address: power_sensor.local:6053 [08:11:26][C][api:139]: Using noise encryption: NO [08:11:35][VV][api.service:327]: on_ping_request: PingRequest {} [08:11:35][VV][api.service:043]: send_ping_response: PingResponse {} [08:11:40][VV][scheduler:152]: Running interval '' with interval=60000 last_execution=311763417 (now=311823425) [08:11:41][VV][api.service:327]: on_ping_request: PingRequest {} [08:11:41][VV][api.service:043]: send_ping_response: PingResponse {} [08:11:50][VV][api.service:327]: on_ping_request: PingRequest {} [08:11:50][VV][api.service:043]: send_ping_response: PingResponse {} [08:11:56][VV][api.service:327]: on_ping_request: PingRequest {} [08:11:56][VV][api.service:043]: send_ping_response: PingResponse {} [08:12:05][VV][api.service:327]: on_ping_request: PingRequest {} [08:12:05][VV][api.service:043]: send_ping_response: PingResponse {} [08:12:11][VV][api.service:327]: on_ping_request: PingRequest {} [08:12:11][VV][api.service:043]: send_ping_response: PingResponse {}

ESPHome is on version 2021.10.3. I am using an BPW96C phototransistor which I was told should work for reading out from the S0 interface from my EasyMeter Q3A. With my phone's camera I was able to see a light emitting every second from it.

Is there another way to first test, that my phototransitor and wiring is working at all? E.g. are there other logs to check and could I also use a IR remote control to see if anything is being received?

Thanks a lot in advance!

syssi commented 2 years ago

You could try this project: https://github.com/mruettgers/SMLReader/

This project uses the libsml from volkszaehler and supports a configurable RX led. As soon your setup (IR receiver + wiring) is working you should move to this project again to get a better understanding what is going on.

Another idea: You can increase the log level to VERY_VERBOSE of the UART component of esphome. In this case esphome outputs every received byte as log message. Which baudrate do you use?

tofferlicious commented 2 years ago

Thanks @syssi! I will try out the SMLReader and get back to this solution afterwards. I already set the log level to VERY_VERBOSE globally, so I should get the UART messages (I hope):

logger: level: VERY_VERBOSE baud_rate: 0

I am using 9600 as the UART baud-rate.

autox86 commented 2 years ago

No idea what you try to read (Manu / Modell) but seems the reader is not best for that. Google: Hichi SML Reader - bay link is the right one. This one has proven to work fine.

alengwenus commented 2 years ago

Closed due to inactivity.