Closed messiasv closed 7 months ago
Contacting here is fine :)
What happens when you use the current code? Does the build fail? If so, what's the error?
Thank you! I get 2 errors right inside ESPHome editor:
Component esp32_ble requires component esp32.
Component light.lampsmart_pro_light requires component esp32.
My configuration:
esphome:
name: picow
friendly_name: picow
rp2040:
board: rpipicow
framework:
# Required until https://github.com/platformio/platform-raspberrypi/pull/36 is merged
platform_version: https://github.com/maxgerhardt/platform-raspberrypi.git
# I omitted: logger, api, ota, wifi, ap
external_components:
# use lampsmart_pro_light from aronsky/esphome-components's main branch in GitHub
- source:
type: git
url: https://github.com/aronsky/esphome-components
ref: main
components: [ lampsmart_pro_light ]
light:
- platform: lampsmart_pro_light
name: Kitchen Light
duration: 1000
default_transition_length: 0s
I did manage to run other code on this raspberry pi pico W (RP2040 Platform). But I'm guessing it can't run ESP32 code.. For example, this is the code to blink the onboard led:
Blinking the built-in LED
output:
- platform: gpio
pin: 32
id: led
interval:
- interval: 1000ms
then:
- output.turn_on: led
- delay: 500ms
- output.turn_off: led
Yep - it doesn't seem to support BLE on RP2040. The BLE support used by this project is specific to ESP32. While developing support for RP2040 would be possible in theory, it would require a lot of time and changes. Getting an ESP32 chip will be much easier.
Thank you for the clarification. My easy choice is to buy an ESP32 chip.
But because I already had 1 of those lights die on me completely, and my 2 remaining lights are halfway dead: only the candle color LED's working. Buying IR lights would probably be better in the long run, as I already have an IR controller.
I'm closing this issue as the matter was discussed.
Hi @aronsky again. There's no problem in picking any esp32 board ? As long as it supports wifi and BLE ? Thanks in advance.
I haven't tested it, but I believe any board should work.
On Mon, Nov 13, 2023 at 1:38 PM Valentin Messias @.***> wrote:
Hi @aronsky https://github.com/aronsky again. There's no problem in picking any esp32 board ? As long as it supports wifi and BLE ? Thanks in advance.
— Reply to this email directly, view it on GitHub https://github.com/aronsky/esphome-components/issues/7#issuecomment-1807993809, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD52DEL5SGFQT2HSCOGGOTYEIBENAVCNFSM6AAAAAA7HBZGZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXHE4TGOBQHE . You are receiving this because you were mentioned.Message ID: @.***>
Hi and thank you for your contribution. (I searched to contact you, but couldn't find a way, so I'm asking here)
This repository looks very cool and wanted to try it out. Currently I own a Raspberry Pi Pico W (with WiFi/BLE support) [RP2040]. This hardware is supported by ESPHome: https://esphome.io/components/rp2040.html
I'm reaching out to you to ask if it would be possible to port your code to support the RP2040 Platform ? What would be required ? It would have to be in a different repository ? Or am I better off getting an esp32 chip ?
Regards.