@ncd-io/node-red-enterprise-sensors 1.4.4 → 1.4.6
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/lib/WirelessGateway.js +6404 -3223
- package/package.json +1 -1
- package/wireless.html +1087 -85
- package/wireless.js +261 -4
package/wireless.js
CHANGED
|
@@ -1047,7 +1047,7 @@ module.exports = function(RED) {
|
|
|
1047
1047
|
|
|
1048
1048
|
var promises = {};
|
|
1049
1049
|
// This command is used for OTF on types 53, 80,81,82,83,84, 101, 102, 110, 111, 518, 519
|
|
1050
|
-
let original_otf_devices = [53, 80, 81, 82, 83, 84, 87, 101, 102, 103, 110, 111, 112, 114, 117, 180, 181, 518, 519, 520, 538];
|
|
1050
|
+
let original_otf_devices = [53, 80, 81, 82, 83, 84, 87, 101, 102, 103, 110, 111, 112, 114, 117, 180, 181, 518, 519, 520, 538, 543];
|
|
1051
1051
|
if(original_otf_devices.includes(sensor.type)){
|
|
1052
1052
|
// This command is used for OTF on types 53, 80, 81, 82, 83, 84, 101, 102, 110, 111, 518, 519
|
|
1053
1053
|
promises.config_enter_otn_mode = node.config_gateway.config_enter_otn_mode(sensor.mac);
|
|
@@ -1503,6 +1503,11 @@ module.exports = function(RED) {
|
|
|
1503
1503
|
promises.change_detection_ch3 = node.config_gateway.config_set_change_detection_ch3(mac, config.change_enabled_ch3 ? 1 : 0, parseInt(config.change_pr_ch3), parseInt(config.change_interval_ch3));
|
|
1504
1504
|
}
|
|
1505
1505
|
break;
|
|
1506
|
+
case 29:
|
|
1507
|
+
if(config.sensor_length_29_active){
|
|
1508
|
+
promises.sensor_length_29 = node.config_gateway.config_set_sensor_length_29(mac, parseInt(config.sensor_length_29));
|
|
1509
|
+
}
|
|
1510
|
+
break;
|
|
1506
1511
|
case 32:
|
|
1507
1512
|
if(config.sps_skip_samples_32_active){
|
|
1508
1513
|
promises.sps_skip_samples_32 = node.config_gateway.config_set_sps_skip_samples_32(mac, parseInt(config.sps_skip_samples_32));
|
|
@@ -1683,6 +1688,40 @@ module.exports = function(RED) {
|
|
|
1683
1688
|
promises.start_sps30_fan_cleaning_53 = node.config_gateway.config_set_start_sps30_fan_cleaning_53(mac);
|
|
1684
1689
|
}
|
|
1685
1690
|
break;
|
|
1691
|
+
case 54:
|
|
1692
|
+
if(config.rtd_type_39_active){
|
|
1693
|
+
promises.rtd_type_39 = node.config_gateway.config_set_rtd_type_39(mac, parseInt(config.rtd_type_39));
|
|
1694
|
+
}
|
|
1695
|
+
if(config.rtd_range_39_active){
|
|
1696
|
+
promises.rtd_range_39 = node.config_gateway.config_set_rtd_range_39(mac, parseInt(config.rtd_range_39));
|
|
1697
|
+
}
|
|
1698
|
+
if(config.rtd_wire_type_ch2_54_active){
|
|
1699
|
+
promises.rtd_wire_type_ch2_54 = node.config_gateway.config_set_rtd_wire_type_ch2_54(mac, parseInt(config.rtd_wire_type_ch2_54));
|
|
1700
|
+
}
|
|
1701
|
+
if(config.rtd_range_ch2_54_active){
|
|
1702
|
+
promises.rtd_range_ch2_54 = node.config_gateway.config_set_rtd_range_ch2_54(mac, parseInt(config.rtd_range_ch2_54));
|
|
1703
|
+
}
|
|
1704
|
+
break;
|
|
1705
|
+
case 55:
|
|
1706
|
+
if(config.rtd_type_39_active){
|
|
1707
|
+
promises.rtd_type_39 = node.config_gateway.config_set_rtd_type_39(mac, parseInt(config.rtd_type_39));
|
|
1708
|
+
}
|
|
1709
|
+
if(config.rtd_range_39_active){
|
|
1710
|
+
promises.rtd_range_39 = node.config_gateway.config_set_rtd_range_39(mac, parseInt(config.rtd_range_39));
|
|
1711
|
+
}
|
|
1712
|
+
if(config.rtd_wire_type_ch2_54_active){
|
|
1713
|
+
promises.rtd_wire_type_ch2_54 = node.config_gateway.config_set_rtd_wire_type_ch2_54(mac, parseInt(config.rtd_wire_type_ch2_54));
|
|
1714
|
+
}
|
|
1715
|
+
if(config.rtd_range_ch2_54_active){
|
|
1716
|
+
promises.rtd_range_ch2_54 = node.config_gateway.config_set_rtd_range_ch2_54(mac, parseInt(config.rtd_range_ch2_54));
|
|
1717
|
+
}
|
|
1718
|
+
if(config.rtd_wire_type_ch3_55_active){
|
|
1719
|
+
promises.rtd_wire_type_ch3_55 = node.config_gateway.config_set_rtd_wire_type_ch3_55(mac, parseInt(config.rtd_wire_type_ch3_55));
|
|
1720
|
+
}
|
|
1721
|
+
if(config.rtd_range_ch3_55_active){
|
|
1722
|
+
promises.rtd_range_ch3_55 = node.config_gateway.config_set_rtd_range_ch3_55(mac, parseInt(config.rtd_range_ch3_55));
|
|
1723
|
+
}
|
|
1724
|
+
break;
|
|
1686
1725
|
case 56:
|
|
1687
1726
|
if(config.sensor_boot_time_420ma_active){
|
|
1688
1727
|
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|
|
@@ -2406,6 +2445,12 @@ module.exports = function(RED) {
|
|
|
2406
2445
|
if(config.interrupt_timeout_108_active){
|
|
2407
2446
|
promises.interrupt_timeout_108 = node.config_gateway.config_set_interrupt_timeout_108(mac, parseInt(config.interrupt_timeout_108));
|
|
2408
2447
|
}
|
|
2448
|
+
if(config.screen_control_108_active){
|
|
2449
|
+
promises.screen_control_108 = node.config_gateway.config_set_screen_control_108(mac, parseInt(config.screen_control_108));
|
|
2450
|
+
}
|
|
2451
|
+
if(config.screen_on_time_108_active){
|
|
2452
|
+
promises.screen_on_time_108 = node.config_gateway.config_set_screen_on_time_108(mac, parseInt(config.screen_on_time_108));
|
|
2453
|
+
}
|
|
2409
2454
|
break;
|
|
2410
2455
|
case 110:
|
|
2411
2456
|
if(config.odr_p1_110_active){
|
|
@@ -2709,10 +2754,10 @@ module.exports = function(RED) {
|
|
|
2709
2754
|
promises.led_alert_mode_84 = node.config_gateway.config_set_led_alert_mode_84(mac, parseInt(config.led_alert_mode_84));
|
|
2710
2755
|
}
|
|
2711
2756
|
if(config.led_accelerometer_threshold_84_active){
|
|
2712
|
-
promises.
|
|
2757
|
+
promises.led_accelerometer_threshold_114 = node.config_gateway.config_set_led_accelerometer_threshold_114(mac, parseInt(config.led_accelerometer_threshold_84));
|
|
2713
2758
|
}
|
|
2714
2759
|
if(config.led_velocity_threshold_84_active){
|
|
2715
|
-
promises.
|
|
2760
|
+
promises.led_velocity_threshold_114 = node.config_gateway.config_set_led_velocity_threshold_114(mac, parseInt(config.led_velocity_threshold_84));
|
|
2716
2761
|
}
|
|
2717
2762
|
if(config.motion_detect_threshold_p1_110_active){
|
|
2718
2763
|
promises.motion_detect_threshold_p1_114 = node.config_gateway.config_set_motion_detect_threshold_p1_110(mac, parseInt(config.motion_detect_threshold_p1_110));
|
|
@@ -2771,6 +2816,71 @@ module.exports = function(RED) {
|
|
|
2771
2816
|
promises.temp_auto_check_percent_118 = node.config_gateway.config_set_temp_auto_check_percent_118(mac, parseInt(config.temp_auto_check_percent_118));
|
|
2772
2817
|
}
|
|
2773
2818
|
break;
|
|
2819
|
+
case 119:
|
|
2820
|
+
// if(config.accelerometer_state_108_active){
|
|
2821
|
+
// promises.accelerometer_state_108 = node.config_gateway.config_set_accelerometer_state_108(mac, parseInt(config.accelerometer_state_108));
|
|
2822
|
+
// }
|
|
2823
|
+
if(config.clear_timers_119_active){
|
|
2824
|
+
promises.clear_timers_119 = node.config_gateway.config_set_clear_timers_108(mac, parseInt(config.clear_timers_119));
|
|
2825
|
+
}
|
|
2826
|
+
if(config.accelerometer_threshold_108_active){
|
|
2827
|
+
promises.accelerometer_threshold_108 = node.config_gateway.config_set_accelerometer_threshold_108(mac, parseInt(config.accelerometer_threshold_108));
|
|
2828
|
+
}
|
|
2829
|
+
if(config.debounce_time_v10_108_active){
|
|
2830
|
+
promises.debounce_time_v10_108 = node.config_gateway.config_set_debounce_time_v10_108(mac, parseInt(config.debounce_time_v10_108));
|
|
2831
|
+
}
|
|
2832
|
+
if(config.counter_threshold_108_active){
|
|
2833
|
+
promises.counter_threshold_108 = node.config_gateway.config_set_counter_threshold_108(mac, parseInt(config.counter_threshold_108));
|
|
2834
|
+
}
|
|
2835
|
+
if(config.push_notification_119_active){
|
|
2836
|
+
promises.push_notification_119 = node.config_gateway.config_set_push_notification_108(mac, parseInt(config.push_notification_119));
|
|
2837
|
+
}
|
|
2838
|
+
// if(config.deactivate_activate_accelero_108_active){
|
|
2839
|
+
// promises.deactivate_activate_accelero_108 = node.config_gateway.config_set_deactivate_activate_accelero_108(mac, parseInt(config.deactivate_activate_accelero_108));
|
|
2840
|
+
// }
|
|
2841
|
+
if(config.reset_timeout_108_active){
|
|
2842
|
+
promises.reset_timeout_108 = node.config_gateway.config_set_reset_timeout_108(mac, parseInt(config.reset_timeout_108));
|
|
2843
|
+
}
|
|
2844
|
+
if(config.reset_mode_to_disabled_108_active){
|
|
2845
|
+
promises.reset_mode_to_disabled_108 = node.config_gateway.config_set_reset_mode_to_disabled_108(mac, parseInt(config.reset_mode_to_disabled_108));
|
|
2846
|
+
}
|
|
2847
|
+
if(config.rtc_108){
|
|
2848
|
+
promises.rtc_108 = node.config_gateway.config_set_rtc_108(mac);
|
|
2849
|
+
}
|
|
2850
|
+
if(config.transmission_interval_108_active){
|
|
2851
|
+
promises.transmission_interval_108 = node.config_gateway.config_set_transmission_interval_108(mac, parseInt(config.transmission_interval_108));
|
|
2852
|
+
}
|
|
2853
|
+
if(config.shift_one_108_active){
|
|
2854
|
+
promises.shift_time1 = node.config_gateway.config_set_shift_one_108(mac, parseInt(config.shift_one_hours_108), parseInt(config.shift_one_minutes_108));
|
|
2855
|
+
}
|
|
2856
|
+
if(config.shift_two_108_active){
|
|
2857
|
+
promises.shift_time2 = node.config_gateway.config_set_shift_two_108(mac, parseInt(config.shift_two_hours_108), parseInt(config.shift_two_minutes_108));
|
|
2858
|
+
}
|
|
2859
|
+
if(config.shift_three_108_active){
|
|
2860
|
+
promises.shift_time3 = node.config_gateway.config_set_shift_three_108(mac, parseInt(config.shift_three_hours_108), parseInt(config.shift_three_minutes_108));
|
|
2861
|
+
}
|
|
2862
|
+
if(config.shift_four_108_active){
|
|
2863
|
+
promises.shift_time4 = node.config_gateway.config_set_shift_four_108(mac, parseInt(config.shift_four_hours_108), parseInt(config.shift_four_minutes_108));
|
|
2864
|
+
}
|
|
2865
|
+
if(config.quality_of_service_108_active){
|
|
2866
|
+
promises.quality_of_service_108 = node.config_gateway.config_set_quality_of_service_108(mac, parseInt(config.quality_of_service_108));
|
|
2867
|
+
}
|
|
2868
|
+
if(config.fly_interval_108_active){
|
|
2869
|
+
promises.fly_interval_108 = node.config_gateway.config_set_fly_interval_108(mac, parseInt(config.fly_interval_108));
|
|
2870
|
+
}
|
|
2871
|
+
if(config.sample_rate_108_active){
|
|
2872
|
+
promises.sample_rate_108 = node.config_gateway.config_set_sample_rate_108(mac, parseInt(config.sample_rate_108));
|
|
2873
|
+
}
|
|
2874
|
+
if(config.interrupt_timeout_108_active){
|
|
2875
|
+
promises.interrupt_timeout_108 = node.config_gateway.config_set_interrupt_timeout_108(mac, parseInt(config.interrupt_timeout_108));
|
|
2876
|
+
}
|
|
2877
|
+
if(config.enable_axis_119_active){
|
|
2878
|
+
promises.enable_axis_119 = node.config_gateway.config_set_axis_enabled_119(mac, parseInt(config.enable_axis_119));
|
|
2879
|
+
}
|
|
2880
|
+
if(config.raw_acc_data_119_active){
|
|
2881
|
+
promises.raw_acc_data_119 = node.config_gateway.config_set_raw_acc_data_119(mac, parseInt(config.raw_acc_data_119));
|
|
2882
|
+
}
|
|
2883
|
+
break;
|
|
2774
2884
|
case 120:
|
|
2775
2885
|
if(config.stay_on_mode_539_active){
|
|
2776
2886
|
promises.stay_on_mode_120 = node.config_gateway.config_set_stay_on_mode_539(mac, parseInt(config.stay_on_mode_539));
|
|
@@ -2878,6 +2988,38 @@ module.exports = function(RED) {
|
|
|
2878
2988
|
promises.interrupt_timeout_123 = node.config_gateway.config_set_interrupt_timeout_108(mac, parseInt(config.interrupt_timeout_108));
|
|
2879
2989
|
}
|
|
2880
2990
|
break;
|
|
2991
|
+
case 124:
|
|
2992
|
+
if(config.volume_flow_unit_124_active){
|
|
2993
|
+
promises.volume_flow_unit_124 = node.config_gateway.config_set_volume_flow_unit_124(mac, parseInt(config.volume_flow_unit_124));
|
|
2994
|
+
}
|
|
2995
|
+
if(config.total_1_flow_unit_124_active){
|
|
2996
|
+
promises.total_1_flow_unit_124 = node.config_gateway.config_set_total_1_flow_unit_124(mac, parseInt(config.total_1_flow_unit_124));
|
|
2997
|
+
}
|
|
2998
|
+
if(config.total_2_flow_unit_124_active){
|
|
2999
|
+
promises.total_2_flow_unit_124 = node.config_gateway.config_set_total_2_flow_unit_124(mac, parseInt(config.total_2_flow_unit_124));
|
|
3000
|
+
}
|
|
3001
|
+
if(config.total_3_flow_unit_124_active){
|
|
3002
|
+
promises.total_3_flow_unit_124 = node.config_gateway.config_set_total_3_flow_unit_124(mac, parseInt(config.total_3_flow_unit_124));
|
|
3003
|
+
}
|
|
3004
|
+
if(config.pressure_unit_124_active){
|
|
3005
|
+
promises.pressure_unit_124 = node.config_gateway.config_set_pressure_unit_124(mac, parseInt(config.pressure_unit_124));
|
|
3006
|
+
}
|
|
3007
|
+
if(config.total_1_op_mode_124_active){
|
|
3008
|
+
promises.total_1_op_mode_124 = node.config_gateway.config_set_total_1_op_mode_124(mac, parseInt(config.total_1_op_mode_124));
|
|
3009
|
+
}
|
|
3010
|
+
if(config.total_2_op_mode_124_active){
|
|
3011
|
+
promises.total_2_op_mode_124 = node.config_gateway.config_set_total_2_op_mode_124(mac, parseInt(config.total_2_op_mode_124));
|
|
3012
|
+
}
|
|
3013
|
+
if(config.total_3_op_mode_124_active){
|
|
3014
|
+
promises.total_3_op_mode_124 = node.config_gateway.config_set_total_3_op_mode_124(mac, parseInt(config.total_3_op_mode_124));
|
|
3015
|
+
}
|
|
3016
|
+
if(config.conductivity_unit_124_active){
|
|
3017
|
+
promises.conductivity_unit_124 = node.config_gateway.config_set_conductivity_unit_124(mac, parseInt(config.conductivity_unit_124));
|
|
3018
|
+
}
|
|
3019
|
+
if(config.reset_all_totalizers_124){
|
|
3020
|
+
promises.reset_all_totalizers_124 = node.config_gateway.config_set_reset_all_totalizers_124(mac);
|
|
3021
|
+
}
|
|
3022
|
+
break;
|
|
2881
3023
|
case 180:
|
|
2882
3024
|
if(config.output_data_rate_101_active){
|
|
2883
3025
|
promises.output_data_rate_101 = node.config_gateway.config_set_output_data_rate_101(mac, parseInt(config.output_data_rate_101));
|
|
@@ -3024,6 +3166,9 @@ module.exports = function(RED) {
|
|
|
3024
3166
|
if(config.weight_calib_217_active){
|
|
3025
3167
|
promises.weight_calib_217 = node.config_gateway.config_set_weight_calib_217(mac, parseInt(config.weight_calib_217));
|
|
3026
3168
|
}
|
|
3169
|
+
if(config.tare_value_217_active){
|
|
3170
|
+
promises.tare_value_217 = node.config_gateway.config_set_tare_value_217(mac, parseInt(config.tare_value_217));
|
|
3171
|
+
}
|
|
3027
3172
|
break;
|
|
3028
3173
|
case 270:
|
|
3029
3174
|
// if(config.do_read_rate_270_active){
|
|
@@ -3127,6 +3272,50 @@ module.exports = function(RED) {
|
|
|
3127
3272
|
promises.temperature_offset_44 = node.config_gateway.config_set_sensor_temperature_offset_44(mac, parseInt(config.temperature_offset_44));
|
|
3128
3273
|
}
|
|
3129
3274
|
break;
|
|
3275
|
+
case 536:
|
|
3276
|
+
if(config.oxygen_boot_time_536_active){
|
|
3277
|
+
promises.oxygen_boot_time_536 = node.config_gateway.config_set_oxygen_boot_time_536(mac, parseInt(config.oxygen_boot_time_536));
|
|
3278
|
+
}
|
|
3279
|
+
if(config.flow_boot_time_536_active){
|
|
3280
|
+
promises.flow_boot_time_536 = node.config_gateway.config_set_flow_boot_time_536(mac, parseInt(config.flow_boot_time_536));
|
|
3281
|
+
}
|
|
3282
|
+
if(config.oxygen_dev_addr_536_active){
|
|
3283
|
+
promises.oxygen_dev_addr_536 = node.config_gateway.config_set_oxygen_dev_addr_536(mac, parseInt(config.oxygen_addr_1_536), parseInt(config.oxygen_addr_2_536), parseInt(config.oxygen_addr_3_536), parseInt(config.oxygen_addr_4_536));
|
|
3284
|
+
}
|
|
3285
|
+
if(config.flow_dev_addr_536_active){
|
|
3286
|
+
promises.flow_dev_addr_536 = node.config_gateway.config_set_flow_dev_addr_536(mac, parseInt(config.flow_addr_1_536), parseInt(config.flow_addr_2_536), parseInt(config.flow_addr_3_536), parseInt(config.flow_addr_4_536));
|
|
3287
|
+
}
|
|
3288
|
+
if(config.oxygen_rate_536_active){
|
|
3289
|
+
promises.oxygen_rate_536 = node.config_gateway.config_set_oxygen_rate_536(mac, parseInt(config.oxygen_rate_536));
|
|
3290
|
+
}
|
|
3291
|
+
if(config.oxygen_timeout_536_active){
|
|
3292
|
+
promises.oxygen_timeout_536 = node.config_gateway.config_set_oxygen_timeout_536(mac, parseInt(config.oxygen_timeout_536));
|
|
3293
|
+
}
|
|
3294
|
+
if(config.oxygen_max_threshold_s1_536_active){
|
|
3295
|
+
promises.oxygen_max_threshold_s1_536 = node.config_gateway.config_set_oxygen_max_threshold_s1_536(mac, parseInt(config.oxygen_max_threshold_s1_536));
|
|
3296
|
+
}
|
|
3297
|
+
if(config.oxygen_max_threshold_s2_536_active){
|
|
3298
|
+
promises.oxygen_max_threshold_s2_536 = node.config_gateway.config_set_oxygen_max_threshold_s2_536(mac, parseInt(config.oxygen_max_threshold_s2_536));
|
|
3299
|
+
}
|
|
3300
|
+
if(config.oxygen_max_threshold_s3_536_active){
|
|
3301
|
+
promises.oxygen_max_threshold_s3_536 = node.config_gateway.config_set_oxygen_max_threshold_s3_536(mac, parseInt(config.oxygen_max_threshold_s3_536));
|
|
3302
|
+
}
|
|
3303
|
+
if(config.oxygen_max_threshold_s4_536_active){
|
|
3304
|
+
promises.oxygen_max_threshold_s4_536 = node.config_gateway.config_set_oxygen_max_threshold_s4_536(mac, parseInt(config.oxygen_max_threshold_s4_536));
|
|
3305
|
+
}
|
|
3306
|
+
if(config.oxygen_min_threshold_s1_536_active){
|
|
3307
|
+
promises.oxygen_min_threshold_s1_536 = node.config_gateway.config_set_oxygen_min_threshold_s1_536(mac, parseInt(config.oxygen_min_threshold_s1_536));
|
|
3308
|
+
}
|
|
3309
|
+
if(config.oxygen_min_threshold_s2_536_active){
|
|
3310
|
+
promises.oxygen_min_threshold_s2_536 = node.config_gateway.config_set_oxygen_min_threshold_s2_536(mac, parseInt(config.oxygen_min_threshold_s2_536));
|
|
3311
|
+
}
|
|
3312
|
+
if(config.oxygen_min_threshold_s3_536_active){
|
|
3313
|
+
promises.oxygen_min_threshold_s3_536 = node.config_gateway.config_set_oxygen_min_threshold_s3_536(mac, parseInt(config.oxygen_min_threshold_s3_536));
|
|
3314
|
+
}
|
|
3315
|
+
if(config.oxygen_min_threshold_s4_536_active){
|
|
3316
|
+
promises.oxygen_min_threshold_s4_536 = node.config_gateway.config_set_oxygen_min_threshold_s4_536(mac, parseInt(config.oxygen_min_threshold_s4_536));
|
|
3317
|
+
}
|
|
3318
|
+
break;
|
|
3130
3319
|
case 537:
|
|
3131
3320
|
if(config.output_data_rate_101_active){
|
|
3132
3321
|
promises.output_data_rate_101 = node.config_gateway.config_set_output_data_rate_101(mac, parseInt(config.output_data_rate_101));
|
|
@@ -3324,6 +3513,74 @@ module.exports = function(RED) {
|
|
|
3324
3513
|
promises.min_flow_541 = node.config_gateway.config_set_min_flow_541(mac, parseInt(config.min_flow_541));
|
|
3325
3514
|
}
|
|
3326
3515
|
break;
|
|
3516
|
+
case 543:
|
|
3517
|
+
if(config.odr_p1_543_active){
|
|
3518
|
+
promises.odr_p1_543 = node.config_gateway.config_set_odr_p1_110(mac, parseInt(config.odr_p1_543));
|
|
3519
|
+
}
|
|
3520
|
+
if(config.enable_filtering_110_active){
|
|
3521
|
+
promises.enable_filtering_110 = node.config_gateway.config_set_enable_filtering_110(mac, parseInt(config.enable_filtering_110));
|
|
3522
|
+
}
|
|
3523
|
+
if(config.sampling_duration_p1_543_active){
|
|
3524
|
+
promises.sampling_duration_p1_543 = node.config_gateway.config_set_sampling_duration_p1_110(mac, parseInt(config.sampling_duration_p1_543));
|
|
3525
|
+
}
|
|
3526
|
+
if(config.sampling_interval_110_active){
|
|
3527
|
+
promises.sampling_interval_110 = node.config_gateway.config_set_sampling_interval_101(mac, parseInt(config.sampling_interval_110));
|
|
3528
|
+
}
|
|
3529
|
+
if(config.full_scale_range_543_active){
|
|
3530
|
+
promises.full_scale_range_543 = node.config_gateway.config_set_full_scale_range_101(mac, parseInt(config.full_scale_range_543));
|
|
3531
|
+
}
|
|
3532
|
+
if(config.mode_110_active){
|
|
3533
|
+
promises.mode = node.config_gateway.config_set_operation_mode_80(mac, parseInt(config.mode_110));
|
|
3534
|
+
}
|
|
3535
|
+
if(config.filter_80_active){
|
|
3536
|
+
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
3537
|
+
}
|
|
3538
|
+
if(config.low_pass_filter_p1_110_active){
|
|
3539
|
+
promises.low_pass_filter_p1_110 = node.config_gateway.config_set_low_pass_filter_p1_110(mac, parseInt(config.low_pass_filter_p1_110));
|
|
3540
|
+
}
|
|
3541
|
+
if(config.high_pass_filter_p1_110_active){
|
|
3542
|
+
promises.high_pass_filter_p1_110 = node.config_gateway.config_set_high_pass_filter_p1_110(mac, parseInt(config.high_pass_filter_p1_110));
|
|
3543
|
+
}
|
|
3544
|
+
if(config.on_request_timeout_80_active){
|
|
3545
|
+
promises.on_request_timeout = node.config_gateway.config_set_on_request_timeout_80(mac, parseInt(config.on_request_timeout_80));
|
|
3546
|
+
}
|
|
3547
|
+
if(config.deadband_80_active){
|
|
3548
|
+
promises.deadband = node.config_gateway.config_set_deadband_80(mac, parseInt(config.deadband_80));
|
|
3549
|
+
}
|
|
3550
|
+
if(config.payload_length_80_active){
|
|
3551
|
+
promises.payload_length_80 = node.config_gateway.config_set_payload_length_80(mac, parseInt(config.payload_length_80));
|
|
3552
|
+
}
|
|
3553
|
+
if(config.set_rtc_101){
|
|
3554
|
+
promises.set_rtc_101 = node.config_gateway.config_set_rtc_101(mac);
|
|
3555
|
+
}
|
|
3556
|
+
if(config.auto_raw_interval_110_active){
|
|
3557
|
+
promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
|
|
3558
|
+
}
|
|
3559
|
+
if(config.auto_raw_destination_110_active){
|
|
3560
|
+
promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110, 16));
|
|
3561
|
+
}
|
|
3562
|
+
if(config.clear_probe_uptimers_110){
|
|
3563
|
+
promises.clear_probe_uptimers = node.config_gateway.config_set_clear_probe_uptimers_110(mac);
|
|
3564
|
+
}
|
|
3565
|
+
if(config.smart_interval_110_active){
|
|
3566
|
+
promises.smart_interval_110 = node.config_gateway.config_set_smart_interval_110(mac, parseInt(config.smart_interval_110));
|
|
3567
|
+
}
|
|
3568
|
+
if(config.smart_threshold_110_active){
|
|
3569
|
+
promises.smart_threshold_110 = node.config_gateway.config_set_smart_threshold_110(mac, parseInt(config.smart_threshold_110));
|
|
3570
|
+
}
|
|
3571
|
+
if(config.fly_interval_110_active){
|
|
3572
|
+
promises.fly_interval_110 = node.config_gateway.config_set_fly_interval_110(mac, parseInt(config.fly_interval_110));
|
|
3573
|
+
}
|
|
3574
|
+
if(config.max_raw_sample_110_active){
|
|
3575
|
+
promises.max_raw_sample_110 = node.config_gateway.config_set_max_raw_sample_110(mac, parseInt(config.max_raw_sample_110));
|
|
3576
|
+
}
|
|
3577
|
+
if(config.motion_to_sampling_delay_110_active){
|
|
3578
|
+
promises.motion_to_sampling_delay_110 = node.config_gateway.config_set_motion_to_sampling_delay_110(mac, parseInt(config.motion_to_sampling_delay_110));
|
|
3579
|
+
}
|
|
3580
|
+
if(config.max_num_motion_tx_delay_110_active){
|
|
3581
|
+
promises.max_num_motion_tx_delay_110 = node.config_gateway.config_set_max_num_motion_tx_delay_110(mac, parseInt(config.max_num_motion_tx_delay_110));
|
|
3582
|
+
}
|
|
3583
|
+
break;
|
|
3327
3584
|
case 1010:
|
|
3328
3585
|
if(config.stay_on_mode_539_active){
|
|
3329
3586
|
promises.stay_on_mode_539 = node.config_gateway.config_set_stay_on_mode_539(mac, parseInt(config.stay_on_mode_539));
|
|
@@ -3373,7 +3630,7 @@ module.exports = function(RED) {
|
|
|
3373
3630
|
}
|
|
3374
3631
|
}
|
|
3375
3632
|
// These sensors listed in original_otf_devices use a different OTF code.
|
|
3376
|
-
let original_otf_devices = [53, 80, 81, 82, 83, 84, 87, 101, 102, 103, 110, 111, 112, 114, 117, 180, 181, 518, 519, 520, 538];
|
|
3633
|
+
let original_otf_devices = [53, 80, 81, 82, 83, 84, 87, 101, 102, 103, 110, 111, 112, 114, 117, 180, 181, 518, 519, 520, 538, 543];
|
|
3377
3634
|
// If we changed the network ID reboot the sensor to take effect.
|
|
3378
3635
|
// TODO if we add the encryption key command to node-red we need to reboot for it as well.
|
|
3379
3636
|
if(reboot){
|