0.9.1 • Published 4 years ago

@ha4us/script.adapter v0.9.1

Weekly downloads
17
License
MIT
Repository
-
Last release
4 years ago

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

0.9.1

4 years ago

0.9.0

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago