Skip to content

Commit fb6766b

Browse files
committed
Update with new configuration layout
1 parent ad2947f commit fb6766b

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

source/_components/sensor.loop_energy.markdown

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The library used to get the data isn't officially supported and the only way to
2121

2222
To do this log into [Loop Energy](https://www.your-loop.com/). Once you're logged in you should be able see see your live readings on the webpage.
2323

24-
You can then open your browser's console window, how you do this varies by browser but in Chrome you click on `More Tools / Developer Tools' and click on the console window. You then type:-
24+
You can then open your browser's console window, how you do this varies by browser but in Chrome you click on `More Tools / Developer Tools' and click on the console window. You then type:
2525

2626
`Drupal.settings.navetas_realtime.`
2727

@@ -37,31 +37,32 @@ secret: "ELECTRICAL_SECRET"
3737
serial: "ELECTRICAL_SERIAL"
3838
```
3939
40-
The serial and secret tokens are the ones you need. If you just have an electricity monitor - then you won't see the gas keys.
40+
The serial and secret tokens are the ones you need. If you just have an electricity monitor then you won't see the gas keys.
4141
42-
Now you have the keys, add the following lines to your `configuration.yaml`, replacing the `SERIAL` and `SECRET` keys with the ones you found in the console:
42+
Now you have the keys, add the following lines to your `configuration.yaml`, replacing the `*_SERIAL` and `*_SECRET` keys with the ones you found in the console:
4343

4444
```yaml
4545
# Example configuration.yaml entry
4646
sensor:
47-
platform: loopenergy
48-
electricity_serial: ELECTRICAL_SERIAL
49-
electricity_secret: ELECTRICAL_SECRET
50-
gas_serial: GAS_SERIAL
51-
gas_secret: GAS_SECRET
52-
gas_type: metric
53-
gas_calorific: 39.11
54-
```
47+
- platform: loopenergy
48+
electricity:
49+
electricity_serial: 'ELECTRICAL_SERIAL'
50+
electricity_secret: 'ELECTRICAL_SECRET'
51+
gas:
52+
gas_serial: 'GAS_SERIAL'
53+
gas_secret: 'GAS_SECRET'
54+
gas_type: imperial
55+
gas_calorific: 38.2
5556
5657
Configuration variables:
5758
5859
- **electricity_serial** (*Required*): Serial number of your electricity sensor
5960
- **electricity_secret** (*Required*): Secret key for your electricity sensor
6061
- **gas_serial** (*Optional*): Serial number for your gas sensor.
6162
- **gas_secret** (*Optional*): Secret key for your gas sensor.
62-
- **gas_type** (*Optional*): Type of meter `imperial` or `metric`, defaults to metric.
63-
- **gas_calorific** (*Optional*): Calorific value of your gas supply (usually on your gas bill) - defaults to 39.11.
63+
- **gas_type** (*Optional*): Type of meter `imperial` or `metric`. Defaults to `metric`.
64+
- **gas_calorific** (*Optional*): Calorific value of your gas supply (usually on your gas bill). Defaults to 39.11.
6465

6566
The electricity readings are updated every 10 seconds and the gas readings every 15 minutes.
6667

67-
The gas readings are experimental and not all gas meters are properly supported - so if the data you see doesn't agree with the readings you see via loop energy please report an issue.
68+
The gas readings are experimental and not all gas meters are properly supported. So if the data you see doesn't agree with the readings you see via loop energy please report an issue.

0 commit comments

Comments
 (0)