Skip to content

Commit

Permalink
v1.0.0 (#25)
Browse files Browse the repository at this point in the history
## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2020-11-13)

### Changes

- Offical release of homebridge-Switchbot, which combines both BLE and OpenAPI into 1 plugin.
- Adds Light Sensors to Curtains
    - with iOS 15.1 you can set automations on light sensors.
- Adds Motion Sensor to Contact Sensors
- Adds Support Color Bulbs
  • Loading branch information
donavanbecker authored Nov 13, 2021
1 parent 5a8d6ab commit 7f07c1e
Show file tree
Hide file tree
Showing 39 changed files with 5,203 additions and 6,267 deletions.
48 changes: 0 additions & 48 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug-Report
description: Report a Bug to help us improve
title: "Bug:"
title: "Bug: "
labels: [bug]
assignees: 'donavanbecker'
body:
Expand Down
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: SwitchBot (Official website)
url: https://www.switch-bot.com/
about: The Offical SwitchBot Website.
url: https://www.switch-bot.com/
about: The Offical SwitchBot Website.
- name: Facebook @SwitchBotRobot
url: https://www.facebook.com/SwitchBotRobot/
about: The Offical SwitchBot Facebook Page.
url: https://www.facebook.com/SwitchBotRobot/
about: The Offical SwitchBot Facebook Page.
- name: Twitter @SwitchBot
url: https://twitter.com/switchbot
about: The Offical SwitchBot Twitter.
url: https://twitter.com/switchbot
about: The Offical SwitchBot Twitter.
- name: Homebridge Discord Channel for SwitchBot
url: https://discord.gg/5wYTbwP4ha
about: Feel free to ask questions here.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ body:
- type: input
attributes:
label: Additional context
placeholder: Add any other context or screenshots about the feature request here. Post devicediscovery logs here.
placeholder: Add any other context or screenshots about the feature request here. Post device logs here.
validations:
required: false
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/support-request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Support Request
description: Need help?
title: "Support Request:"
title: "Support Request: "
labels: [question]
assignees: 'donavanbecker'
body:
Expand Down
32 changes: 26 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE/pull_requests.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
+---
name: Pull Request
about: Enhancment
---
name: Enhancement
about: Contribute to Plugin through Pull Request
title: ''
labels: enhancment
assignees: ''
---
labels: 'enhancement'
assignees: 'donavanbecker'
---

**Is your enhancement related to a problem? Please describe.**

<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

**Describe the solution you are addding**

<!-- A clear and concise description of what you want to happen. -->

**Changes Proposed in this Pull Request**

<!-- A clear and concise description of what is being changed. -->

**Describe alternatives you've considered**

<!-- A clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**

<!-- Add any other context or screenshots about the feature request here. -->
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
target-branch: 'beta'
schedule:
interval: 'daily'
- package-ecosystem: 'github-actions' # See documentation for possible values
directory: '/' # Location of package manifests
target-branch: 'beta'
schedule:
interval: 'daily'
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ beta ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ beta ]
schedule:
- cron: '39 20 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
10 changes: 5 additions & 5 deletions .github/workflows/nodejs-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: npm install, build and test
Expand All @@ -32,13 +32,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: node .github/workflows/prerelease.js
- run: node .github/workflows/prerelease-beta.js
- run: npm --no-git-tag-version version prerelease --preid=beta
- run: npm publish --tag=beta
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
build:
strategy:
matrix:
node-version: [12.x, 13.x, 14.x, 15.x, 16.x]
node-version: [12, 13, 14, 15, 16]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build and test
Expand All @@ -39,8 +39,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14 # use the minimum required version
registry-url: https://registry.npmjs.org/
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Others
node_modules
.DS_Store
dist/
#DS_Store Files
.DS_Store
src/.DS_Store
.github/.DS_Store
src/.DS_Store
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)

## [Beta - Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2020-XX-XX)
## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2020-11-13)

### Changes

- Offical release of homebridge-Switchbot, which combines both BLE and OpenAPI into 1 plugin.
- Adds Light Sensors to Curtains
- with iOS 15.1 you can set automations on light sensors.
- Adds Motion Sensor to Contact Sensors
- Adds Support Color Bulbs

## [Version 0.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.1) (2020-09-11)

Expand All @@ -19,5 +23,5 @@ All notable changes to this project will be documented in this file. This projec
### Changes

- Initial release of homebridge-switchbot.
- Adds Motion & Contact Sensors
- Adds Support for Motion & Contact Sensors
- Adds Water Level to Humidifier
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<a href="https://github.com/homebridge/verified/blob/master/verified-plugins.json"><img alt="homebridge-verified" src="https://raw.githubusercontent.com/OpenWonderLabs/homebridge-switchbot/main/switchbot/Homebridge_x_SwitchBot.svg?sanitize=true" width="500px"></a>

