Network status LED

Control the device's network status LED.

  • Trigger data - The model data that will trigger (start) this automation.

Commands

  • Start - Start this automation.
  • Stop - Stop this automation.

Properties

Enable

Enable this automation.

  • Data type: boolean
  • Default: true
  • Configuration

CLI: (cli)> config network cellular network led enable

Label

The label used to describe and locate this automation.

  • Data type: string
  • Default: Network status LED
  • Configuration
  • Optional

CLI: (cli)> config network cellular network led label

Running

The run status of this automation.

OptionLabel
trueRunning
falseNot running
  • Data type: boolean
  • Status

CLI: (cli)> show network cellular network led running

Error

The error associated with the recent failed run.

  • Data type: string
  • Status

CLI: (cli)> show network cellular network led error

Script

The javascript automation source.

  • Data type: string
  • Default: `const platform = await import('@dryjs/platform');

if (data.active === false) return;

const connected = data.connection && Object.values(data.connection || {}).some(c => c.connected); let colour;

if (data.sim[data.sim.active]?.ready) { colour = { '5G': 'purple', '4G': 'blue', '3G': 'green', }[data.network.generation] || 'white'; } else { colour = 'red'; }

await platform.setLED(data.plugin ? 'plugin' : 'cell', colour, !connected); `

  • Configuration
  • Required

CLI: (cli)> config network cellular network led script

Run schedule

Run the automation action on a schedule.

  • Data type: string
  • Configuration
  • Optional

CLI: (cli)> config network cellular network led schedule

Run on start

Run the automation action immediately after boot up or the automation is added.

  • Data type: boolean
  • Default: true
  • Configuration

CLI: (cli)> config network cellular network led run-on-start