Hello,
i recently ordered 2 Shelly PLUS 1 to try and get them to run a bletracker. So far i’ve succesfully flashed them with ESPHome and integrated them in HA. I’ve used this configuration, supplemented with a static IP (so not including the bletracker just yet). I wasn’t able to flash the device directly from HA, so i had to use ESPHome for windows, which worked very well!
After i got this working i tried adding the “esp32_ble_tracker:” syntax. The code compiled succesfully and the flashing OTA was succesfull as wel. However after rebooting the Shelly is no longer found by HA and seems to be crashing. However, i can still see the shelly in my Modem (even after refreshing it). Also OTA updates are no longer working, I have to flash the Shelly over a COM port with a confugation without the bletracker for it to fully work again.
I do have quite some experience with ESP’s and arduino, but am new to HA and ESPHome. So i do not immediately know where to look for a solution to this.
One thing i was suspecting is that the Shelly doesn’t get enough power. I’ve still got the Shelly powered by the ttl converter using a 1A power supply; that should be enough, right?
I’m hesitant to connect the Shelly to mains power, because it was a real pain to connect the VCC, GND, TX, RX wires to the connector on the Shelly, which is extremely small! I don’t want to do that again, if i can help it
So to summarize: i got everything working fine, however adding the “esp32_ble_tracker:” seems to crash the Shelly. I would be very gratefull for anyone who could point me in the right direction for a solution. Or is what i’m trying to do here just not possible? I don’t see a reason why it wouldn’t be, but i’m happy to learn
Thank in advance.
This is extremely unlikely
The esp32_ble_tracker integration is well known to make troubles:
opened 03:29PM - 09 Jun 21 UTC
integration: esp32_ble_tracker
<!-- Thanks for reporting a bug for this project. READ THIS FIRST:
- Provide … as many details as possible. Simply saying "X gives bug" or "X gives error" is not enough!
- Paste logs, configuration sample and code into the backticks (```).
- Read through the template carefully and fill out all missing details.
- Please also search for similar issues in this issue tracker first and read through the ESPHome FAQ.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue may be closed without a comment.
-->
**Operating environment/Installation (Hass.io/Docker/pip/etc.):**
<!--
Please provide details about your environment below this line. -->
pip
**ESP (ESP32/ESP8266, Board/Sonoff):**
<!--
Please provide details about which ESP you're using below.
-->
ESP32
**ESPHome version (latest production, beta, dev branch)**
<!--
ESPHome version like v1.14 or 1.15-dev
-->
1.18.0
**Affected component:**
<!--
Please add the link to the documentation at https://esphome.io/index.html of the component in question.
-->
esp32_ble_tracker
https://esphome.io/components/esp32_ble_tracker.html
**Description of problem:**
When enabling `esp32_ble_tracker` in addition to some other components, the ESP becomes unstable and crashes/reboots constantly. Sometimes it never finishes booting and gets stuck in a boot loop. It appears to be reproducible ~ 8/10 times.
I've encountered this issue when combining `esp32_ble_tracker` with `web` and `fastled_clockless`, however it does not seem to be specific to any component other than `esp32_ble_tracker`
Running `esp32_ble_tracker` on its own with no other sensors enabled at the same time seems to be stable.
**Problem-relevant YAML-configuration entries:**
```yaml
esphome:
name: ble-test
platform: ESP32
board: nodemcu-32s
logger:
logs:
esp32_ble_tracker: INFO
esp32_ble_tracker:
sensor:
- platform: ble_rssi
mac_address: "A4:C1:38:XX:XX:XX"
name: "Kitchen BLE RSSI"
- platform: atc_mithermometer
mac_address: "A4:C1:38:XX:XX:XX"
temperature:
name: "Kitchen Temperature"
humidity:
name: "Kitchen Humidity"
battery_level:
name: "Kitchen LYWSD03MMC Battery Level"
battery_voltage:
name: "Kitchen LYWSD03MMC Battery Voltage"
- platform: ble_rssi
mac_address: "A4:C1:38:XX:XX:XX"
name: "Bathroom BLE RSSI"
- platform: atc_mithermometer
mac_address: "A4:C1:38:XX:XX:XX"
temperature:
name: "Bathroom Temperature"
humidity:
name: "Bathroom Humidity"
battery_level:
name: "Bathroom LYWSD03MMC Battery Level"
battery_voltage:
name: "Bathroom LYWSD03MMC Battery Voltage"
- platform: ble_rssi
mac_address: "A4:C1:38:XX:XX:XX"
name: "Office BLE RSSI"
- platform: atc_mithermometer
mac_address: "A4:C1:38:XX:XX:XX"
temperature:
name: "Office Temperature"
humidity:
name: "Office Humidity"
battery_level:
name: "Office LYWSD03MMC Battery Level"
battery_voltage:
name: "Office LYWSD03MMC Battery Voltage"
- platform: ble_rssi
mac_address: "A4:C1:38:XX:XX:XX"
name: "Fridge BLE RSSI"
- platform: atc_mithermometer
mac_address: "A4:C1:38:XX:XX:XX"
temperature:
unit_of_measurement: "°C"
name: "Fridge Temperature"
humidity:
name: "Fridge Humidity"
battery_level:
name: "Fridge LYWSD03MMC Battery Level"
battery_voltage:
name: "Fridge LYWSD03MMC Battery Voltage"
- platform: wifi_signal
name: ble-test WiFi Signal
update_interval: 60s
- platform: uptime
name: ble-test_uptime
id: uptime_sensor
update_interval: 60s
wifi:
power_save_mode: NONE
ap:
ssid: ble-test_AP
password: !secret 'hotspot_password'
networks:
- ssid: !secret 'wifi_name'
password: !secret 'wifi_password'
time:
- platform: homeassistant
api:
password: !secret 'ota_password'
ota:
password: !secret 'ota_password'
web_server:
text_sensor:
- platform: version
name: ble-test_version
light:
- platform: fastled_clockless
chipset: WS2812B
pin: 32
num_leds: 300
rgb_order: GRB
name: Kitchen LED Strip
restore_mode: ALWAYS_OFF
```
**Logs (if applicable):**
<!--
Please copy the debug log here. If possible, also connect to the ESP over USB and copy those logs into the backticks.
-->
```
[08:11:46][I][logger:170]: Log initialized
[08:11:46][C][ota:366]: There have been 1 suspected unsuccessful boot attempts.
[08:11:46][I][app:029]: Running through setup()...
[08:11:46][C][fastled:010]: Setting up FastLED light...
[08:11:46][C][light:097]: Setting up light 'Kitchen LED Strip'...
[08:11:46][D][light:265]: 'Kitchen LED Strip' Setting:
[08:11:46][D][light:278]: Brightness: 100%
[08:11:46][D][light:287]: Red=100%, Green=100%, Blue=100%
[08:11:47][D][text_sensor:015]: 'ble-test_version': Sending state '1.18.0 Jun 9 2021, 07:58:34'
[08:11:47][C][wifi:033]: Setting up WiFi...
[08:11:47][D][wifi:324]: Starting scan...
[08:11:47][D][sensor:099]: 'ble-test_uptime': Sending state 0.80300 s with 0 decimals of accuracy
[08:11:49][D][wifi:339]: Found networks:
[08:11:49][I][wifi:385]: - 'Sprinkles' (D4:68:4D:XX:XX:XX) ▂▄▆█
[08:11:49][D][wifi:386]: Channel: 3
[08:11:49][D][wifi:387]: RSSI: -35 dB
<SNIP>
[08:11:49][I][wifi:194]: WiFi Connecting to 'Sprinkles'...
[08:11:50][D][sensor:099]: 'Fridge BLE RSSI': Sending state -79.00000 dB with 0 decimals of accuracy
[08:11:50][D][atc_mithermometer:116]: Got ATC MiThermometer (A4:C1:38:XX:XX:XX):
[08:11:50][D][atc_mithermometer:119]: Temperature: 3.3 °C
[08:11:50][D][atc_mithermometer:122]: Humidity: 21 %
[08:11:50][D][atc_mithermometer:125]: Battery Level: 71 %
[08:11:50][D][atc_mithermometer:128]: Battery Voltage: 2.846 V
[08:11:50][D][sensor:099]: 'Fridge Temperature': Sending state 3.30000 °C with 1 decimals of accuracy
[08:11:50][D][sensor:099]: 'Fridge Humidity': Sending state 21.00000 % with 0 decimals of accuracy
[08:11:50][D][sensor:099]: 'Fridge LYWSD03MMC Battery Level': Sending state 71.00000 % with 0 decimals of accuracy
[08:11:50][D][sensor:099]: 'Fridge LYWSD03MMC Battery Voltage': Sending state 2.84600 V with 3 decimals of accuracy
[08:11:51][I][wifi:457]: WiFi Connected!
[08:11:51][C][wifi:303]: SSID: 'Sprinkles'
[08:11:51][C][wifi:304]: IP Address: 192.168.2.177
[08:11:51][C][wifi:306]: BSSID: D4:68:4D:XX:XX:XX
[08:11:51][C][wifi:307]: Hostname: 'ble-test'
[08:11:51][C][wifi:311]: Signal strength: -36 dB ▂▄▆█
[08:11:51][C][wifi:315]: Channel: 3
[08:11:51][C][wifi:316]: Subnet: 255.255.255.0
[08:11:51][C][wifi:317]: Gateway: 192.168.2.1
[08:11:51][C][wifi:318]: DNS1: 192.168.2.1
[08:11:51][C][wifi:319]: DNS2: 0.0.0.0
[08:11:51][D][wifi:466]: Disabling AP...
[08:11:51][C][web_server:073]: Setting up web server...
[08:11:51][C][ota:029]: Over-The-Air Updates:
[08:11:51][C][ota:030]: Address: ble-test.local:3232
[08:11:51][C][ota:032]: Using Password.
[08:11:51][C][api:022]: Setting up Home Assistant API server...
[08:11:51][E][AsyncTCP.cpp:1296] begin(): _pcb == NULL
[08:11:51][I][app:059]: setup() finished successfully!
[08:11:51][D][sensor:099]: 'ble-test WiFi Signal': Sending state -36.00000 dBm with 0 decimals of accuracy
[08:11:51]abort() was called at PC 0x401d36c3 on core 1
[08:11:51]
[08:11:51]Backtrace: 0x40092630:0x3ffce680 0x40092861:0x3ffce6a0 0x401d36c3:0x3ffce6c0 0x401d370a:0x3ffce6e0 0x401d3025:0x3ffce700 0x401d30fc:0x3ffce720 0x401d2e71:0x3ffce740 0x400da011:0x3ffce760 0x400da05d:0x3ffce790 0x400da071:0x3ffce7b0 0x400da093:0x3ffce7d0 0x400d9eb9:0x3ffce7f0 0x400d9ee1:0x3ffce810 0x400da821:0x3ffce830 0x400da879:0x3ffce860 0x400dfb7b:0x3ffce890 0x400dfbc7:0x3ffce8d0 0x401f01c1:0x3ffce910 0x400de6bd:0x3ffce930 0x400de749:0x3ffce960 0x400de7ad:0x3ffce9c0 0x400e4271:0x3ffce9f0 0x400e4281:0x3ffcea10 0x401f00d9:0x3ffcea30 0x40081152:0x3ffcea50 0x400e43bd:0x3ffceaa0 0x400e6bfe:0x3ffcead0 0x400f4f15:0x3ffceaf0 0x4008ed79:0x3ffceb10
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40092630: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:707
WARNING Decoded 0x40092861: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:707
WARNING Decoded 0x401d36c3: __cxxabiv1::__terminate(void (*)()) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/eh_terminate.cc:112
WARNING Decoded 0x401d370a: std::terminate() at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/eh_terminate.cc:112
WARNING Decoded 0x401d3025: __cxa_allocate_exception at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/eh_alloc.cc:313
WARNING Decoded 0x401d30fc: operator new(unsigned int) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/new_op.cc:54
WARNING Decoded 0x401d2e71: operator new[](unsigned int) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/new_opv.cc:32
WARNING Decoded 0x400da011: esphome::json::VectorJsonBuffer::reserve(unsigned int) at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400da05d: esphome::json::VectorJsonBuffer::resize(unsigned int) at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400da071: esphome::json::VectorJsonBuffer::do_alloc(unsigned int) at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400da093: esphome::json::VectorJsonBuffer::alloc(unsigned int) at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400d9eb9: ArduinoJson::Internals::JsonBufferAllocated::operator new(unsigned int, ArduinoJson::JsonBuffer*) at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400d9ee1: ArduinoJson::JsonBuffer::createObject() at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400da821: esphome::json::build_json(std::function<void (ArduinoJson::JsonObject&)> const&, unsigned int*) at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400da879: esphome::json::build_json[abi:cxx11](std::function<void (ArduinoJson::JsonObject&)> const&) at /home/lanrat/code/esphome/test/ble-test/.piolibdeps/ble-test/ArduinoJson-esphomelib/src/ArduinoJson/Deserialization/JsonParserImpl.hpp:166
WARNING Decoded 0x400dfb7b: esphome::web_server::WebServer::sensor_json[abi:cxx11](esphome::sensor::Sensor*, float) at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/web_server/web_server.cpp:68
WARNING Decoded 0x400dfbc7: esphome::web_server::WebServer::on_sensor_update(esphome::sensor::Sensor*, float) at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/web_server/web_server.cpp:68
WARNING Decoded 0x401f01c1: std::_Function_handler<void (float), esphome::Controller::setup_controller()::{lambda(float)#2}>::_M_invoke(std::_Any_data const&, float&&) at /home/lanrat/code/esphome/test/ble-test/src/esphome/core/controller.cpp:29
(inlined by) _M_invoke at /home/lanrat/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/functional:1871
WARNING Decoded 0x400de6bd: std::function<void (float)>::operator()(float) const at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/sensor/sensor.cpp:92
WARNING Decoded 0x400de749: esphome::CallbackManager<void (float)>::call(float) at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/sensor/sensor.cpp:92
(inlined by) esphome::sensor::Sensor::internal_send_state_to_frontend(float) at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/sensor/sensor.cpp:100
WARNING Decoded 0x400de7ad: esphome::sensor::Sensor::publish_state(float) at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/sensor/sensor.cpp:92
WARNING Decoded 0x400e4271: esphome::wifi_signal::WiFiSignalSensor::update() at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/wifi_signal/wifi_signal_sensor.h:13
WARNING Decoded 0x400e4281: non-virtual thunk to esphome::wifi_signal::WiFiSignalSensor::update()
WARNING Decoded 0x401f00d9: std::_Function_handler<void (), esphome::PollingComponent::call_setup()::{lambda()#1}>::_M_invoke(std::_Any_data const&) at /home/lanrat/code/esphome/test/ble-test/src/esphome/core/component.cpp:163
(inlined by) _M_invoke at /home/lanrat/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/functional:1871
WARNING Decoded 0x40081152: std::function<void ()>::operator()() const at /home/lanrat/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_vector.h:932
(inlined by) esphome::Scheduler::call() at /home/lanrat/code/esphome/test/ble-test/src/esphome/core/scheduler.cpp:158
WARNING Decoded 0x400e43bd: esphome::Application::loop() at /home/lanrat/code/esphome/test/ble-test/src/esphome/core/application.cpp:70
WARNING Decoded 0x400e6bfe: loop() at /home/lanrat/code/esphome/test/ble-test/src/esphome/components/light/light_output.h:18
WARNING Decoded 0x400f4f15: loopTask(void*) at /home/lanrat/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:19
WARNING Decoded 0x4008ed79: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
[08:11:52]
[08:11:52]Rebooting...
[08:11:52]ets Jul 29 2019 12:21:46
```
**Additional information and things you've tried:**
I've tried multiple different ESP32 boards and all seem to have the same behavior. I've also tried adding/removing different components and the only constant to reproduce this issue seems to be `esp32_ble_tracker`.
For the moment you could try this:
met67 commented on Oct 27
“Seems like the new esp-idf framework solves this issue… I managed do have BLE, Display and Wi-Fi at the same time (still too young to use in production, IMHO, but on the right path)
ESPHome 2021.10.0 - 20th October 2021 — ESPHome ”
opened 12:23PM - 16 Jul 20 UTC
Type: Improvement
integration: esp32_ble_tracker
<!-- READ THIS FIRST:
- This is for feature requests only, for issues please g… o to the issues repository.
- Please be as descriptive as possible, especially use-cases that can otherwise not be solved boost the problem's priority.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue may be closed without a comment.
-->
**Describe the problem you have/What new integration you would like**
The current bluetooth implementation uses the majority of available flash and memory space.
Someone has backported the new nimble stack to arduino (https://github.com/h2zero/NimBLE-Arduino), with only minor differences to the API.
It would be great if all the bluetooth classes could be ported to use this library instead of the current implementation.
**Please describe your use case for this integration and alternatives you've tried:**
**Additional context**
Thank you very much for your reply. However, for now, i believe this is getting a little bit too complicated for my current skill-level.
I think i will put this on hold for now and mayby look into it at a later time. It’s probably better to tackle some more “beginner friendy” projects first.
I had a similar amount of pain getting esp32_ble_tracker
working on a Shelly 1 Plus. Including the bonus idiot move of popping it in the wall then realising you had to UART flash when adding ble for the first time.
At the moment though, it’s working fine and picks up nearby BLE. The config that seems most stable for me is:
esp32:
board: esp32dev
framework:
type: esp-idf
version: latest
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
...
esp32_ble_tracker:
scan_parameters:
active: false
5 Likes
Hello David,
thank you so much, that config works for me!
I still have to add any BLE devices to test it out, but at least the Shelly is no longer crashing and is showing up in HA again! I was also able to use OTA and get the serial connection OTA.
This is the kind of stuff, that i hard for a beginner to figure out, so i’m very gratefull for you sharing your experience.
tom_l
December 6, 2021, 12:09pm
6
Don’t feel bad, I’ve been using ESPHome for years and never would have guessed that solution.
Using the esp-idf
framework
instead of the (still) default arduino
was also the “quick fix” mentioned in the github.
Anyway esphome will probably fully migrate to esp-idf in the future once the last dependency’s are migrated and then the esp32_ble_tracker will be much more stable/useable for all by default
klim123123
(Klim123123)
December 22, 2021, 1:09am
8
Could you please provide full config with switch and sensors?
I still getting boot loop.
davidtm
December 22, 2021, 1:52pm
9
Sure. I think I just used the config from esphome-devices.com
binary_sensor:
- platform: gpio
pin:
number: GPIO04
name: Switch1
filters:
- delayed_on_off: 50ms
switch:
- platform: gpio
id: shelly_relay_1
name: Relay1
pin: GPIO26
icon: "mdi:electric-switch"
restore_mode: RESTORE_DEFAULT_ON
sensor:
- platform: atc_mithermometer
mac_address: "A4:C1:38:03:CA:0D"
temperature:
name: "Bedroom Temperature"
This is the config that ended up working for me (thanks to David for his help).
I still havn’t gotten around to actually adding any Xiaomi devices and didn’t run the Shelly on mains power yet, so that’s still something i will have to try.
Keep in mind that running from USB ports didn’t work for me either. The power just isn’t enough. Try a phone charger of at least 1A, 2A would be better.
substitutions:
device_name: "Shelly 1 Plus 01"
# Higher value gives lower watt readout
current_res: "0.001"
# Lower value gives lower voltage readout
voltage_div: "1925"
esphome:
name: shelly_1_plus_01
platformio_options:
board_build.f_cpu: 160000000L
esp32:
board: esp32dev
framework:
type: esp-idf
version: latest
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
esp32_ble_tracker:
scan_parameters:
active: false
wifi:
ssid: "xxxxxx"
password: "xxxxx"
manual_ip:
static_ip: xxx
gateway: xxx
subnet: xxx
logger:
api:
ota:
password: "xxxx"
output:
- platform: gpio
id: "relay_output"
pin: GPIO26
switch:
- platform: output
id: "relay"
name: "${device_name} Relay"
output: "relay_output"
binary_sensor:
- platform: gpio
name: "${device_name} Switch"
pin: GPIO4
on_press:
then:
- switch.toggle: "relay"
filters:
- delayed_on_off: 50ms
- platform: gpio
name: "${device_name} Button"
pin:
number: GPIO25
inverted: yes
mode:
input: true
pullup: true
on_press:
then:
- switch.toggle: "relay"
filters:
- delayed_on_off: 5ms
sensor:
- platform: ntc
sensor: temp_resistance_reading
name: "${device_name} Temperature"
unit_of_measurement: "°C"
accuracy_decimals: 1
icon: "mdi:thermometer"
calibration:
b_constant: 3350
reference_resistance: 10kOhm
reference_temperature: 298.15K
on_value_range:
- above: "80.0"
then:
- switch.turn_off: "relay"
- platform: resistance
id: temp_resistance_reading
sensor: temp_analog_reading
configuration: DOWNSTREAM
resistor: 6kOhm
- platform: adc
id: temp_analog_reading
pin: GPIO32
attenuation: 11db
- platform: adc
name: "${device_name} Relay Supply Voltage"
pin: GPIO33
attenuation: 11db
filters:
- multiply: 8
status_led:
pin:
number: GPIO0
inverted: true
klim123123
(Klim123123)
December 22, 2021, 8:12pm
11
Thank you! Are you using 12VDC or 110-220VAC?
I’m trying to use 12VDC and it’s not booting
How much Ampere (or Power) can your 12VDC PSU deliver? Is it up for the task? Did you try another power source?
klim123123
(Klim123123)
December 27, 2021, 1:53am
13
It is 1A 12VDC. I used it before with Shelly, no problems.
I connected now to 220VAC and it’s working.
klim123123
(Klim123123)
December 27, 2021, 2:44am
14
Do you get same hight ping? Usually it’s 1-2ms for wifi devices(other shellies or esp32).
Hy @assembly
does OTA work for you?
I have a Shelly Plus 1 in which I copied your exact same configuration (only changes are my SSID and IP) and everything work as expected except for OTA, which does not work.
Every time I try to OTA any firmware, the Shelly reboots without installing the update.
Thank you!
Hi,
yes OTA works for me. It worked with my old config from post #1 and also with my current config.
Could you please tell me what temperature is reported by your shelly with this config?
Mine is way way off (like 75 without any load).
I believe the beta constant is not correct, or the downstream resistor is not correct but there’s little chance to figure out the right values…
Are you sure it’s off? Maybe it’s on!
Did you calibrate the NTC?
I know it’s off because the thing plugged on it is off
I didn’t calibrate the NTC, how would you do that accurately?
The beta value (b_constant
) is supposed to define the curve the resistance of the NTC follows (which from my POV is wrong in the config proposed, I believe it’s somewhere between 3950 or 4000 instead of 3350)
How does it report temperature when it’s off?
First thing I would do is to measure with another sensor to see how far the temperature is from reality. Maybe a IR Thermometer could be useful for this.
I also remember that some shellys tend to run (really) hot even without load