koying
(Chris B)
March 7, 2024, 10:49am
77
idâs were misplaced
esphome:
name: hemmis
friendly_name: hemmis
esp32:
board: seeed_xiao_esp32c3
variant: ESP32C3
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "6Q6KlUXNo/sFmWFl95FQ9w+xrD0wGvPkI9nhIRYOKbo="
ota:
password: "3e0cf106f66397e5c25b617030953960"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Hemmis Fallback Hotspot"
password: "BDjQBIjT7kdG"
sensor:
- platform: dht
model: AUTO_DETECT
pin: 2
temperature:
name: "Temperature"
id: dht_temp
humidity:
name: "Humidity"
id: dht_humidity
update_interval: 15s
i2c:
sda: GPIO6
scl: GPIO7
scan: False
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.printf(0, 0, id(font1), TextAlign::TOP_LEFT, "%.1f°", id(dht_temp).state);
font:
- file: 'Roboto-Regular.ttf'
id: font1
size: 12
Firmware:
https://nextcloud.semperpax.be/s/dZ2Fx2FHF6ifTai/download/hemmis-factory.bin
ticsyboy
(nico)
March 7, 2024, 11:05am
78
it\s compiling⌠what is that firmware file?
koying
(Chris B)
March 7, 2024, 11:08am
79
Itâs the result of the compilation.
You can flash it directly to the ESP with https://web.esphome.io/ in chrome/edge
ticsyboy
(nico)
March 7, 2024, 11:25am
80
we are close
Now i get only one the display: 23.9â
nothing more⌠Would like to also show humidity⌠and like this: temp: âvalueâ
hum: âValueâ
koying
(Chris B)
March 7, 2024, 11:27am
81
Pal, if you cannot proceed from here, itâs pretty much desperate
1 Like
ticsyboy
(nico)
March 7, 2024, 11:37am
82
when using the firmware file it wont work, and connect to wifiâŚ
Iâm doing a clean build like you thought me now⌠ill post backâŚ
also i added this: it.printf(0, 0, id(font1), TextAlign::TOP_LEFT, "Temperature: %.1f°C", id(dht_temp).state); it.printf(0, 16, id(font1), TextAlign::TOP_LEFT, "Humidity: %.1f%%", id(dht_hum).state);
Itâs compiling now, ill be back
ticsyboy
(nico)
March 7, 2024, 11:42am
83
now i have some other error, cant connect it to wifi⌠ill check something out
ticsyboy
(nico)
March 7, 2024, 11:47am
84
INFO Resolving IP address of hemmis.local
ERROR Error resolving IP address of hemmis.local. Is it connected to WiFi?
ticsyboy
(nico)
March 7, 2024, 12:12pm
85
now nothing works⌠cant connect to wifi?
ticsyboy
(nico)
March 7, 2024, 12:14pm
86
im trying to delete the whole damn thing and try from start
Well, maybe you forgot that esphome is very well documented and even features a getting started guide?
Please donât forget to read the docs!
Also how to ask a good question is something you probably also completely forgot (to read)
Before we beginâŚ
This forum is not a helpdesk
The people here donât work for Home Assistant, thatâs an open source project. We are volunteering our free time to help others. Not all topics may get an answer, never mind one that helps you solve your problem.
[image]
This also isnât a general home automation forum, this is a forum for Home Assistant and things related to it. Any question about Home Assistant, and about using things with Home Assistant, is welcome here. We canât help you with eâŚ
Just give it all a try! Often you are quicker in resolving your errors then posting in 5 forums and getting 20 opinions on your code!
ticsyboy
(nico)
March 13, 2024, 7:55am
88
Hello i had an exam the last 4 days, sry⌠i will try to flash this code now:
it.printf(0, 0, id(font1), TextAlign::TOP_LEFT, "Temperature: %.1f°C", id(dht_temp).state);
it.printf(0, 16, id(font1), TextAlign::TOP_LEFT, "Humidity: %.1f%%", id(dht_hum).state);
esphome:
name: hemmis
friendly_name: hemmis
esp32:
board: seeed_xiao_esp32c3
variant: ESP32C3
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "6Q6KlUXNo/sFmWFl95FQ9w+xrD0wGvPkI9nhIRYOKbo="
ota:
password: "3e0cf106f66397e5c25b617030953960"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Hemmis Fallback Hotspot"
password: "BDjQBIjT7kdG"
web_server:
captive_portal:
sensor:
- platform: dht
model: AUTO_DETECT
pin: 2
temperature:
name: "Temperature"
id: dht_temp
humidity:
name: "Humidity"
id: dht_hum
update_interval: 15s
i2c:
sda: GPIO6
scl: GPIO7
scan: False
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.printf(0, 0, id(font1), TextAlign::TOP_LEFT, "Temperature: %.1f°C", id(dht_temp).state);
it.printf(0, 16, id(font1), TextAlign::TOP_LEFT, "Humidity: %.1f%%", id(dht_hum).state);
font:
- file: 'Roboto-Regular.ttf'
id: font1
size: 12
ticsyboy
(nico)
March 13, 2024, 9:08am
89
Now i got it to succed compiling, but i get nothing on the screen!
here is my log:
Archiving .pioenvs/hemmis/libe15/libnoise-c.a
Linking .pioenvs/hemmis/firmware.elf
RAM: [= ] 8.1% (used 26388 bytes from 327680 bytes)
Flash: [===== ] 46.8% (used 858236 bytes from 1835008 bytes)
Building .pioenvs/hemmis/firmware.bin
Creating esp32c3 imageâŚ
Successfully created esp32c3 image.
esp32_create_combined_bin([â.pioenvs/hemmis/firmware.binâ], [â.pioenvs/hemmis/firmware.elfâ])
Wrote 0xe2c20 bytes to file /data/build/hemmis/.pioenvs/hemmis/firmware-factory.bin, ready to flash to offset 0x0
======================== [SUCCESS] Took 3834.70 seconds ========================
Hello i had an exam the last 4 days, sry⌠i will try to flash this code now:
it.printf(0, 0, id(font1), TextAlign::TOP_LEFT, "Temperature: %.1f°C", id(dht_temp).state);
it.printf(0, 16, id(font1), TextAlign::TOP_LEFT, "Humidity: %.1f%%", id(dht_hum).state);
esphome:
name: hemmis
friendly_name: hemmis
esp32:
board: seeed_xiao_esp32c3
variant: ESP32C3
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "6Q6KlUâŚ
is that really your yaml? or a wrong copy-and-paste? what are those first two lines for?
Please try formating your logs/yaml correctly - you succeeded already in the past!
You can read about it here: How to help us help you - or How to ask a good question
ticsyboy
(nico)
March 13, 2024, 9:44am
92
forget the 2 lines, it was a post mistake
ticsyboy
(nico)
March 13, 2024, 9:45am
93
Im trying another (same model) esp32c3 xiao, i think the other one might be broken⌠ill post when i have compiled itâŚ
Please try to format your code correctly like requested already multiple times from more then one user!
ticsyboy
(nico)
March 14, 2024, 11:13am
95
it takes my like i said over 1 hour to compile, so if i want to change only one letter i have to wait an hour to se if it works, also often get terminated ram problem⌠so i have installed haos on a powerfull pc and is setting it up now and will come back to youâŚ
ticsyboy
(nico)
March 15, 2024, 7:28am
96
I installed haos on an pc with 16gb ram (8x moore than pi) and it went from 4300 seconds compiling to 53secondsxD and also now it works Thank you guys so much for the help, now iâm going to set up hacs, and ewelink so i can use an automatic switch also at one point my esp32 was connecting and disconnecting, and i thought it was burned up, but itâs just because it got some corupt drivers onboard, so if you press and hold down the en button on it while connecting you fix that
Here is the final code: `esphome:
name: hemmis
friendly_name: hemmis
esp32:
board: seeed_xiao_esp32c3
variant: ESP32C3
framework:
type: esp-idf
Enable logging
logger:
Enable Home Assistant API
api:
encryption:
key: â6Q6KlUXNo/sFmWFl95FQ9w+xrD0wGvPkI9nhIRYOKbo=â
ota:
password: â3e0cf106f66397e5c25b617030953960â
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: âHemmis Fallback Hotspotâ
password: âBDjQBIjT7kdGâ
web_server:
captive_portal:
sensor:
platform: dht
model: AUTO_DETECT
pin: 2
temperature:
name: âTemperatureâ
id: dht_temp
humidity:
name: âHumidityâ
id: dht_hum
update_interval: 15s
i2c:
sda: GPIO6
scl: GPIO7
scan: False
display:
platform: ssd1306_i2c
model: âSSD1306 128x64â
address: 0x3C
lambda: |-
it.printf(0, 0, id(font1), TextAlign::TOP_LEFT, âTemperature: %.1f°Câ, id(dht_temp).state);
it.printf(0, 16, id(font1), TextAlign::TOP_LEFT, âHumidity: %.1f%%â, id(dht_hum).state);
font:
file: âRoboto-Regular.ttfâ
id: font1
size: 12`