Skip to content

Commit

Permalink
Merge branch 'master' into feat-motion-detection-box
Browse files Browse the repository at this point in the history
  • Loading branch information
cicoub13 authored Feb 24, 2024
2 parents 1dadc49 + 185fe8a commit a186c34
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gladys",
"version": "4.36.0",
"version": "4.37.0",
"description": "A privacy-first, open-source home assistant",
"main": "index.js",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions server/services/zwavejs-ui/utils/convertToGladysDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const convertToGladysDevice = (serviceId, device) => {
...exposeFound,
name: value.id,
external_id: getDeviceFeatureId(device.id, commandClassName, endpoint, propertyName, propertyKeyName),
selector: getDeviceFeatureId(device.id, commandClassName, endpoint, propertyName, propertyKeyName),
node_id: device.id,
// These are custom properties only available on the object in memory (not in DB)
command_class_version: commandClassVersion,
Expand All @@ -55,6 +56,7 @@ const convertToGladysDevice = (serviceId, device) => {
return {
name: device.name,
external_id: `zwavejs-ui:${device.id}`,
selector: `zwavejs-ui:${device.id}`,
service_id: serviceId,
should_poll: false,
features,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('zwaveJSUIHandler.onNewDeviceDiscover.js', () => {
{
name: 'capteur-ouverture',
external_id: 'zwavejs-ui:2',
selector: `zwavejs-ui:2`,
service_id: 'ffa13430-df93-488a-9733-5c540e9558e0',
should_poll: false,
features: [
Expand All @@ -51,6 +52,7 @@ describe('zwaveJSUIHandler.onNewDeviceDiscover.js', () => {
command_class_version: 5,
endpoint: 0,
external_id: 'zwavejs-ui:2:0:notification:access_control:door_state_simple',
selector: 'zwavejs-ui:2:0:notification:access_control:door_state_simple',
node_id: 2,
property_name: 'Access Control',
property_key_name: 'Door state (simple)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ describe('zwaveJSUIHandler.setValue', () => {
{
name: 'prise01-wp',
external_id: 'zwavejs-ui:3',
selector: 'zwavejs-ui:3',
service_id: 'ee03cc7e-8551-4774-bd47-ca7565f6665d',
should_poll: false,
features: [
Expand All @@ -148,6 +149,7 @@ describe('zwaveJSUIHandler.setValue', () => {
has_feedback: true,
name: '3-37-0-currentValue',
external_id: 'zwavejs-ui:3:0:binary_switch:currentvalue',
selector: 'zwavejs-ui:3:0:binary_switch:currentvalue',
node_id: 3,
command_class_version: 1,
command_class_name: 'Binary Switch',
Expand Down Expand Up @@ -186,6 +188,7 @@ describe('zwaveJSUIHandler.setValue', () => {
{
name: 'prise01-wp',
external_id: 'zwavejs-ui:3',
selector: 'zwavejs-ui:3',
service_id: 'ee03cc7e-8551-4774-bd47-ca7565f6665d',
should_poll: false,
features: [
Expand All @@ -199,6 +202,7 @@ describe('zwaveJSUIHandler.setValue', () => {
has_feedback: true,
name: '3-37-0-currentValue',
external_id: 'zwavejs-ui:3:0:binary_switch:currentvalue',
selector: 'zwavejs-ui:3:0:binary_switch:currentvalue',
node_id: 3,
command_class_version: 1,
command_class_name: 'Binary Switch',
Expand Down

0 comments on commit a186c34

Please sign in to comment.