Hello all,
I’m currently experimenting with a Wemos D1 mini and a CT clamp (30A 1V) and it looks it is starting to work with good readings.
Though I would like to have the values from the log output (Raw Value + Sending value) to be displayed on a connect LCD display.
The display is working but what will be the code to display the raw+sending value in it?
It’s now pretty default yet:
esphome:
name: wemos_power_1
platform: ESP8266
board: d1_mini_lite
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Wemos Power 1 Fallback Hotspot"
password: !secret fallback_password
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
web_server:
port: 80
# Power Measurement
sensor:
- platform: ct_clamp
sensor: adc_sensor
id: "raw_value"
name: "Measured Current"
update_interval: 5s
filters:
- calibrate_linear:
# Measured value of 0 maps to 0A
- 0.0 -> 0
- 0.079 -> 7.44590
unit_of_measurement: "A"
- platform: adc
pin: A0
id: adc_sensor
filters:
- multiply: 3.3
# LCD Display
i2c:
sda: D1
scl: D2
display:
- platform: lcd_pcf8574
dimensions: 16x2
address: 0x27
lambda: |-
it.print(0, 0, "Raw Value:");
it.print(0, 1, "Sending:");
Hope someone can help me out.
Thanks in advance