From 709e1aab203e6777f101a2141292c70228be6d3a Mon Sep 17 00:00:00 2001 From: Tuttl3 Date: Mon, 25 Nov 2024 16:01:38 -0500 Subject: [PATCH] 0.3 --- .github/workflows/hacs.yml | 21 +++++++++++++++++++ .hacs.json | 7 +++++++ .translations/en.json | 7 +++++++ HA_Filter_reminder.xcodeproj/project.pbxproj | 14 +++++++++++++ .../furnace_filter_reminder/manifest.json | 7 ++++--- .../furnace_filter_reminder/strings.json | 20 ++++++++++++++++++ 6 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/hacs.yml create mode 100644 .hacs.json create mode 100644 .translations/en.json create mode 100644 custom_components/furnace_filter_reminder/strings.json diff --git a/.github/workflows/hacs.yml b/.github/workflows/hacs.yml new file mode 100644 index 0000000..d8577d6 --- /dev/null +++ b/.github/workflows/hacs.yml @@ -0,0 +1,21 @@ +name: "Validate HACS" +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Validate HACS + run: | + mkdir temp && cd temp + wget -q https://raw.githubusercontent.com/hacs/integration/main/scripts/hacs_validator.sh + bash hacs_validator.sh ../custom_components/furnace_filter_reminder diff --git a/.hacs.json b/.hacs.json new file mode 100644 index 0000000..b7f7c0c --- /dev/null +++ b/.hacs.json @@ -0,0 +1,7 @@ +{ + "name": "Furnace Filter Reminder", + "hide_default_branch": false, + "domains": ["furnace_filter_reminder"], + "country": ["US", "CA"], + "iot_class": "local_polling" +} diff --git a/.translations/en.json b/.translations/en.json new file mode 100644 index 0000000..edc7903 --- /dev/null +++ b/.translations/en.json @@ -0,0 +1,7 @@ + +{ + "config": { + "title": "Furnace Filter Reminder Configuration", + "description": "Track your furnace runtime and receive reminders." + } +} diff --git a/HA_Filter_reminder.xcodeproj/project.pbxproj b/HA_Filter_reminder.xcodeproj/project.pbxproj index e974ec7..107327b 100644 --- a/HA_Filter_reminder.xcodeproj/project.pbxproj +++ b/HA_Filter_reminder.xcodeproj/project.pbxproj @@ -8,10 +8,21 @@ /* Begin PBXFileReference section */ 553336F62CF51654007DDC01 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; + 553337022CF51BAE007DDC01 /* .hacs.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = .hacs.json; sourceTree = ""; }; 55ED8C752CF50F7B0067E1CF /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ + 553337002CF51AF3007DDC01 /* .translations */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = .translations; + sourceTree = ""; + }; + 553337032CF51BDD007DDC01 /* .github */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = .github; + sourceTree = ""; + }; 55ED8C6C2CF4CA190067E1CF /* custom_components */ = { isa = PBXFileSystemSynchronizedRootGroup; path = custom_components; @@ -23,9 +34,12 @@ 55ED8C632CF4C5F10067E1CF = { isa = PBXGroup; children = ( + 553337022CF51BAE007DDC01 /* .hacs.json */, 553336F62CF51654007DDC01 /* LICENSE */, + 553337032CF51BDD007DDC01 /* .github */, 55ED8C6C2CF4CA190067E1CF /* custom_components */, 55ED8C752CF50F7B0067E1CF /* README.md */, + 553337002CF51AF3007DDC01 /* .translations */, ); sourceTree = ""; }; diff --git a/custom_components/furnace_filter_reminder/manifest.json b/custom_components/furnace_filter_reminder/manifest.json index ba6e0d3..f73b0ad 100644 --- a/custom_components/furnace_filter_reminder/manifest.json +++ b/custom_components/furnace_filter_reminder/manifest.json @@ -2,9 +2,10 @@ "domain": "furnace_filter_reminder", "name": "Furnace Filter Reminder", "version": "1.0.0", - "documentation": " ", + "documentation": "https://github.com/Tuttl3/furnace_filter_reminder", "dependencies": [], "codeowners": ["@Tuttl3"], - "requirements": [] - "config_flow": true + "requirements": [], + "config_flow": true, + "iot_class": "local_polling" } diff --git a/custom_components/furnace_filter_reminder/strings.json b/custom_components/furnace_filter_reminder/strings.json new file mode 100644 index 0000000..83f04bd --- /dev/null +++ b/custom_components/furnace_filter_reminder/strings.json @@ -0,0 +1,20 @@ + +{ + "title": "Furnace Filter Reminder", + "step": { + "user": { + "title": "Configure Furnace Filter Reminder", + "description": "Set up runtime tracking for your furnace filter.", + "data": { + "name": "Name of the Reminder", + "hours": "Hours until reminder" + } + } + }, + "options": { + "init": { + "title": "Adjust Settings", + "description": "Modify runtime threshold or other settings." + } + } +}