Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muzea/homebridge-state-switch
https://github.com/muzea/homebridge-state-switch
homebridge programable-switch
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/muzea/homebridge-state-switch
- Owner: muzea
- License: apache-2.0
- Created: 2021-02-14T06:39:57.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T07:10:30.000Z (almost 4 years ago)
- Last Synced: 2025-01-30T17:01:59.737Z (8 days ago)
- Topics: homebridge, programable-switch
- Language: TypeScript
- Homepage:
- Size: 175 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Homebridge State Switch Plugin
一个配合可编程开关的插件
[一个可以配合使用的 ESP8266 固件](https://github.com/muzea/homebridge-state-switch-esp8266)
# 配置项
## name
开关的名字,获取/设置开关的状态会用到
## api
提供开关状态查询/设置的 HTTP 服务
该服务需要实现两个操作
### 查询状态
```
GET /
```返回值为
状态为 开
```
{"":"on"}
```状态为 关
```
{"":"off"}
```### 设置状态
设置为 开
```
PUT /{"":"on"}
```设置为 关
```
PUT /{"":"off"}
```