Skip to content

Commit

Permalink
FIX: Illumination sensor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
puchupala authored and calee0219 committed Jul 9, 2021
1 parent 00deaeb commit e5fe5a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Yet another [Home Assistant](https://www.home-assistant.io) component for [Natur
- [x] Remember previous target temperatures when switching modes back and forth
- [x] Energy Sensor (Nature Remo E/E Lite)
- [x] Fetch current power usage
- [ ] Switch
- [x] Switch
- [x] Light
- [ ] TV
- [-] Others
- [x] Others
- [x] Fetch sensor data

Tested on Home Assistant Core 2021.3.3 on Docker
Expand All @@ -40,8 +40,10 @@ Tested on Home Assistant Core 2021.3.3 on Docker
   └── nature_remo
   ├── __init__.py
   ├── climate.py
   ├── light.py
   ├── manifest.json
   └── sensor.py
   ├── sensor.py
   └── switch.py
```

### Install via git submodule
Expand All @@ -54,11 +56,14 @@ git submodule add https://github.com/yutoyazaki/hass-nature-remo.git {path_to_cu

## Configuration

1. Go to https://home.nature.global and sign in/up
1. Generate access token
1. Add following codes to your `configuration.yaml` file

```yaml
nature_remo:
access_token: YOUR_ACCESS_TOKEN
```
1. Go to https://home.nature.global and sign in/up.
2. Generate access token.
3. Add following codes to your `configuration.yaml` file.
```yaml
nature_remo:
access_token: !secret nature_remo_token
```
4. Add the token you've generated in `secrets.yaml` file.
```yaml
nature_remo_token: YOUR_ACCESS_TOKEN
```
2 changes: 1 addition & 1 deletion sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
entities.append(NatureRemoTemperatureSensor(coordinator, device))
elif sensor == "hu":
entities.append(NatureRemoHumiditySensor(coordinator, device))
elif sensor == "li":
elif sensor == "il":
entities.append(NatureRemoIlluminanceSensor(coordinator, device))
async_add_entities(entities)

Expand Down

0 comments on commit e5fe5a8

Please sign in to comment.