node-red-contrib-homekit-bridged 2.0.0-dev.8 → 2.0.0-dev.9

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.
@@ -963,6 +963,20 @@ Send a `msg.payload` object whose keys are HomeKit characteristic names.
963
963
  const selectedParentService = $('#node-input-parentService option:selected')
964
964
  node.parentService = selectedParentService.val()
965
965
  node.hostType = selectedParentService.attr("hostType")
966
+ node.bridge = ''
967
+ node.accessoryId = ''
968
+ $('#node-input-bridge').val('')
969
+ $('#node-input-accessoryId').val('')
970
+ } else if (node.hostType === '0') {
971
+ node.accessoryId = ''
972
+ node.parentService = ''
973
+ $('#node-input-accessoryId').val('')
974
+ $('#node-input-parentService').val('')
975
+ } else if (node.hostType === '1') {
976
+ node.bridge = ''
977
+ node.parentService = ''
978
+ $('#node-input-bridge').val('')
979
+ $('#node-input-parentService').val('')
966
980
  }
967
981
 
968
982
  node.serviceName = $(
@@ -2010,6 +2010,20 @@ To discover valid characteristic names for the selected service, send a test pay
2010
2010
  const selectedParentService = $('#node-input-parentService option:selected')
2011
2011
  node.parentService = selectedParentService.val()
2012
2012
  node.hostType = selectedParentService.attr("hostType")
2013
+ node.bridge = ''
2014
+ node.accessoryId = ''
2015
+ $('#node-input-bridge').val('')
2016
+ $('#node-input-accessoryId').val('')
2017
+ } else if (node.hostType === '0') {
2018
+ node.accessoryId = ''
2019
+ node.parentService = ''
2020
+ $('#node-input-accessoryId').val('')
2021
+ $('#node-input-parentService').val('')
2022
+ } else if (node.hostType === '1') {
2023
+ node.bridge = ''
2024
+ node.parentService = ''
2025
+ $('#node-input-bridge').val('')
2026
+ $('#node-input-parentService').val('')
2013
2027
  }
2014
2028
 
2015
2029
  node.serviceName = $(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-homekit-bridged",
3
- "version": "2.0.0-dev.8",
3
+ "version": "2.0.0-dev.9",
4
4
  "description": "Node-RED nodes to simulate Apple HomeKit devices.",
5
5
  "main": "build/nodes/nrchkb.js",
6
6
  "scripts": {