u/SonyJunkie

Shops and Restaurants I'd Like To See In Cambridge

With UniQlo opening later this year it got me thinking that these are some of the shops and restaurants I'd like to see come to Cambridge.

Costco

IKEA

Lego

Miller and Carter

The Botanist

Gregg's in the city centre!

Are there any you'd like to see?

reddit.com
u/SonyJunkie — 2 days ago

Hi Everyone, I am trying to build a display using an ESP32C6 and a 4 digit 7-segement display to show how many total hours my Bambu Lab printer has.

With the "help" of ChatGPT I have come up with the following YAML code, however the issues I am having are:

1/ The display only shows 0 instead of the current reading of 337 2/ In ESPHome in shows as offline and I can't see any logs.

This is my YAML code, I have replaced any sensitive information!

Can anyone offer help to fix this?

esphome:
  name: printer-hours-display-v2
  friendly_name: Printer Hours Display V2

esp32:
  board: esp32-c6-devkitc-1
  framework:
    type: esp-idf

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "SOMETHING"

ota:
  - platform: esphome
    password: "SOMETHING"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Printer-Hours-Display-V2"
    password: "PASSWORD"

captive_portal:

# Pull sensor from Home Assistant
sensor:
  - platform: homeassistant
    id: printer_seconds
    entity_id: sensor.p1s_01p00c520500833_total_usage

  - platform: template
    id: printer_hours
    name: "Printer Total Hours"
    lambda: |-
      if (id(printer_seconds).has_state()) {
        return id(printer_seconds).state;
      } else {
        return 0;
      }
    update_interval: 60s

# TM1637 display
display:
  - platform: tm1637
    clk_pin: GPIO10
    dio_pin: GPIO11
    update_interval: 60s
    intensity: 3  # 0–7 (don’t blind yourself)
    lambda: |-
      if (id(printer_hours).has_state()) {
        int hours = (int) id(printer_hours).state;
        it.printf("%4d", hours);
      } else {
        it.print("----");
      }
reddit.com
u/SonyJunkie — 18 days ago