# homebridge-switchbot
# @switchbot/homebridge-switchbot

[![npm version](https://badgen.net/npm/v/@switchbot/homebridge-switchbot)](https://www.npmjs.com/package/@switchbot/homebridge-switchbot)
[![npm downloads](https://badgen.net/npm/dt/@switchbot/homebridge-switchbot)](https://www.npmjs.com/package/@switchbot/homebridge-switchbot)
Expand All @@ -19,6 +19,7 @@ plugin allows you to access your SwitchBot Device(s) from HomeKit with

1. Search for "SwitchBot" on the plugin screen of [Homebridge Config UI X](https://github.com/oznu/homebridge-config-ui-x)
2. Find: `@switchbot/homebridge-switchbot`
- See noble [prerequisites](https://github.com/homebridge/noble#prerequisites) for your OS. (This is used for BLE connection.)
3. Click **Install**

## Configuration
Expand All @@ -44,19 +45,22 @@ plugin allows you to access your SwitchBot Device(s) from HomeKit with
- [SwitchBot Humidifier](https://www.switch-bot.com/products/switchbot-smart-humidifier)
- [SwitchBot Meter](https://www.switch-bot.com/products/switchbot-meter)
- [SwitchBot Hub Mini](https://www.switch-bot.com/products/switchbot-hub-mini) or [SwitchBot Hub Plus](https://www.switch-bot.com/products/switchbot-hub-plus) Required
- Enable Cloud Services for Device on SwitchBot App
- Enable Cloud Services for Device on SwitchBot App, If using OpenAPI.
- [SwitchBot Motion Sensor](https://www.switch-bot.com/products/motion-sensor)
- [SwitchBot Hub Mini](https://www.switch-bot.com/products/switchbot-hub-mini) or [SwitchBot Hub Plus](https://www.switch-bot.com/products/switchbot-hub-plus) Required
- Enable Cloud Services for Device on SwitchBot App
- Enable Cloud Services for Device on SwitchBot App, If using OpenAPI.
- [SwitchBot Contact Sensor](https://www.switch-bot.com/products/contact-sensor)
- [SwitchBot Hub Mini](https://www.switch-bot.com/products/switchbot-hub-mini) or [SwitchBot Hub Plus](https://www.switch-bot.com/products/switchbot-hub-plus) Required
- Enable Cloud Services for Device on SwitchBot App
- Enable Cloud Services for Device on SwitchBot App, If using OpenAPI.
- [SwitchBot Curtain](https://www.switch-bot.com/products/switchbot-curtain)
- [SwitchBot Hub Mini](https://www.switch-bot.com/products/switchbot-hub-mini) or [SwitchBot Hub Plus](https://www.switch-bot.com/products/switchbot-hub-plus) Required
- Enable Cloud Services for Device on SwitchBot App
- Enable Cloud Services for Device on SwitchBot App, If using OpenAPI.
- [SwitchBot Bulb](https://www.switch-bot.com/products/switchbot-color-bulb)
- [SwitchBot Hub Mini](https://www.switch-bot.com/products/switchbot-hub-mini) or [SwitchBot Hub Plus](https://www.switch-bot.com/products/switchbot-hub-plus) Required
- Enable Cloud Services for Device on SwitchBot App, If using OpenAPI.
- [SwitchBot Bot](https://www.switch-bot.com/products/switchbot-bot)
- [SwitchBot Hub Mini](https://www.switch-bot.com/products/switchbot-hub-mini) or [SwitchBot Hub Plus](https://www.switch-bot.com/products/switchbot-hub-plus) Required
- Enable Cloud Services for Device on SwitchBot App
- Enable Cloud Services for Device on SwitchBot App, If using OpenAPI.
- You must set your Bot's Device ID in the Press Mode or Switch Mode Bot Settings (Advanced Settings > Bot Settings)
- Press Mode - Turns on then instantly turn it off
- Switch Mode - Turns on and keep it on until it is turned off
Expand Down Expand Up @@ -104,6 +108,7 @@ plugin allows you to access your SwitchBot Device(s) from HomeKit with
## SwitchBotAPI

- [OpenWonderLabs/SwitchBotAPI](https://github.com/OpenWonderLabs/SwitchBotAPI)
- [OpenWonderLabs/node-switchbot](https://github.com/OpenWonderLabs/node-switchbot)

## Community

Expand Down
Loading

0 comments on commit 7f07c1e

Please sign in to comment.