mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-02 09:17:35 +00:00

* e.g. to e.g., and proper case for Home Assistant * Instructions how to -> Instructions on how to
53 lines
1.4 KiB
Markdown
53 lines
1.4 KiB
Markdown
---
|
|
layout: page
|
|
title: "TEMPer Sensor"
|
|
description: "Instructions on how to integrate TEMPer sensors into Home Assistant."
|
|
date: 2015-08-06 19:00
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
ha_category: Sensor
|
|
ha_iot_class: "Local Push"
|
|
ha_release: pre 0.7
|
|
---
|
|
|
|
This `temper` sensor platform allows you to get the current temperature from a TEMPer device.
|
|
|
|
To use your TEMPer sensor in your installation, add the following to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
sensor:
|
|
- platform: temper
|
|
```
|
|
|
|
{% configuration %}
|
|
offset:
|
|
description: The offset to fix reported vales.
|
|
required: false
|
|
type: int
|
|
default: o
|
|
scale:
|
|
description: The scale for the sensor.
|
|
required: false
|
|
type: int
|
|
default: 1
|
|
name:
|
|
description: The name to use when displaying this switch.
|
|
required: false
|
|
type: string
|
|
default: myStrom Switch
|
|
{% endconfiguration %}
|
|
|
|
Since some of these sensors consistently show higher temperatures the scale and offset values can be used to fine-tune your sensor.
|
|
The calculation follows the formula `scale * sensor value + offset`.
|
|
|
|
The TEMPer sensors can only be accessed as root by default. To fix the USB permissions on your system create the file `/etc/udev/rules.d/99-tempsensor.rules` and add the following line to it:
|
|
|
|
```text
|
|
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="7401", MODE="666"
|
|
```
|
|
|
|
After that re-plug the device and restart Home Assistant.
|