-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Conversation
• 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' | |||
|
|||
___ |
There was a problem hiding this comment.
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` | ||
|
||
``` |
There was a problem hiding this comment.
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) }}' |
There was a problem hiding this comment.
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` |
There was a problem hiding this comment.
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` |
There was a problem hiding this comment.
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
.
There was a problem hiding this 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.
• 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#