diff --git a/atom.xml b/atom.xml index 8476853c24..9f78084970 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
Format the sensor values
-Add the following to your sensor
Here are the steps to make the Sense HAT sensor work with a virtual environment.
+ +Install SenseHAT package. Switch to the homeassistant_venv
directory and activate the virtual environment.
$ sudo su -s /bin/bash homeassistant
+$ source /srv/homeassistant/homeassistant_venv/bin/activate
+
+Install the sense-hat
module.
$ pip3 install sense-hat
+
+Please be patient, this will take a long while…
+ +Type exit
to quit out of the homeassistant_venv back to your pi
environment. As all of the following steps should be under the pi
user environment.
Install the RTIMU Python module:
+ +$ pip3 install rtimulib
+
+Add symlink to RTIMU in homeassistant_venv
directory. Create a symlink using the following command:
$ ln -s /usr/lib/python3/dist-packages/RTIMU.cpython-34m-arm-linux-gnueabihf.so /srv/homeassistant/homeassistant_venv/lib/python3.4/
+
+Add homeassistant
user to the input
and the i2c
groups.
$ sudo addgroup homeassistant input
+$ sudo addgroup homeassistant i2c
+
+Reboot Raspberry Pi to apply changes.
+ +$ sudo reboot
+
+To format the sensor values, add the following to your sensor
entry in your configuration.yaml
file.
# Example configuration.yaml entry
sensor:
@@ -143,8 +188,7 @@ Add the following to your sensor
Give the values friendly names & icons
-Add the following to your customize
Add the following to your customize
section to set friendly names & icons for the values.
# Example configuration.yaml entry
customize:
@@ -160,8 +204,7 @@ Add the following to your customize
Create a group
-Add the following to your groups
Create a group for your Sense HAT details by adding the following to your groups
section.
# Example configuration.yaml entry
group:
@@ -173,7 +216,9 @@ Add the following to your groups
- sensor.sensehat_pressure
Add the sense_hat group a group (Kitchen for example)
+# Example configuration.yaml entry
group:
kitchen:
@@ -181,57 +226,6 @@ Add the following to your groups
Here are the steps to make the SenseHAT sensor work successfully with the virtual enviroment versions.
- -# switch to the homeassistant_venv environment
-sudo su -s /bin/bash homeassistant
-source /srv/homeassistant/homeassistant_venv/bin/activate
-
-# install the sense-hat lib
-pip3 install sense-hat
-# be patient, this will take a long while
-
-pi
Type exit
to quit out of the homeassistant_venv back to your pi
environment.
As all of the following steps should be under the pi
user environment.
# Install RTIMU to pi user environment
-pip3 install rtimulib
-
-# Add symlink to RTIMU in _homeassistant_venv_
-# Create a symlink using the following command:
-ln -s /usr/lib/python3/dist-packages/RTIMU.cpython-34m-arm-linux-gnueabihf.so /srv/homeassistant/homeassistant_venv/lib/python3.4/
-
-# Add _homeassistant_ user to the _input_ and the _i2c_ groups
-sudo addgroup homeassistant input
-sudo addgroup homeassistant i2c
-
-# Reboot Raspberry Pi to apply changes
-sudo reboot
-
-Unfortunately enabling the SenseHAT Sensor component for a Virtual Environment install of Home-Assistant fails with errors. -(The Raspberry Pi All-In-One installer and HASSbian both run Home-Assistant in an virtual environment). -These issues have been discussed in the repository issue (#5093)[https://github.com/home-assistant/home-assistant/issues/5093)
- -This fix has been tested with a clean install of:
- - - -and
- - diff --git a/sitemap.xml b/sitemap.xml index d88810a640..01c44e731c 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2805,62 +2805,62 @@