esphome-web
v0.2.3
Published
An implemenation of the ESPhome web server API
Downloads
25
Maintainers
Readme
ESPHome Web API
An implementation of the ESPHome WebServer API. Primarily written for use in ESPHome Web App.
Installation
npm install esphome-web
Use
import ESPHomeWeb from 'esphome-web';
const esphome = new ESPHomeWeb(hostname);
esphome.addEventListener('entitydiscovered', (event) => {
console.log('New entity discovered', event.detail.entity);
});
esphome.connect();