Is anyone using the Wemos Battery Shield? I cant get it online in HA.
Im using the lolin32 board type but still no go?
Any ideas?
Thanks
Is anyone using the Wemos Battery Shield? I cant get it online in HA.
Im using the lolin32 board type but still no go?
Any ideas?
Thanks
Do you have a link for the device? Also your yaml would be good.
Sure, here is the device.
I believe it is a WROOM02.
YAML below.
esphome:
name: letterbox-tx
friendly_name: letterbox-tx
includes:
- cc1101.h
libraries:
- SPI
- "SmartRC-CC1101-Driver-Lib"
esp32:
board: lolin32
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
password:
wifi:
networks:
- ssid:
password:
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid:
password:
captive_portal:
sensor:
- platform: custom
lambda: |-
auto my_sensor = new CC1101(
5, // SCK
6, // MISO
7, // MOSI
3, // CSN
1, // GDO0
200, // bandwidth_in_khz
433.92 // freq_in_mhz
);
App.register_component(my_sensor);
return {my_sensor};
sensors:
id: transciver
internal: true
remote_transmitter:
- pin: 1 # This is GDO0
carrier_duty_percent: 100%
button:
- platform: template
name: Garage
on_press:
- lambda: get_cc1101(transciver).beginTransmission();
- remote_transmitter.transmit_raw:
code: [415,-300,370,-300,375,-300,378,-300,378,-300,379,-300,405]
repeat:
times: 10
wait_time: 10ms
- lambda: get_cc1101(transciver).endTransmission();
Ok - your first issue may be that this is an ESP8266, not an ESP32. Thus instead of:
esp32:
board: lolin32
framework:
type: arduino
try:
esp8266:
board: d1_mini
Yea, I got it working.
However, maybe you can help me with another issue I am having.
If I flash a clean config, the device boots fine, but when I add the code for my project, the device failes to boot. Heres the YAML.
This works fine on a D1 mini
esphome:
name:
friendly_name:
includes:
- cc1101.h
libraries:
- SPI
- "SmartRC-CC1101-Driver-Lib"
esp8266:
board: esp_wroom_02
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
password:
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid:
password:
captive_portal:
sensor:
- platform: custom
lambda: |-
auto my_sensor = new CC1101(
5, // SCK
6, // MISO
7, // MOSI
3, // CSN
1, // GDO0
200, // bandwidth_in_khz
433.92 // freq_in_mhz
);
App.register_component(my_sensor);
return {my_sensor};
sensors:
id: transciver
internal: true
remote_transmitter:
- pin: 1 # This is GDO0
carrier_duty_percent: 100%
button:
- platform: template
name: Garage
on_press:
- lambda: get_cc1101(transciver).beginTransmission();
- remote_transmitter.transmit_raw:
code: [415,-300,370,-300,375,-300,378,-300,378,-300,379,-300,405]
repeat:
times: 10
wait_time: 10ms
- lambda: get_cc1101(transciver).endTransmission();
Maybe an issue with your custom component? I assume since it compiles all the files and libraries are present. I don’t have much experience with custom components - sorry.
The custom component is fine, as I can install it on a D1 mini and it works fine.
The issue is only on this particular board.