mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-04 18:18:58 +00:00
41 lines
1.5 KiB
Markdown
41 lines
1.5 KiB
Markdown
---
|
|
layout: component
|
|
title: "MySensors sensor"
|
|
description: "Instructions how to integrate MySensors sensors into Home Assistant."
|
|
date: 2015-05-14 21:57
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
logo: mysensors.png
|
|
ha_category: Sensor
|
|
featured: true
|
|
---
|
|
|
|
|
|
The [MySensors](https://www.mysensors.org) project combines Arduino boards with NRF24L01 radio boards to build sensor networks. The mysensors platform support sensors connected to the MYSensors Gateway.
|
|
|
|
Integrate your Serial MYSensors Gateway by adding the following to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
sensor:
|
|
platform: mysensors
|
|
port: /dev/ttyACM0
|
|
```
|
|
|
|
Configuration variables:
|
|
|
|
- **port** (*Required*): The port where your board is connected to your Home Assistant host.
|
|
- **debug** (*Optional*): Enable or disable verbose debug logging.
|
|
- **persistence** (*Optional*): Enable or disable local persistence of sensor information. If this is disabled, then each sensor will need to send presentation messages after Home Assistant starts.
|
|
- **persistence_file** (*Optional*): Path to a file to save sensor information. The file extension determines the file type. Currently supported file types are 'pickle' and 'json'.
|
|
- **version** (*Optional*): Specifies the MySensors protocol version to use (ex. 1.4, 1.5).
|
|
|
|
If you are using an original Arduino the port will be named `ttyACM*`. The exact number can be determined with the command shown below.
|
|
|
|
```bash
|
|
ls /dev/ttyACM*
|
|
```
|
|
|