Skip to content

Update to components/sensor.sensehat #2009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 14, 2017
Merged

Conversation

nodinosaur
Copy link
Contributor

@nodinosaur nodinosaur commented Feb 11, 2017

• Have provided more information on how to install the SenseHAT for Virtual Environment installs
• Have included directions on making the SenseHAT data prettier

Description:

Pull request in home-assistant (if applicable): home-assistant/home-assistant#

• Have provided more information on how to install the SenseHAT for Virtual Environment installs
• Have included directions on making the SenseHAT prettier
@@ -35,4 +35,112 @@ Configuration variables:
- 'humidity'
- 'pressure'

___
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use lines. Please remove it.

**Format the sensor values**
Add the following to your `sensors.yaml`

```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use yaml for the syntax.

- platform: template
sensors:
sensehat_temperature:
value_template: '{{ states.sensor.temperature.state | round(1) }}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid render of the template, use {% raw %}{{your_template}}{% endraw %}.

#### Customizing the Sense HAT data

**Format the sensor values**
Add the following to your `sensors.yaml`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splitting the configuration is an advanced topic. The configuration samples in the documentation should be easy to copy to the configuration.yaml file.

Here are the steps to make the _SenseHAT_ sensor work _successfully_ with the virtual enviroment versions.

#### Install SenseHAT package to _homeassistant_venv_
`sudo su -s /bin/bash homeassistant`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Collect all commands in one block. Should be marked as bash.

Copy link
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see how the formatting will look when the page is rendered. My guess is that there will be a lot of bold parts in the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants