tim-hellhake / esphome-adapter Goto Github PK
View Code? Open in Web Editor NEWLicense: Mozilla Public License 2.0
License: Mozilla Public License 2.0
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 ()
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.
The discovery fails if the first address is an ipv6 address:
Error: getaddrinfo ENOTFOUND 2a01 2a01:80
as discussed on IRC, I have added the ESPHome addon, flashed one of my sonoffs with ESPHome using this config and WTG log output at:
https://gist.github.com/BrianGilbert/5b378b75ec46380403e583f00d47d48a
I configured the user and pass in the addon config of WT Gateway.
Then I tried to add a device, initially I did get one device found when scanning, but I was unable to add it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.