Coder Social home page Coder Social logo

esphome-adapter's People

Contributors

tim-hellhake avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esphome-adapter's Issues

Error: no auth mechanism defined

Hi,
I was trying out Mozilla webthings, and was pleasantly surprised that it found my Xiaomi humidity / temperature sensors connected via ESP32 to home assistant.
Not sure what changed, but I can't get any data from them anymore. I've tried removing them and rediscovering, but they are no longer detected.
I see this in the logs, any thoughts how this can be fixed?
Kind regards,
geoff.

2020-12-07 03:48:00.191 INFO : esphome-adapter: Discovered api service at downstairs_temp.local
2020-12-07 03:48:00.194 INFO : esphome-adapter: Probing 10.2.8.123:80
2020-12-07 03:48:00.196 INFO : esphome-adapter: Unhandled Rejection
2020-12-07 03:48:00.198 ERROR : esphome-adapter: Error: no auth mechanism defined
2020-12-07 03:48:00.199 ERROR : esphome-adapter: at Auth.onRequest (/home/pi/.webthings/addons/esphome-adapter/node_modules/request/lib/auth.js:132:32)
2020-12-07 03:48:00.200 ERROR : esphome-adapter: at Request.auth (/home/pi/.webthings/addons/esphome-adapter/node_modules/request/request.js:1347:14)
2020-12-07 03:48:00.201 ERROR : esphome-adapter: at Request.init (/home/pi/.webthings/addons/esphome-adapter/node_modules/request/request.js:378:10)
2020-12-07 03:48:00.202 ERROR : esphome-adapter: at new Request (/home/pi/.webthings/addons/esphome-adapter/node_modules/request/request.js:127:8)
2020-12-07 03:48:00.203 ERROR : esphome-adapter: at request (/home/pi/.webthings/addons/esphome-adapter/node_modules/request/index.js:53:10)
2020-12-07 03:48:00.205 ERROR : esphome-adapter: at Promise (/home/pi/.webthings/addons/esphome-adapter/lib/fetch.js:11:9)
2020-12-07 03:48:00.206 ERROR : esphome-adapter: at new Promise ()
2020-12-07 03:48:00.207 ERROR : esphome-adapter: at Object.fetch (/home/pi/.webthings/addons/esphome-adapter/lib/fetch.js:10:12)
2020-12-07 03:48:00.208 ERROR : esphome-adapter: at ESPHomeAdapter. (/home/pi/.webthings/addons/esphome-adapter/lib/esphome-adapter.js:62:42)
2020-12-07 03:48:00.210 ERROR : esphome-adapter: at Generator.next ()

Discover device although api is enabled

If the api is enabled on the firmware the http endpoint is not advertised.
Without the http advertisement it's not clear which port to use.
Add a fallback port to the config to allow the adapter to still connect to the device.

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.