Skip to content

Commit

Permalink
Fix code in docs showing the !extend way (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas authored Jul 3, 2024
1 parent 7f81bb3 commit d332154
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/docs/faq/faq_nr2.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ sensor:
# Update the sensor with an average every 10th second. See
- throttle_average: 10s
- filter_out: NaN
- id: !extend sensor_total_daily_energy
filters:
# Update the sensor once per 0.1 kWh consumed, or every 5th minute, whichever happens sooner.
- delta: 0.01
- heartbeat: 300s
total:
filters:
# Update the sensor once per 0.1 kWh consumed, or every 5th minute, whichever happens sooner.
- delta: 0.01
- heartbeat: 300s
```
After applying the filters, only 396 state changes will be produced per hour. You can read more about making YAML adjustments on the [customizing the firmware](/docs/advanced/firmware_customization.mdx) page.
Expand Down
5 changes: 3 additions & 2 deletions docs/docs/faq/faq_nr7.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ Try to use the `left` [calculation method][method] instead of the default (`righ

```yaml title="your_glow_config.yaml"
sensor:
- id: !extend sensor_total_daily_energy
method: left
- id: !extend sensor_energy_pulse_meter
total:
method: left
```
## Related topics
Expand Down

0 comments on commit d332154

Please sign in to comment.