Coder Social home page Coder Social logo

Cannot compile about esphome-ld2450 HOT 5 CLOSED

uncle-yura avatar uncle-yura commented on July 17, 2024
Cannot compile

from esphome-ld2450.

Comments (5)

uncle-yura avatar uncle-yura commented on July 17, 2024
  1. Write here the complete YAML file you use
  2. Try clearing the "build files" or creating a new configuration

from esphome-ld2450.

luisiam avatar luisiam commented on July 17, 2024

I tried creating new configuration and cleaning the build files but still having the same error.

This is the yaml

esphome:
  name: office
  friendly_name: Office

external_components:
  - source:
      type: git
      url: https://github.com/uncle-yura/esphome-ld2450
      ref: master
    components: [ ld2450 ]

esp32:
  board: wemos_d1_mini32
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: xxxxxxxxxxxxxxxxx

ota:
  password: xxxxxxxxxxxxx

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.10.59
    gateway: 192.168.10.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: Office Fallback Hotspot
    password: xxxxxxxxxxxxx

captive_portal:

# UART Bus
uart:
  id: uart_ld2450
  tx_pin: 
    number: 16
  rx_pin: 
    number: 17
  baud_rate: 256000
  parity: NONE
  stop_bits: 1
  # debug:
  #   direction: BOTH
  #   dummy_receiver: false

# LD2450
ld2450:
  uart_id: uart_ld2450
  update_interval: 1s
  invert_y: false
  invert_x: false

from esphome-ld2450.

uncle-yura avatar uncle-yura commented on July 17, 2024

Ok, I fixed the error. Try it now. The error was due to the fact that you have an empty configuration and no sensor is exported.

from esphome-ld2450.

luisiam avatar luisiam commented on July 17, 2024

OK, I have to manually login to the ESPHome docker and delete the "cached" file under /data/external_compoenets. Now it works. Thank you.

from esphome-ld2450.

uncle-yura avatar uncle-yura commented on July 17, 2024

You can use the refresh option to update the component

external_components:
  - source:
      type: git
      url: https://github.com/uncle-yura/esphome-ld2450
      ref: master
    refresh: 0s
    components: [ ld2450 ]

https://esphome.io/components/external_components.html#refresh

from esphome-ld2450.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.