@hurenkam/hue-services 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -1
- package/.github/workflows/node.js.yml +0 -31
- package/.nyc_output/ccf277a0-5927-457e-9598-5bb4939612f5.json +0 -1
- package/.nyc_output/processinfo/ccf277a0-5927-457e-9598-5bb4939612f5.json +0 -1
- package/acquire_token_failed.log +0 -14
- package/attic-bridge-v2-key.txt +0 -2
- package/bridge_v3_grouped_light.log +0 -43
- package/cross_room_onoff.log +0 -42
- package/examples/flows.json +0 -959
- package/screenshots/Screenshot from 2022-11-29 00-29-23.png +0 -0
- package/screenshots/Screenshot from 2022-11-29 00-30-16.png +0 -0
- package/screenshots/Screenshot from 2022-11-29 00-30-58.png +0 -0
- package/screenshots/Screenshot from 2022-11-29 00-31-29.png +0 -0
- package/select_fire_effect.log +0 -59
- package/test/BaseNode_spec.js +0 -246
- package/test/BridgeConfigNode_spec.js +0 -184
- package/test/ButtonNode_spec.js +0 -178
- package/test/ClipApi_spec.js +0 -769
- package/test/DevicePowerNode_spec.js +0 -186
- package/test/GroupedLightNode_spec.js +0 -218
- package/test/LightLevelNode_spec.js +0 -154
- package/test/LightNode_spec.js +0 -218
- package/test/MotionNode_spec.js +0 -186
- package/test/RelativeRotataryNode_spec.js +0 -325
- package/test/ResourceNode_spec.js +0 -361
- package/test/Resource_spec.js +0 -392
- package/test/SceneNode_spec.js +0 -33
- package/test/ServiceNode_spec.js +0 -33
- package/test/TemperatureNode_spec.js +0 -153
- package/test/ZigbeeConnectivityNode_spec.js +0 -186
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hurenkam/hue-services",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Custom node-red nodes for interfacing with philips hue devices",
|
|
5
5
|
"author": "Mark Hurenkamp",
|
|
6
6
|
"license": "Apache 2.0",
|
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
"hue",
|
|
23
23
|
"clip"
|
|
24
24
|
],
|
|
25
|
+
"files": [
|
|
26
|
+
"README.md",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"package.json",
|
|
29
|
+
"src"
|
|
30
|
+
],
|
|
25
31
|
"node-red": {
|
|
26
32
|
"version": ">=2.0.0",
|
|
27
33
|
"nodes": {
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
|
3
|
-
|
|
4
|
-
name: Node.js CI
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches: [ "maturing-v0.5" ]
|
|
9
|
-
pull_request:
|
|
10
|
-
branches: [ "maturing-v0.5" ]
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
strategy:
|
|
18
|
-
matrix:
|
|
19
|
-
node-version: [14.x, 16.x, 18.x]
|
|
20
|
-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v3
|
|
24
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
25
|
-
uses: actions/setup-node@v3
|
|
26
|
-
with:
|
|
27
|
-
node-version: ${{ matrix.node-version }}
|
|
28
|
-
cache: 'npm'
|
|
29
|
-
- run: npm ci
|
|
30
|
-
- run: npm run build --if-present
|
|
31
|
-
- run: npm test
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":232236,"argv":["/usr/bin/node","undefined"],"execArgv":["-e","\nconst pid = parseInt(process.argv[1], 10)\nprocess.title = 'node (foreground-child watchdog pid=' + pid + ')'\nif (!isNaN(pid)) {\n let barked = false\n // keepalive\n const interval = setInterval(() => {}, 60000)\n const bark = () => {\n clearInterval(interval)\n if (barked) return\n barked = true\n process.removeListener('SIGHUP', bark)\n setTimeout(() => {\n try {\n process.kill(pid, 'SIGKILL')\n setTimeout(() => process.exit(), 200)\n } catch (_) {}\n }, 500)\n })\n process.on('SIGHUP', bark)\n}\n"],"cwd":"/home/hurenkam/Workspace/node-red-hue-services","time":1766507688103,"ppid":1613,"coverageFilename":"/home/hurenkam/Workspace/node-red-hue-services/.nyc_output/ccf277a0-5927-457e-9598-5bb4939612f5.json","externalId":"","uuid":"ccf277a0-5927-457e-9598-5bb4939612f5","files":[]}
|
package/acquire_token_failed.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
info:hue /AcquireApplicationKey +4m
|
|
2
|
-
trace:hue { ip: '192.168.1.83' } +4m
|
|
3
|
-
info:BridgeConfigNode AcquireApplicationKey(192.168.1.83) +4m
|
|
4
|
-
trace:BridgeConfigNode AcquireApplicationKey(192.168.1.83) [
|
|
5
|
-
{
|
|
6
|
-
error: {
|
|
7
|
-
type: 4,
|
|
8
|
-
address: '/',
|
|
9
|
-
description: 'method, GET, not available for resource, /'
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
] +4m
|
|
13
|
-
error:hue /AcquireApplicationKey Error: undefined undefined +4m
|
|
14
|
-
|
package/attic-bridge-v2-key.txt
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
2025-12-23T14:12:54.496Z trace:ClipApi:[Bridge v3a] constructor() found resource: {
|
|
2
|
-
id: '273c5261-178b-46ce-b339-b0dc5a99954e',
|
|
3
|
-
id_v1: '/groups/0',
|
|
4
|
-
owner: { rid: 'b832a485-c296-4e90-8efd-a3cbc84b690d', rtype: 'bridge_home' },
|
|
5
|
-
on: { on: true },
|
|
6
|
-
dimming: { brightness: 23.25333333333333 },
|
|
7
|
-
dimming_delta: {},
|
|
8
|
-
color_temperature: {},
|
|
9
|
-
color_temperature_delta: {},
|
|
10
|
-
color: {},
|
|
11
|
-
alert: { action_values: [ 'breathe' ] },
|
|
12
|
-
signaling: {
|
|
13
|
-
signal_values: [ 'alternating', 'no_signal', 'on_off', 'on_off_color' ]
|
|
14
|
-
},
|
|
15
|
-
dynamics: {},
|
|
16
|
-
type: 'grouped_light'
|
|
17
|
-
}
|
|
18
|
-
2025-12-23T14:12:54.496Z info:Resource:[grouped_light/273c5261-178b-46ce-b339-b0dc5a99954e] constructor()
|
|
19
|
-
2025-12-23T14:12:54.496Z trace:ClipApi:[Bridge v3a] #registerResource( grouped_light/273c5261-178b-46ce-b339-b0dc5a99954e )
|
|
20
|
-
2025-12-23T14:12:54.496Z trace:ClipApi:[Bridge v3a] constructor() found resource: {
|
|
21
|
-
id: '43892de0-48e4-4210-91b0-9015fa64361c',
|
|
22
|
-
id_v1: '/groups/83',
|
|
23
|
-
owner: {
|
|
24
|
-
rid: 'a4e51f59-52c4-4049-8b8e-aba53e4db3f2',
|
|
25
|
-
rtype: 'private_group'
|
|
26
|
-
},
|
|
27
|
-
on: { on: true },
|
|
28
|
-
dimming: { brightness: 6.586666666666667 },
|
|
29
|
-
dimming_delta: {},
|
|
30
|
-
color_temperature: {},
|
|
31
|
-
color_temperature_delta: {},
|
|
32
|
-
color: {},
|
|
33
|
-
alert: { action_values: [ 'breathe' ] },
|
|
34
|
-
signaling: {
|
|
35
|
-
signal_values: [ 'alternating', 'no_signal', 'on_off', 'on_off_color' ]
|
|
36
|
-
},
|
|
37
|
-
dynamics: {},
|
|
38
|
-
type: 'grouped_light'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
package/cross_room_onoff.log
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
trace:BaseNode:[Living room v3a] onInput( {
|
|
2
|
-
_msgid: '0a227c9acf8aed5f',
|
|
3
|
-
payload: { on: { on: true } },
|
|
4
|
-
rtypes: [ 'light', 'grouped_light' ]
|
|
5
|
-
} ) +0ms
|
|
6
|
-
trace:Resource:[grouped_light/273c5261-178b-46ce-b339-b0dc5a99954e] put( { on: { on: true } } ) +0ms
|
|
7
|
-
trace:ClipApi:[Bridge v3a] put( grouped_light , 273c5261-178b-46ce-b339-b0dc5a99954e , { on: { on: true } } ) +9s
|
|
8
|
-
trace:RestApi:[Bridge v3a] put(/clip/v2/resource/grouped_light/273c5261-178b-46ce-b339-b0dc5a99954e) +9s
|
|
9
|
-
info:RestApi:[Bridge v3a] _handleRequest() pending: 1 +9s
|
|
10
|
-
info:RestApi:[Bridge v3a] _handleRequest() url: /clip/v2/resource/grouped_light/273c5261-178b-46ce-b339-b0dc5a99954e method: PUT data: [object Object] +0ms
|
|
11
|
-
info:RestApi:[Bridge v3a] _request(https://192.168.1.83/clip/v2/resource/grouped_light/273c5261-178b-46ce-b339-b0dc5a99954e, PUT, { on: { on: true } } ) +0ms
|
|
12
|
-
trace:LightNode:[Hue go table lamp black] onUpdate( {
|
|
13
|
-
id: '80f763f6-990f-4dad-af00-a7c9b4dc6ce9',
|
|
14
|
-
id_v1: '/lights/2',
|
|
15
|
-
on: { on: true },
|
|
16
|
-
owner: { rid: 'f71e85e3-3f4a-4fb4-99d0-65827b0d3031', rtype: 'device' },
|
|
17
|
-
service_id: 0,
|
|
18
|
-
type: 'light'
|
|
19
|
-
} ) +9s
|
|
20
|
-
trace:LightNode:[Hue go table lamp black] updateStatus() +0ms
|
|
21
|
-
trace:ResourceNode:[Hue go table lamp black] onUpdate() +0ms
|
|
22
|
-
trace:GroupedLightNode:[Living room v3a] onUpdate( {
|
|
23
|
-
dimming: { brightness: 23.25333333333333 },
|
|
24
|
-
id: '273c5261-178b-46ce-b339-b0dc5a99954e',
|
|
25
|
-
id_v1: '/groups/0',
|
|
26
|
-
on: { on: true },
|
|
27
|
-
owner: { rid: 'b832a485-c296-4e90-8efd-a3cbc84b690d', rtype: 'bridge_home' },
|
|
28
|
-
type: 'grouped_light'
|
|
29
|
-
} ) +11s
|
|
30
|
-
trace:GroupedLightNode:[Living room v3a] updateStatus() +1ms
|
|
31
|
-
trace:ResourceNode:[Living room v3a] onUpdate() +0ms
|
|
32
|
-
trace:GroupedLightNode:[Bedroom v3a] onUpdate( {
|
|
33
|
-
dimming: { brightness: 7.904000000000001 },
|
|
34
|
-
id: 'ab4bf27c-30ed-46ed-ae41-3d08ea119383',
|
|
35
|
-
id_v1: '/groups/82',
|
|
36
|
-
on: { on: true },
|
|
37
|
-
owner: { rid: '785bb0cc-0e26-45ac-8556-4c63f7a4f176', rtype: 'room' },
|
|
38
|
-
type: 'grouped_light'
|
|
39
|
-
} ) +11s
|
|
40
|
-
trace:GroupedLightNode:[Bedroom v3a] updateStatus() +0ms
|
|
41
|
-
trace:ResourceNode:[Bedroom v3a] onUpdate() +0ms
|
|
42
|
-
|