mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-04-07 08:03:40 +00:00
Add coverage for the state_class/statistics table optimization across both user and developer documentation. docs/user/docs/configuration.md: - Add 'Price Sensor Statistics' section explaining that only 3 sensors write to the HA statistics database (current_interval_price, current_interval_price_base, average_price_today) - Fix incorrect entity ID examples: remove non-existent _override suffix from recorder exclude globs, Developer Tools example, and seasonal automation example (actual IDs: number.*_best_price_flexibility etc.) docs/developer/docs/recorder-optimization.md: - Add 'Long-Term Statistics Optimization (state_class)' section covering the statistics/statistics_short_term table dimension, which is distinct from _unrecorded_attributes (state_attributes table) - Documents the MONETARY device_class constraint (MEASUREMENT blocked by hassfest, only TOTAL or None valid), the 3 sensors keeping TOTAL with rationale, the 23 sensors set to None, and ~88% write reduction - Includes comparison table: _unrecorded_attributes vs state_class Impact: Users now understand the built-in statistics optimization and have correct recorder exclude examples. Developers understand both optimization layers and their interaction. |
||
|---|---|---|
| .. | ||
| docs | ||
| src | ||
| static | ||
| versioned_docs | ||
| .gitignore | ||
| docusaurus.config.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| sidebars.ts | ||
| tsconfig.json | ||
| versions.json | ||
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.