Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift async logic to mh plaform #136

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
38bf43c
Added platformAccessory logging
Zacknetic Jan 29, 2021
7285232
minor changes, still many bugs
Zacknetic Sep 26, 2021
7bc99ea
logic cleanup
Zacknetic Sep 30, 2021
f454071
process existing accessory 0.1
Zacknetic Sep 30, 2021
bf10102
device logic 0.2
Zacknetic Sep 30, 2021
4acfebf
accessory logic 0.3
Zacknetic Sep 30, 2021
5ca04cc
mvp
Zacknetic Sep 30, 2021
b747ae0
changes to accessory state
Zacknetic Oct 1, 2021
603d4af
somewhat working RGB
Zacknetic Oct 1, 2021
723e36f
working with on/off
Zacknetic Oct 1, 2021
cb83516
function send commands
Zacknetic Oct 2, 2021
0efbc25
update to some device state fetching
Zacknetic Oct 4, 2021
0478ebf
major change to device state
Zacknetic Oct 12, 2021
38c4b1a
major change to device state
Zacknetic Oct 12, 2021
8a00cfd
Updated On/Off handler
Zacknetic Oct 14, 2021
7e5526f
update characteristic binding
Zacknetic Oct 16, 2021
78c166c
add offline devices
Zacknetic Oct 18, 2021
5a669d3
White LEDs can be 255 max combined
Zacknetic Oct 23, 2021
cd803c2
Added buffer for device read state
Zacknetic Oct 23, 2021
f3c23a1
cached device state saves each fetch
Zacknetic Oct 23, 2021
aabc063
changed error handling
Zacknetic Oct 23, 2021
5cbfe1b
changes to animations
Zacknetic Oct 26, 2021
d67ec6f
changes to animation
Zacknetic Oct 26, 2021
565f4df
animation improvement
Zacknetic Oct 27, 2021
93c625c
additional accessory generation logic
Zacknetic Nov 15, 2021
d4e010b
Updated Logic
Zacknetic Aug 3, 2022
0464754
continued discovery rework
Zacknetic Aug 5, 2022
de60f02
update to device controller logic
Zacknetic Aug 13, 2022
4f0d3cd
updating generator
Zacknetic Aug 14, 2022
270dbf6
logic shift to platform and core
Zacknetic Aug 18, 2022
b32be74
logic shift and HSL conversion to HSV
Zacknetic Aug 19, 2022
a106e5a
Basic animation functionality
Zacknetic Aug 24, 2022
b45d999
updated animation accessory
Zacknetic Aug 25, 2022
00e881c
updated command and state to be device type agnostic
Zacknetic Aug 27, 2022
e431136
updated device state and command
Zacknetic Aug 27, 2022
43fd44b
non-functional attempt to control cct and rgb seperately
Zacknetic Aug 28, 2022
43c0895
changes to throws
Zacknetic Oct 21, 2022
57520b3
logic update for multiple classes
Zacknetic Dec 28, 2022
7e84dfe
animation updates
Zacknetic May 2, 2023
8c3495d
animation fixes
Zacknetic May 10, 2023
4a5b001
Update platformAccessory.ts
Zacknetic Jul 3, 2023
90cd3db
Update platformAccessory.ts
Zacknetic Jul 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .eslintrc

This file was deleted.

246 changes: 123 additions & 123 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,123 +1,123 @@
# Ignore compiled code
dist

# ------------- Defaults ------------- #

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.pnp.*

.homebridge-dev/*
!.homebridge-dev/config.json
# Ignore compiled code
dist
# ------------- Defaults ------------- #
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.pnp.*
.homebridge-dev/*
!.homebridge-dev/config.json
9 changes: 5 additions & 4 deletions .homebridge-dev/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"bridge": {
"name": "HomebridgeDev",
"username": "CC:BB:DD:DD:FF:FF",
"username": "DD:FB:FF:DD:FF:GG",
"manufacturer": "homebridge.io",
"model": "homebridge",
"port": 51826,
Expand All @@ -17,7 +17,7 @@
"platforms": [
{
"platform": "homebridge-magichome-dynamic-platform",
"name": "magicHome",
"name": "MagicHome Dynamic Platform",
"pruning": {
"pruneMissingCachedAccessories": false,
"restartsBeforeMissingAccessoriesPruned": 3,
Expand All @@ -27,14 +27,15 @@
"simultaniousDevicesColorWhite": true,
"colorWhiteThreshold": 10,
"colorWhiteThresholdSimultaniousDevices": 50,
"colorOffThresholdSimultaniousDevices": 5
"colorOffThresholdSimultaniousDevices": 1
},
"deviceManagement": {
"blacklistOrWhitelist": "blacklist",
"blacklistedUniqueIDs": [""]
},
"advancedOptions": {
"namesWithMacAddress": true
"namesWithMacAddress": false,
"logLevel": 5
}
}
]
Expand Down
Loading