├── .devcontainer ├── configuration.yaml └── devcontainer.json ├── .gitattributes ├── .github ├── copilot-instructions.md └── workflows │ ├── copilot-setup-steps.yml │ └── pull.yml ├── .gitignore ├── .ruff.toml ├── .vscode └── launch.json ├── CONTRIBUTING.md ├── DEVELOPMENT.md ├── LICENSE ├── README.md ├── configuration.yaml ├── custom_components ├── __init__.py └── energytariff │ ├── __init__.py │ ├── const.py │ ├── coordinator.py │ ├── manifest.json │ ├── sensor.py │ └── utils.py ├── doc ├── available_effect_this_hour.png ├── energy_estimate_this_hour.png ├── energy_used_this_hour.png ├── logo.png └── sensors.png ├── examples └── full.yaml ├── hacs.json ├── pytest.ini ├── rand.sh ├── requirements.txt ├── requirements_dev.txt ├── requirements_test.txt ├── scripts ├── develop ├── lint └── setup ├── sensor_example.png └── tests ├── __init__.py ├── conftest.py ├── const.py └── test_sensor.py /.devcontainer/configuration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.devcontainer/configuration.yaml -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/copilot-instructions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.github/copilot-instructions.md -------------------------------------------------------------------------------- /.github/workflows/copilot-setup-steps.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.github/workflows/copilot-setup-steps.yml -------------------------------------------------------------------------------- /.github/workflows/pull.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.github/workflows/pull.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.gitignore -------------------------------------------------------------------------------- /.ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.ruff.toml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /DEVELOPMENT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/DEVELOPMENT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/README.md -------------------------------------------------------------------------------- /configuration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/configuration.yaml -------------------------------------------------------------------------------- /custom_components/__init__.py: -------------------------------------------------------------------------------- 1 | """Dummy init so that pytest works.""" 2 | -------------------------------------------------------------------------------- /custom_components/energytariff/__init__.py: -------------------------------------------------------------------------------- 1 | """Dummy init so that pytest works.""" 2 | -------------------------------------------------------------------------------- /custom_components/energytariff/const.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/custom_components/energytariff/const.py -------------------------------------------------------------------------------- /custom_components/energytariff/coordinator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/custom_components/energytariff/coordinator.py -------------------------------------------------------------------------------- /custom_components/energytariff/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/custom_components/energytariff/manifest.json -------------------------------------------------------------------------------- /custom_components/energytariff/sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/custom_components/energytariff/sensor.py -------------------------------------------------------------------------------- /custom_components/energytariff/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/custom_components/energytariff/utils.py -------------------------------------------------------------------------------- /doc/available_effect_this_hour.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/doc/available_effect_this_hour.png -------------------------------------------------------------------------------- /doc/energy_estimate_this_hour.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/doc/energy_estimate_this_hour.png -------------------------------------------------------------------------------- /doc/energy_used_this_hour.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/doc/energy_used_this_hour.png -------------------------------------------------------------------------------- /doc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/doc/logo.png -------------------------------------------------------------------------------- /doc/sensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/doc/sensors.png -------------------------------------------------------------------------------- /examples/full.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/examples/full.yaml -------------------------------------------------------------------------------- /hacs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/hacs.json -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/pytest.ini -------------------------------------------------------------------------------- /rand.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/rand.sh -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | colorlog==6.9.0 2 | homeassistant==2024.11.0 3 | pip>=21.3.1 4 | ruff==0.8.6 -------------------------------------------------------------------------------- /requirements_dev.txt: -------------------------------------------------------------------------------- 1 | homeassistant 2 | reactivex==4.1.0 3 | -------------------------------------------------------------------------------- /requirements_test.txt: -------------------------------------------------------------------------------- 1 | -r requirements_dev.txt 2 | pytest-homeassistant-custom-component==0.13.205 3 | -------------------------------------------------------------------------------- /scripts/develop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/scripts/develop -------------------------------------------------------------------------------- /scripts/lint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/scripts/lint -------------------------------------------------------------------------------- /scripts/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/scripts/setup -------------------------------------------------------------------------------- /sensor_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/sensor_example.png -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Tests for grid-cap-watcher integration.""" 2 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/const.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/tests/const.py -------------------------------------------------------------------------------- /tests/test_sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/epaulsen/energytariff/HEAD/tests/test_sensor.py --------------------------------------------------------------------------------