home-assistant-js-websocket

JavaScript websocket client for Home Assistant

OTHER License

Downloads
14.7K
Stars
271
Committers
24

Bot releases are hidden (Show)

home-assistant-js-websocket - 8.1.0

Published by bramkragten over 1 year ago

What's Changed

  • Clear state on teardown, make grace optional (#377) @bramkragten
  • Add response to HassService (#389) @bramkragten

Dependencies

  • Bump rollup from 3.20.4 to 3.25.3 (#388) @dependabot
  • Bump actions/checkout from 3.5.2 to 3.5.3 (#387) @dependabot
  • Bump lint-staged from 13.2.1 to 13.2.2 (#375) @dependabot
  • Bump prettier from 2.8.7 to 2.8.8 (#373) @dependabot
  • Bump rollup from 3.20.2 to 3.20.4 (#370) @dependabot
  • Bump actions/checkout from 3.5.0 to 3.5.2 (#371) @dependabot
  • Bump lint-staged from 13.2.0 to 13.2.1 (#369) @dependabot
  • Bump rollup from 3.10.1 to 3.20.2 (#363) @dependabot
  • Bump prettier from 2.8.5 to 2.8.7 (#364) @dependabot
  • Bump actions/checkout from 3.4.0 to 3.5.0 (#365) @dependabot
  • Bump lint-staged from 13.1.0 to 13.2.0 (#357) @dependabot
  • Bump prettier from 2.8.4 to 2.8.5 (#361) @dependabot
  • Bump actions/checkout from 3.3.0 to 3.4.0 (#362) @dependabot
  • Bump prettier from 2.8.3 to 2.8.4 (#350) @dependabot
  • Bump typescript from 4.9.4 to 4.9.5 (#347) @dependabot
  • Bump rollup from 3.10.0 to 3.10.1 (#346) @dependabot
  • Bump rollup from 3.7.5 to 3.10.0 (#344) @dependabot
  • Bump actions/checkout from 3.2.0 to 3.3.0 (#341) @dependabot
  • Bump actions/setup-node from 3.5.1 to 3.6.0 (#342) @dependabot
  • Bump prettier from 2.8.1 to 2.8.3 (#345) @dependabot
  • Bump rollup from 3.7.3 to 3.7.5 (#338) @dependabot
  • Bump typescript from 4.9.3 to 4.9.4 (#333) @dependabot
  • Bump rollup from 3.6.0 to 3.7.3 (#335) @dependabot
  • Bump prettier from 2.8.0 to 2.8.1 (#336) @dependabot
  • Bump actions/checkout from 3.1.0 to 3.2.0 (#337) @dependabot
  • Bump rollup from 3.5.0 to 3.6.0 (#331) @dependabot
  • Bump lint-staged from 13.0.4 to 13.1.0 (#332) @dependabot
home-assistant-js-websocket - 6.1.0

Published by balloob over 2 years ago

What's Changed

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

  • Bump lint-staged from 12.3.4 to 12.3.5 (#247) @dependabot
  • Bump rollup from 2.68.0 to 2.70.0 (#248) @dependabot
  • Bump typescript from 4.5.5 to 4.6.2 (#249) @dependabot
  • Bump rollup from 2.67.3 to 2.68.0 (#246) @dependabot
  • Bump rollup from 2.67.2 to 2.67.3 (#245) @dependabot
  • Bump rollup from 2.67.1 to 2.67.2 (#243) @dependabot
  • Bump lint-staged from 12.3.3 to 12.3.4 (#244) @dependabot
  • Bump lint-staged from 12.3.2 to 12.3.3 (#241) @dependabot
  • Bump rollup from 2.66.1 to 2.67.1 (#242) @dependabot
  • Bump lint-staged from 12.3.1 to 12.3.2 (#240) @dependabot
  • Bump rollup from 2.66.0 to 2.66.1 (#239) @dependabot
  • Bump typescript from 4.5.4 to 4.5.5 (#235) @dependabot
  • Bump @types/mocha from 9.0.0 to 9.1.0 (#236) @dependabot
  • Bump rollup from 2.64.0 to 2.66.0 (#237) @dependabot
  • Bump lint-staged from 12.1.7 to 12.3.1 (#238) @dependabot
  • Bump rollup from 2.63.0 to 2.64.0 (#234) @dependabot
  • Bump lint-staged from 12.1.5 to 12.1.7 (#232) @dependabot
  • Bump rollup from 2.62.0 to 2.63.0 (#233) @dependabot
  • Bump lint-staged from 12.1.4 to 12.1.5 (#231) @dependabot
home-assistant-js-websocket - 6.0.0

Published by balloob almost 3 years ago

What's Changed

  • Handle reconnect race (#226) @balloob

Breaking changes

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.

  • Bump lint-staged from 12.1.2 to 12.1.3 (#225) @dependabot
home-assistant-js-websocket - 5.0.0

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 ...

home-assistant-js-websocket - 4.1.2

Published by balloob over 5 years ago

  • When subscribing to a collection that already has data, delay calling the initial callback to the next cycle of the event loop. This allows the caller to finish setting up for accepting data. 8cb8423387dc571efde5a30f4ac405cd45c3c518 - @balloob
home-assistant-js-websocket - 3.0.0-rc5

Published by balloob about 6 years ago

  • Export more types (#48) @balloob
  • Extract commands + new getUser command exported (#49) @balloob

Breaking change

The 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);
home-assistant-js-websocket - 3.0.0-rc4

Published by balloob about 6 years ago

What's Changed

  • Strip trailing slash from hassUrl (#39) @balloob
  • Don't lose refresh token when refreshing access token (#40) @balloob
  • Handle refreshing when server unavailable (#41) @balloob
  • Make clientID and redirectUri configurable (#44) @balloob
  • Renames (#47) @balloob
  • Remove extra 10s check on token expiration (#46) @balloob
home-assistant-js-websocket - 2.1.0

Published by balloob about 6 years ago

  • Check access token expires before we use (#21 - @awarecan)
  • Breaking Change Remove getting panels (#19 - @balloob)
home-assistant-js-websocket - 2.0.1

Published by balloob over 6 years ago

Mark package as side effect free to help with Webpack treeshaking (docs)

home-assistant-js-websocket - 2.0.0

Published by balloob over 6 years ago

Breaking change:

  • All group and view extraction helpers have been removed from this package (#16)
home-assistant-js-websocket - 1.1.4

Published by balloob over 6 years ago

  • Don't spam the console with errors when trying to reconnect (@andrey-git - #13)

(the 1.1.3 release should be ignored due to a package publish fail)

home-assistant-js-websocket - 1.1.2

Published by balloob about 7 years ago

  • Remove sorting groups from splitbyGroups (@abmantis - #9)
home-assistant-js-websocket - 1.1.0

Published by balloob over 7 years ago

  • subscribeConfig will now process service_removed events (@pvizeli)
home-assistant-js-websocket - 1.0.1

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.

home-assistant-js-websocket - 1.0

Published by balloob over 7 years ago

First official release 🎉