This package has been deprecated

Author message:

not maintained anymore

ha4us-scripts
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

ha4us-scripts

ha4us-scripts is a Node.js based script runner for use in ha4us based smart home environments.

In the current version it is basically a copy of mqtt-scripts developed by Sebastian Raff aka hobbyquaker.

Needed methods in scripts

states

  • set Setting a datapoint (emits mqtt XYZ/set/....)
  • get observes the last status (options: timeout=1s, active:false - emits a get)
  • getCached gets the last value from cache (sync, since it's only does a internal lookup)
  • status - emits a status of current scriptDomain topic (optionally retained)

scheduler

Use cases

  • turn on in the morning:
    at ( 'sunset','06:30').subscribe(onNext(idx, array of params_)); cron('* * * * *')

License

MIT ©2017 Ulf Steinberg
MIT ©2015 Sebastian Raff

Readme

Keywords

Package Sidebar

Install

npm i ha4us-scripts

Weekly Downloads

0

Version

0.5.1

License

MIT

Unpacked Size

3.38 MB

Total Files

47

Last publish

Collaborators

  • ulfalfa