Hey all, would anyone be able to recommend a device to buy as there are multiple links? perhaps add one the the github page?
You mean other than the link already there? added since your post.
What is the difference between the two linked rotary knobs @veli ? I see a huge difference in price between them. Does your code work on both of them?
A small difference in price - donât be fooled by the price of the debugging tool!
as is see:
- this has a backplate
- this actually didnt, which is what i got
- if you mean the fancy one in the video posted, its a whole another thing
For 1 and 2, to be sure get 2. To test, get either but read the description on aliexpress before deciding.
For 3 - i would go for OpenHASP if its supported.
My until-now useless square thing is ideal for OpenHASP, since the display type is not supported by esphome, i could run the web server and read touch with a custom component:
external_components:
- source: github://gpambrozio/esphome@FT6336U-touch
components: [ ft63x6 ]
But since display is blank (not supported) it was useless.
I wanted everything running ESPHome, but after trying openhasp, i changed my mind. I would try to get it working on the rotary thing as well. So you dont have to reflash it every time you want to show something different on it.
Awesome project! I also wanna try and get this to work at home. I ordered one of the âfancyâ ones.
Did you ever end up trying anything with that specific device? Or any thoughts, considerations? I think you said youâd go for openHASP with this one, why?
Hi,
i found this documentation:
also you can just flash it via the mx1.25x7 port. the pins are the same as in this dongle here:
GPIO0 is Boot on the dongle
so no need to open the device
EDIT:
has anyone a nice way to mount this thing?
EDIT2:
flashing it from nESP works nice, but when i add it to home assistant and goto esphome and Adopt it i get an error while compiling:
i need to remove under esphome those lines:
platform_packages:
- framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32
or else i get this error:
INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome/nesp.yaml...
WARNING Found 'WIFI:S:${ap_ssid};T:WPA;P:${ap_password};;' (see qr_code->0->value) which looks like a substitution, but 'ap_ssid' was not declared
WARNING Found 'WIFI:S:${ap_ssid};T:WPA;P:${ap_password};;' (see qr_code->0->value) which looks like a substitution, but 'ap_password' was not declared
WARNING Found 'WIFI:S:${ap_ssid};T:WPA;P:${ap_password};;' (see qr_code->0->value) which looks like a substitution, but 'ap_ssid' was not declared
WARNING Found 'WIFI:S:${ap_ssid};T:WPA;P:${ap_password};;' (see qr_code->0->value) which looks like a substitution, but 'ap_password' was not declared
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Generating C++ source...
INFO Compiling app...
Processing nesp-arbeitszimmer (board: esp32-s2-saola-1; framework: arduino; platform: https://github.com/platformio/platform-espressif32.git)
--------------------------------------------------------------------------------
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
- framework-arduinoespressif32 @ 3.0.0+sha.51cb927
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch5
KeyError: 'framework-arduinoespressif32-libs':
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/data/cache/platformio/platforms/espressif32@src-5f117260f75b328038ec9d3fd0e14a68/builder/main.py", line 346:
target_elf = env.BuildProgram()
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Util/envs.py", line 242:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/tools/piobuild.py", line 61:
env.ProcessProgramDeps()
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Util/envs.py", line 242:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/tools/piobuild.py", line 121:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Util/envs.py", line 242:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/platformio/builder/tools/piobuild.py", line 342:
SConscript(env.GetFrameworkScript(name), exports="env")
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 662:
return method(*args, **kw)
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/data/cache/platformio/platforms/espressif32@src-5f117260f75b328038ec9d3fd0e14a68/builder/frameworks/arduino.py", line 41:
SConscript(
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 662:
return method(*args, **kw)
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "/data/cache/platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/data/cache/platformio/packages/framework-arduinoespressif32@src-4942392190fa5de522c4d55bf2967706/tools/platformio-build.py", line 40:
FRAMEWORK_LIBS_DIR = platform.get_package_dir("framework-arduinoespressif32-libs")
File "/usr/local/lib/python3.11/dist-packages/platformio/platform/_packages.py", line 32:
pkg = self.get_package(name)
File "/usr/local/lib/python3.11/dist-packages/platformio/platform/_packages.py", line 29:
return self.pm.get_package(spec or self.get_package_spec(name))
File "/usr/local/lib/python3.11/dist-packages/platformio/platform/_packages.py", line 21:
owner=self.packages[name].get("owner"),
========================== [FAILED] Took 0.51 seconds ==========================``
type or paste code here
Hi, just for info.
My button was connected to GPIO7 and not 2. Also the button is conencted to 5V, like it is shown here:
so i changed the code like this:
binary_sensor:
- platform: gpio
pin:
number: 7 #GPIO5 #GPIO14 # GPIO12
# mode: INPUT_PULLUP
# inverted: true
mode:
input: true
pulldown: true
name: Button
internal: false
id: ${device_name}_button
icon: mdi:circle-outline
## Cant get it to work reliably
on_press:
- lambda: |-
ESP_LOGW("button", "pressed at %lu", millis());
on_release:
- lambda: |-
ESP_LOGE("button", "release at %lu", millis());
# on_press:
# then:
# - lambda: |-
# ESP_LOGE("button", "on_press");
# - script.execute: vibrate
# on_click:
# then:
# - lambda: |-
# ESP_LOGE("button", "on_click");
# on_multi_click:
# - timing: !include common/click/single.yaml
# then:
# - script.execute: display_on
and now the button is working for me
i need to say that i got the 2.4" display with an esp32 s2 solo and i saw that there is an 2.1" display with an Esp32 C3 so that can be wired different
There is now a pull request up with a patch to allow setup of frameworkarduinoespressif32-libs, i.e. that will fix the KeyError. #1281
However, there are a bunch of breaking changes in alpha 3.0.0, so your code might not even compile with the new package ⌠but this will at least allow you to get to that step.
Hey guys, extremely interested in this, want it for nESP and was wondering if we could change it to be a light dimmer and rotate to different lights, colours, etc?
In what? There are several devices listed in the thread, and you havenât replied to any particular post.
The nESP code is given.
It was a general question, not to anyone or post. I was just wondering if or how difficult it would be to change the code to do what I wanted.
Now I am not a coder and maybe someone knows of a link that could help. I have searched for a long time and canât find anything.
Please confirm which code you are referring to. I am assuming this
It is quite confusing to me too, there are heaps of comments like ## Cant get it to work reliably and ## Did not work at all because turning right is a nightmare and ## Cant get it to work reliably
However it seems that gpio 16 & 17 are controlling the rotary stuff, see lines 261 onward.
Just had a closer look at the code. Now I know why i didnt pursue development lol. I think ill get a device, load it up fi d how true all the comments are and see if i can then change it to support fimmable lights, this should be fun and frustrating I think.
hey guys.
I am wondering, how do you measure actual temperature in those rooms where you place this thermostat into⌠Any idea how to connect at least one temp sensor into any of free gpio (if any) on this device?
I am not too much into HW hence the questions.
Many thanks.
I just use an Aqara Temp & Humidity sensor in the kitchen vlose to where the heatpump is and one in the lounge, they are cheap and work bloody well. No idea sbout adding a temp sensor to the device
hey guys. me again.
trying to flash esp32 through nESP but keep getting either:
Your ESP32-S3 board is not supported.
or
Failed to initialize. Try resetting your device or holding the BOOT button while clicking INSTALL.
(yes, I am holding boot buttonâŚ)
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x28 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x17b8
load:0x403b6000,len:0xe28
load:0x403ba000,len:0x30d4
entry 0x403b6274
I (25) boot: ESP-IDF v4.4-367-gc29343eb94-dirty 2nd stage bootloader
I (25) boot: compile time 14:57:01
I (25) boot: chip revision: 0
I (28) qio_mode: Enabling default flash chip QIO
I (33) boot.esp32s3: Boot SPI Speed : 80MHz
I (38) boot.esp32s3: SPI Mode : QIO
I (43) boot.esp32s3: SPI Flash Size : 8MB
I (48) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (57) boot: ## Label Usage Type ST Offset Length
I (64) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (71) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (79) boot: 2 factory factory app 00 00 00010000 00600000
I (86) boot: End of partition table
I (91) esp_image: segment 0: paddr=00010020 vaddr=3c060020 size=157e9ch (1408668) map
I (313) esp_image: segment 1: paddr=00167ec4 vaddr=3fc98520 size=0301ch ( 12316) load
I (315) esp_image: segment 2: paddr=0016aee8 vaddr=40378000 size=05130h ( 20784) load
I (322) esp_image: segment 3: paddr=00170020 vaddr=42000020 size=560b0h (352432) map
I (380) esp_image: segment 4: paddr=001c60d8 vaddr=4037d130 size=0b3f0h ( 46064) load
I (389) esp_image: segment 5: paddr=001d14d0 vaddr=50000000 size=00010h ( 16) load
I (396) boot: Loaded app from partition at offset 0x10000
I (396) boot: Disabling RNG early entropy source...
I (410) opi psram: vendor id : 0x0d (AP)
I (410) opi psram: dev id : 0x02 (generation 3)
I (410) opi psram: density : 0x03 (64 Mbit)
I (414) opi psram: good-die : 0x01 (Pass)
I (418) opi psram: Latency : 0x01 (Fixed)
I (423) opi psram: VCC : 0x01 (3V)
I (428) opi psram: SRF : 0x01 (Fast Refresh)
I (433) opi psram: BurstType : 0x01 (Hybrid Wrap)
I (439) opi psram: BurstLen : 0x01 (32 Byte)
I (444) opi psram: Readlatency : 0x02 (10 cycles@Fixed)
I (450) opi psram: DriveStrength: 0x00 (1/1)
W (455) PSRAM: DO NOT USE FOR MASS PRODUCTION! Timing parameters will be updated in future IDF version.
I (465) spiram: Found 64MBit SPI RAM device
I (469) spiram: SPI RAM mode: sram 80m
I (474) spiram: PSRAM initialized, cache is in normal (1-core) mode.
I (481) cpu_start: Pro cpu up.
I (485) cpu_start: Starting app cpu, entry point is 0x40379460
I (I 49u) sprt: : p stpuctuon.i
d and mapped to SPIRAM
I (524) spiram: Read only data copied and mapped to SPIRAM
I (614) cpu_start: Pro cpu start user code
I (614) cpu_start: cpu freq: 240000000
I (614) cpu_start: Application information:
I (617) cpu_start: Project name: get-start
I (622) cpu_start: App version: 1
I (627) cpu_start: Compile time: Sep 23 2022 14:56:55
I (633) cpu_start: ELF file SHA256: 843773cd97c5aaa1...
I (639) cpu_start: ESP-IDF: v4.4-367-gc29343eb94-dirty
I (645) heap_init: Initializing. RAM available for dynamic allocation:
I (653) heap_init: At 3FCA4B70 len 0003B490 (237 KiB): D/IRAM
I (659) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (666) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (672) spiram: Adding pool of 6400K of external SPI memory to heap allocator
I (680) spi_flash: detected chip: generic
I (685) spi_flash: flash io: qio
W (688) spi_flash: Detected size(16384k) larger than the size in the binary image header(8192k). Using the size in the binary image header.
I (702) sleep: Configure to isolate all GPIO pins in sleep state
I (708) sleep: Enable automatic switching of GPIO sleep configuration
I (716) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (731) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (740) uart: queue free spaces: 5
I (919) gpio: GPIO[21]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (919) gpio: GPIO[41]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (926) gpio: GPIO[47]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (954) gpio: GPIO[3]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
W (955) QMSD_BOARD: Only support gui full refresh now
I (961) QMSD: qmsd certificated!
I (965) gpio: GPIO[3]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (973) gpio: GPIO[3]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (982) MY_UI_LOGIC: scr: 0
used: 5448 ( 17 %), frag: 1 %, biggest free: 27312
adding, that I am using their provided programming toolâŚ
I get the same issue, I am using the 2.1" 480x480 version with st7701s (not the 240x320 st7789v)
I am using ESPHome to install it now, not the online tool.
I have managed to get it to install and the backlight to work after several hours of playing around now I am trying to setup the GPIO pins which seems to be impossible, I keep getting pin XX is used in multiple places, which is true LOL but trying to work out what pin is for what is a bloody nightmare.
i.e. the st7701s display has 15 pins for RGB (5xR, 6xG & 5xB)
If I get it to work Iâll post the code
yolo:
pin:
number: x
allow_other_uses: true
ignore_strapping_warning: true
You shouldnât need to use allow_other_uses except in very unusual cases.