Skip to content
Home Assistant BridgeHome Assistant Bridge
Esc
↑↓navigate↵open⌘Jpreview
On this page

ha-bridge condition

Arguments and flags for every ha-bridge condition command.

Every ha-bridge condition command and its help, as --help prints it. Each also accepts the global flags.

ha-bridge condition

DESCRIPTION
  Check automation conditions

USAGE
  ha-bridge condition <subcommand> [flags]

FLAGS
  --socket string    Path to the bridge socket (default: $HA_BRIDGE_SOCK, then $XDG_RUNTIME_DIR/ha-bridge/ha-bridge.sock)

ha-bridge condition test

Alias: ha-bridge condition t

DESCRIPTION
  Print whether the conditions pass, as true or false. Needs an admin token

USAGE
  ha-bridge condition test [flags] <condition>

ARGUMENTS
  condition string    Condition config as YAML or JSON, such as '{condition: state, entity_id: sun.sun, state: above_horizon}'

FLAGS
  --socket string       Path to the bridge socket (default: $HA_BRIDGE_SOCK, then $XDG_RUNTIME_DIR/ha-bridge/ha-bridge.sock)
  --variables string    Variables as a JSON object, such as '{"room":"office"}'

ha-bridge condition watch

Alias: ha-bridge condition w

DESCRIPTION
  Print whether the conditions pass, then each change, as true or false

USAGE
  ha-bridge condition watch [flags] <condition>

ARGUMENTS
  condition string    Condition config as YAML or JSON, such as '{condition: state, entity_id: sun.sun, state: above_horizon}'

FLAGS
  --socket string    Path to the bridge socket (default: $HA_BRIDGE_SOCK, then $XDG_RUNTIME_DIR/ha-bridge/ha-bridge.sock)

Last updated on