package
Version:
v0.0.0-...-db03bfd
Opens a new window with list of versions in this module.
Published: Aug 15, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package rules defines the generic rules engine.
Command is an MQTT message to send to take action.
Most commands shall respect the Homie convention.
https://github.com/marvinroger/homie
func (*Command) ToMsg ¶
ToMsg converts the command to a MQTT Message.
Validate ensures the command is valid.
Rule defines a signal that triggers a command.
Default returns default rules that can be set on a fresh instance.
Signal defines what signal triggers this rule.
TODO(maruel): Define the language.
Eval evaluates if a signal is a trigger for this rule.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.