You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ See [HACS](https://github.com/custom-components/hacs).
28
28
Alternatively, place a copy of:
29
29
30
30
[`__init__.py`](custom_components/composite/__init__.py) at `<config>/custom_components/composite/__init__.py`
31
+
[`const.py`](custom_components/composite/const.py) at `<config>/custom_components/composite/const.py`
31
32
[`device_tracker.py`](custom_components/composite/device_tracker.py) at `<config>/custom_components/composite/device_tracker.py`
32
33
[`manifest.json`](custom_components/composite/manifest.json) at `<config>/custom_components/composite/manifest.json`
33
34
@@ -37,13 +38,21 @@ where `<config>` is your Home Assistant configuration directory.
37
38
38
39
### numpy on Raspberry Pi
39
40
40
-
To determine time zone from GPS coordinates (see `time_as` configuration variable below) the package [timezonefinderL](https://pypi.org/project/timezonefinderL/) is used. That package requires the package [numpy](https://pypi.org/project/numpy/). These will both be installed automatically by HA. Note, however, that numpy on Pi _usually_ requires libatlas to be installed. (See [this web page](https://www.raspberrypi.org/forums/viewtopic.php?t=207058) for more details.) It can be installed using this command:
41
+
To determine time zone from GPS coordinates (see `time_as` configuration variable below) the package [timezonefinderL](https://pypi.org/project/timezonefinderL/) (by default) is used. That package requires the package [numpy](https://pypi.org/project/numpy/). These will both be installed automatically by HA. Note, however, that numpy on Pi _usually_ requires libatlas to be installed. (See [this web page](https://www.raspberrypi.org/forums/viewtopic.php?t=207058) for more details.) It can be installed using this command:
41
42
```
42
43
sudo apt install libatlas3-base
43
44
```
44
45
>Note: This is the same step that would be required if using a standard HA component that uses numpy (such as the [Trend Binary Sensor](https://www.home-assistant.io/components/binary_sensor.trend/)), and is only required if you use `device_or_utc` or `device_or_local` for `time_as`.
45
46
46
47
## Configuration variables
48
+
### `composite` integration
49
+
50
+
- **tz_finder** (*Optional*): Specifies which `timezonefinder` package, and possibly version, to install. Must be formatted as required by `pip`. Default is `timezonefinderL==4.0.2`. Other common values:
51
+
52
+
`timezonefinderL==2.0.1`
53
+
`timezonefinder`
54
+
`timezonefinder==4.2.0`
55
+
### `device_tracker` platform
47
56
48
57
- **entity_id**: Entity IDs of watched device tracker devices. Can be a single entity ID, a list of entity IDs, or a string containing multiple entity IDs separated by commas.
49
58
- **name**: Object ID (i.e., part of entity ID after the dot) of composite device. For example, `NAME` would result in an entity ID of `device_tracker.NAME`.
@@ -84,6 +93,20 @@ source_type | Source of current location information: `binary_sensor`, `bluetoot
84
93
time_zone | The name of the time zone in which the device is located, or `unknown` if it cannot be determined. Only exists if `device_or_utc` or `device_or_local` is chosen for `time_as`.
85
94
86
95
## Examples
96
+
### Example Full Config
97
+
```yaml
98
+
composite:
99
+
tz_finder: timezonefinderL==2.0.1
100
+
device_tracker:
101
+
- platform: composite
102
+
name: me
103
+
time_as: device_or_local
104
+
require_movement: true
105
+
entity_id:
106
+
- device_tracker.platform1_me
107
+
- device_tracker.platform2_me
108
+
```
109
+
87
110
### Time zone examples
88
111
89
112
This example assumes `time_as` is set to `device_or_utc` or `device_or_local`. It determines the difference between the time zone in which the device is located and the `time_zone` in HA's configuration. A positive value means the device's time zone is ahead of (or later than, or east of) the local time zone.
0 commit comments