Skip to content

Commit e5354e2

Browse files
committed
Documentation fixes and additions.
1 parent 3a9aa30 commit e5354e2

File tree

3 files changed

+44
-13
lines changed

3 files changed

+44
-13
lines changed

docs/source/data.rst

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,54 @@ Data Available in ``homeassistant-powersensor``
22
================================================
33
The data provided in the home assistant integration should be reflective of exactly the data available
44
in the devices screen of the powersensor app with the exception of the top level view provided by the virtual
5-
household
5+
household.
66

77
Virtual Household
88
------------------
99
Built on top of the sensors, the API provided by `powersensor_local <https://github.com/DiUS/python-powersensor_local>`_
10-
provides a ``virtual household``. This view is captures the key data most users want to capture at the household level
10+
provides a ``virtual household``. This view is captures the key data most users want to capture at the household level.
1111
This includes
1212

1313
* Energy imported from the grid
1414
* Total home energy usage
1515
* Energy exported to the grid (from solar)
1616
* Total solar production
1717

18-
As well as the corresponding instantaneous power consumption/production.
18+
as well as the corresponding instantaneous power consumption/production.
19+
20+
.. note::
21+
22+
Powersensor deals with *net* readings, meaning that the energy import and
23+
export direction is determined by the sign of value. Home Assistant however
24+
requires *gross* readings, where values are always positive and divided
25+
into separate import and export values instead.
26+
27+
The Virtual Household view performs the necessary calculations to match
28+
Home Assistant's needs in order to easily use Powersensor data in its
29+
Energy dashboard. However, you will find that the Total Energy shown for
30+
the sensor(s) generally do not match what's shown under the household
31+
view. This is expected and is a consequence of going from net to gross.
32+
The energy readings will reset to zero whenever Home Assistant is restarted,
33+
but HomeAssistant tracks the overall total correctly.
34+
35+
The household readings update as sensor data becomes available.
1936

2037
Plugs
2138
-----
2239
Each plug exposes 6 entities reflecting the different measurements made by the plug these are
2340

24-
* Active Current
25-
* Apparent Current
2641
* Power
27-
* Reactive Current
2842
* Total Energy Consumption
43+
* Active Current
44+
* Reactive Current
45+
* Apparent Current
2946
* Voltage
3047

31-
This is the full extend of data available via the plug api, but much of this data is redundant and future
32-
releases intend to make these optional selections when the integration is configured
48+
Of these only the power and total energy are commonly of interest, and future
49+
releases intend to make the others optional inclusions when the integration
50+
is configured.
3351

52+
The plug readings typically update every second.
3453

3554
Sensors
3655
-------
@@ -41,4 +60,14 @@ Each sensor exposes
4160
* Power
4261
* Total Energy
4362

44-
Any of these entities can be used in automation workflows
63+
The sensor readings typically update every 30 seconds, but are dependent on the
64+
sensor being within range of a plug to act as a relay for it. If sensors aren't
65+
showing up as expected, use the mobile app to check which plug it's trying
66+
to relay though, and the signal strength. If necessary, relocate a plug to
67+
somewhere closer to the sensor to improve the signal strength.
68+
69+
Automations
70+
-----------
71+
72+
Any of the plug, sensor or virtual household entities can be used in
73+
automation workflows.

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ integration for `Powersensor <https://www.powersensor.com.au/>`_ devices,
55
and is primarily a wrapper around the `powersensor_local <https://dius.github.io/python-powersensor_local/>`_ API
66
allowing access to for data from Powersensor devices in Home Assistant.
77

8-
This integration enables users to view their local powersensor data within home assistant as well as exposing
8+
This integration enables users to view their local powersensor data within Home Assistant as well as exposing
99
various sensors that can be used for home automation and interfaces with other smart devices.
1010

1111
.. toctree::

docs/source/installation.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@ Before installing this integration, ensure you have:
1212
* Home Assistant 2024.1.0 or newer
1313
* Access to your Home Assistant configuration directory
1414
* `powersensor_local <https://github.com/DiUS/python-powersensor_local>`_ 2.0.0 or later installed in your Home Assistant instance's python environment
15-
* Firmware updated to version 8107 or later on powersensor hardware (plugs and sensors)
15+
* Firmware updated to version 8129 or later on powersensor hardware (plugs and sensors)
1616

1717
From Source
1818
------------
19-
Clone or download this repo e.g
19+
Clone or download this repo e.g.
20+
2021
.. code-block:: bash
2122
2223
git clone https://github.com/DiUS/homeassistant-powersensor.git
2324
2425
Copy or symlink the directory ``custom_components/powersensor`` to your Home Assistant configuration directory.
2526
When launching homeassistant, e.g.
27+
2628
.. code-block:: bash
2729
2830
hass --config ./config
2931
3032
Home assistant should automatically discover powersensor devices on the same network.
3133
Follow the links for Settings/Devices&Services. At the top you should be prompted add ``powersensor`` to your
32-
homeassistant instance.
34+
homeassistant instance.

0 commit comments

Comments
 (0)