JavaScript websocket client for Home Assistant
OTHER License
Bot releases are hidden (Show)
Published by bramkragten over 1 year ago
HassService
(#389) @bramkragtenPublished by balloob over 2 years ago
Use new subscribe_entities
command to power the entities collection when available (requires Home Assistant 2022.4+). Will fall back to listening for state_changed
events if not.
(#250) @balloob @bdraco
Published by balloob almost 3 years ago
The method Connection.setSocket
was an internal method that had no visibility specified. In #226 it has been changed to be private and renamed to _setSocket
. It used to reset the state but that is now moved into the reconnect logic.
Published by balloob over 4 years ago
Migrate from microbundle
to tsc
to create the module version and use rollup to create the UMD version. Our module build will now not be bundled up but just be ES2017 code using native async/await. It's up to consumers of this package to decide on how to deal with this.
Tests are also run against the transpiled build so we're testing against prod builds.
To make our module build browser compatible, we're now requiring all import specifiers to include .js
.
Dropped Object.assign
too in favor of ...
Published by balloob over 5 years ago
Published by balloob about 6 years ago
getUser
command exported (#49) @balloobThe following methods have been removed from the connection
object and can now be imported individually: conn.getStates()
, conn.getConfig()
, conn.getServices()
, conn.callService()
.
Replace calls with:
import { getServices } from 'home-assistant-js-websocket';
const services = await getServices(conn);
Published by balloob about 6 years ago
Published by balloob about 6 years ago
Published by balloob over 6 years ago
Breaking change:
Published by balloob over 6 years ago
(the 1.1.3 release should be ignored due to a package publish fail)
Published by balloob about 7 years ago
splitbyGroups
(@abmantis - #9)Published by balloob over 7 years ago
subscribeConfig
will now process service_removed
events (@pvizeli)Published by balloob over 7 years ago
Fixes a bug that when extracting the entities of a view, we would incorrectly ignore the hidden attribute on group entities.
Published by balloob over 7 years ago
First official release 🎉