Hardware

Deprecated since version 8.1.5.

Introduction

Warning

Make sure pilight is not running before editing your configuration or else all changes will be lost.

Since pilight 3.0 the feature to send and receive from multiple hardware modules has been introduced. This means you can control various different frequencies at the same time. However, only one module per frequency is supported. Each hardware module has its own syntax as listed below.

Disabled

1
2
3
4
5
{
  "hardware": {
    "none": { }
  }
}

433.92Mhz

Direct GPIO Access

1
2
3
4
5
6
7
8
{
  "hardware": {
    "433gpio": {
      "sender": 0,
      "receiver": 1
    }
  }
}

The default configuration to be used with the pilight PCB. When using custom wiring, refer to http://www.wiringx.org for the pin numbering of the various supported devices. If you want to disable the sender or receiver pin, set it to -1.

Deprecated since version 8.1.5.

Lirc Kernel Module

1
2
3
4
5
6
7
{
  "hardware": {
    "433lirc": {
      "socket": "/dev/lirc0"
    }
  }
}

Changed in version 8.0.

You must now specify which GPIO platform pilight is running on. Refer to the settings page for more information.

pilight USB Nano

1
2
3
4
5
6
7
{
  "hardware": {
    "433nano": {
      "comport": "/dev/ttyUSB0"
    }
  }
}

The comport value needs to correspond to a valid COM device on your platform. On Windows this value is generally formatted as COM1, on Linux as /dev/ttyUSB0, and on FreeBSD /dev/cuau0.

API

New in version nightly.

You must now specify which GPIO platform pilight is running on. Refer to the settings page for more information.

Shelly cloud devices

1
2
3
4
5
6
{
  "hardware": {
    "shelly": {
    }
  }
}

For using the Shelly hardware module, the MQTT functionality has to be enabled in both pilight and your Shelly devices. Make sure the ip points to your pilight instance, and the port to the configured pilight MQTT port. Make sure the rest of the options are as they are by default.

Tasmota devices

1
2
3
4
5
6
{
  "hardware": {
    "tasmota": {
    }
  }
}

For using the Tasmota hardware module, the MQTT functionality has to be enabled in both pilight and your Tasmota devices. Make sure the ip points to your pilight instance, and the port to the configured pilight MQTT port. Make sure the rest of the options are as they are by default.

MQTT devices

1
2
3
4
5
6
{
  "hardware": {
    "mqtt": {
    }
  }
}

The MQTT hardware module just broadcasts all MQTT messages that are received by pilight.