Commit Graph

73 Commits

Author SHA1 Message Date
benzok
312b4bcf17 [DISC] Whitelist immediate change (#2133)
* When updating a device from UNKNOWN force a new scan

* update the sensorModel_id and handle if white-list is updated

* Restore unduly deleted documentation
2024-12-18 07:53:32 -06:00
Florian
921488359e [BT] Fix BT command triggering a stack trace due to conflict (#2104)
related to the vector between BLE scanning and BLE control

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-11-12 08:26:15 -06:00
DigiH
044182460c [DOCS] SwitchBot Curtain clarification & device tracker updates (#2096)
• SwitchBot Curtain clarification, as these commands work with all three - original, 2 and 3 - versions of the SwitchBot Curtain.

• Device tracker updates.
2024-11-03 18:06:51 +01:00
DigiH
67e50642dd [BT] Device Tracker sync across gateways (#2094)
Device Tracker sync across gateways - OpenMQTTGateway & Theengs Gateway
2024-10-28 11:25:38 -05:00
Florian
3187ed6154 [SERIAL] Enable SERIAL to X communication (#2068)
Add Serial as a communication layer so as to transmit data to/from serial
Enable discovery of BT sensors through serial
Add serial heartbeat

Change discovery principle for interval and intervalacts, keep them always discovered and deactivate adaptivescan when changed. Instead of removing their discovery when adaptive scan is activated

Increase JSON_MSG_BUFFER_MAX as we are now using const char* and it requires more memory for Arduino Json Deserialization

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-09-26 06:55:26 -05:00
Florian
00fe36f426 [BT] Add Switchbot curtain (#2049)
Add SB curtain commands and add stop to SB tilt

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-09-05 08:54:53 -05:00
Florian
b0cf3c1dc7 [BT][BREAKING] Change Switchbot API and add new commands (#2003)
Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-08-22 13:04:52 -05:00
Florian
25c3da7ee9 [DOCS] Fix image path (#2006)
* [DOCS] Fix image path

Those images are directly stored into the assets directory now for optimization purposes

* Add back the images
2024-08-15 18:52:00 -05:00
Florian
04c3e7ef95 Add Switchbot Blind Tilt control (#2002)
close_up, close_down, open, and percentage command
Add auto-discovery with HA and cover component
2024-08-14 14:55:15 -05:00
Florian
4ec577d6af [BT] Switchbot Bot control fix (#2001)
* Fix Canary stack trace error during connection attempt

* Fix discovery

* Fix documentation tip
2024-08-13 13:23:59 -05:00
Florian
ad74cf9c3c [DOCS] Adaptive scan condition to change intervals (#1999)
Co-authored-by: Florian <1technophile@users.noreply.github.com>
2024-08-12 19:31:21 -05:00
DigiH
f27855527e [DOCS] RETAIN option clarification only for white/black-list (#1937) 2024-04-25 07:11:28 -05:00
DigiH
115a17cbcc [BT] Prevent intervalacts from being lower than interval (#1932)
Prevent intervalacts from being lower than interval to avoid untrue non-sensical intervalacts values.
2024-04-17 08:32:27 -05:00
Florian
a845d772f9 [DOCS] Fix image sizing and path (#1926) 2024-04-08 07:18:52 -05:00
Florian
6c62858093 [DOCS] Page speed optimizations (#1922)
* [DOCS] Page speed optimizations

* Fix img path
2024-04-04 11:38:41 -05:00
DigiH
60a571ebb2 [BT] Device Tracker & Presence separation and clarification (#1880) 2024-02-01 21:21:29 +01:00
Florian
fbc8ed7e92 [DOCS] Search optimization (#1886) 2024-01-31 14:54:59 -06:00
DigiH
491111ff31 [BT] presence publishing fix independent of pubOnlySensors (#1883) 2024-01-29 07:15:03 -06:00
DigiH
36659309b1 [DOCS] info container fix (#1851)
info container fix to ::: tip INFO
2024-01-05 12:13:34 -06:00
Florian
5a07020144 [SYS][BREAKING] Optim json size (#1823) 2023-12-05 08:05:19 -06:00
Florian
7f9f042f7c [BT] Add gateway deactivation/activation command (#1821) 2023-12-04 12:20:10 -06:00
DigiH
5421f0e995 [DOCS] typo fixes (#1816) 2023-11-26 13:07:18 -06:00
Florian
e576b26b8c [BT] Fix HA discovery for motion and door sensor (#1798)
* [BT] Fix HA discovery for motion sensor

* Add status binary sensor and text sensor
2023-11-13 17:14:21 -06:00
DigiH
45bd18b03c [BT] BM2 Tracker addition and Discovery adjustment (#1765)
* BM2 as Tracker additions

* BM2 discovery update
2023-10-12 15:29:20 -05:00
Florian
3470882da0 [DISC] Add BT scan duration parameter auto discovery (#1762)
* [DISC] Add BT scan duration parameter auto discovery

* Add doc
2023-09-30 07:26:57 -05:00
Florian
7a2bb04a1b [DOCS] Theengs Plug highlight and SEO improvements (#1730)
* [DOCS] Theengs Plug highlight

* Add alt content for images and description
2023-08-11 13:04:52 -05:00
Florian
5ff086a296 [BT] Fix BLE MQTT command trigger a reset (#1698)
Problem introduced with the bump of ESP32 platform from 3.5.0 to 6.1.0
2023-06-26 05:13:41 -05:00
DigiH
561de90c94 [DOCS] Typo fixes (#1688) 2023-06-16 20:45:31 +02:00
DigiH
7df72f6983 [DOCS] formatting fix (#1651) 2023-05-22 14:52:05 -05:00
Florian
b1667190d5 [BLE] Add moving beacon detection (#1636) 2023-05-11 07:42:52 -05:00
Florian
b806ea9354 [DOCS] Fix tip note for switchbot (#1577) 2023-03-26 10:29:23 -05:00
Florian
404b224871 [DOCS] Update presence detection docs (#1575) 2023-03-24 19:54:21 -05:00
Florian
85650a6204 [BT] Device tracker presence detection (#1548)
Add device tracker detection and automatic creation following HA discovery convention
So as to trigger the away state, add an offline status to the identified BLE trackers
2023-03-20 07:31:00 -05:00
Florian
3ceb19f7be [DOCS] Improbe BLE gateway guide (#1530)
Add images, intro and reorganize sections
2023-03-13 19:28:32 -05:00
DigiH
c7547044fe Scan_Duration as MQTT command (#1516)
Scan_Duration as runtime MQTT command 'scanduration'
2023-03-10 15:12:08 -06:00
DigiH
95b749833c [BT] Known Random MAC address filtering (#1514)
* [BT] Random MAC address filtering

Random MAC address filter with runtime boolean setting
randommacs

* APPLE_CONT added to discovery and data process
2023-03-09 09:35:16 -06:00
DigiH
bc9311828a [DOCS] Adaptive scanning addition (#1468) 2023-02-22 07:13:50 -06:00
Florian
7c0fafd48e [BT] Continuous active scanning when adaptive scanning is false (#1448)
Set `interval` and `intervalacts` to the minimum when adaptive scanning is deactivated. When the user encounters a situation on which a device is not detected due to adaptive scanning, we set the gateway to continuous active to maximize the chance to detect the device.
2023-02-10 17:05:52 -06:00
Florian
f283327998 [BT] - Adaptive scan (#1440)
* [BT] Adaptive scan

Add adaptive scan to avoid users setting parameters and deduct automatically the scan requirements from the list of devices

---------
Co-authored-by: DigiH <github@digih.net>
2023-02-07 17:36:18 -06:00
DigiH
05f83c5f80 Active Scan Interval (#1433) 2023-02-07 12:25:40 -06:00
DigiH
bd9dcf1ec8 Tag properties visibility (#1432)
Tag properties visibility to be included with "pubadvdata" setting
2023-02-01 19:41:01 -06:00
Florian
4e885a7cd0 [BT] Regular BT connect based on time (#1423)
instead of number of scans, as users changing the interval to continuous scanning may have connect attempts to frequently
2023-01-26 09:28:16 -06:00
Florian
a3603c6a78 [BLE] Simplify the publication of advertisement data (#1408)
With only one control that enables the publication of all the advertisement data, default: false
Note that if the sensor is not recognized, we will no longer publish its advertisement data unless the control is true. This is for the sake of traffic reduction.
2023-01-20 14:30:11 -06:00
DigiH
8a767cf4b8 Typo fixes (#1381) 2023-01-08 07:43:15 -06:00
Florian
8dde777fb7 [BLE] Add dynamic active scan runtime setting (#1360)
This commit add the capability to set passive scanning during runtime, versus buildtime before, so as to improve energy consumption of sensors when they don't require active scanning
2022-12-14 17:03:34 -06:00
Florian
bf38bb52f6 Remove HM10 support (#1282)
Removing HM10 support as announced in the forum
2022-10-10 20:34:12 -05:00
Bad
312ef858c1 Modify new BT config using MQTT (#1259)
* Move BTConfig_default to ZgatewayBT.ino as BTConfig_init()

* Remove unused function declaration & typo

* Move bleconnect outside of ifdef ESP32

* Add new parameters to json payload on MQTTtoBT/config
And move them to function BTConfig_fromJson()

new parameters: [presenceEnable, presenceTopic, presenceUseBeaconUuid, extDecoderEnable,
extDecoderTopic, filterConnectable, pubKnownServiceData,
pubUnknownServiceData, pubKnownManufData, pubUnknownManufData,
pubServiceDataUUID, pubBeaconUuidForTopic]

* Add ignoreWBlist as new configuration parameter

* Keep hasspresence keyword (do not use presenceEnable)

* Documentation

* Typos & Optimizations arround RemoveJsonPropertyIf

* Template for BT config update

* Ensure BTConfig.minRssi sign does not matter

* Report configuration change on topic /commands/BTtoMQTT/config

# Conflicts:
#	main/ZgatewayBT.ino

* Add BT config bool commands (init, load, erase & save) to persist config parameters

* Documentation

* Fix pre-compilation issue

* Fix Code Format

* Use Preference only for ESP32

* Update Doc
2022-09-03 15:08:07 -05:00
DigiH
c4300a002f MQTT-MAC-IP-mDNS (#1245) 2022-07-19 12:10:51 -05:00
DigiH
1c62d74e56 Typo-fixes (#1244) 2022-07-19 07:53:38 +02:00
DigiH
0f57eddb01 typo fixes (#1243) 2022-07-18 11:30:37 -05:00