Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
m16v2 - Unable to read voltages
#9
because the default LCD is showed  "voltage_2"

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "T: %.1f°C", id(temperature).state);
      it.printf(0, 20, id(roboto), "H: %.1f%%", id(humidity).state);
      it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_2).state);

you can replace :        it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_2).state);       with 

it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_1).state);   or
it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_3).state);

voltage_1   voltage_2     voltage_3    means different voltage detect channel.
Reply


Messages In This Thread
m16v2 - Unable to read voltages - by sure - 09-13-2023, 04:59 PM
RE: m16v2 - Unable to read voltages - by admin - 09-13-2023, 10:18 PM
RE: m16v2 - Unable to read voltages - by sure - 09-14-2023, 01:06 PM
RE: m16v2 - Unable to read voltages - by admin - 09-14-2023, 10:32 PM
RE: m16v2 - Unable to read voltages - by sure - 09-15-2023, 05:12 AM
RE: m16v2 - Unable to read voltages - by admin - 09-15-2023, 06:32 AM
RE: m16v2 - Unable to read voltages - by sure - 09-16-2023, 07:02 AM
RE: m16v2 - Unable to read voltages - by sure - 09-22-2023, 03:45 AM
RE: m16v2 - Unable to read voltages - by admin - 09-22-2023, 08:13 AM
RE: m16v2 - Unable to read voltages - by sure - 09-22-2023, 09:11 AM
RE: m16v2 - Unable to read voltages - by admin - 09-22-2023, 10:01 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)