Commit Graph
1028 Commits
Author SHA1 Message Date
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
BadandFlorian 9120d06932 Mutate relevant compilation variables into config (#1256)
* Move minRssi in config_BT.h
Move var definitions next to compilation var definitions

* Introduce UseExtDecoder when is def MQTTDecodeTopic
Replace #ifdef MQTTDecodeTopic by #if UseExtDecoder

* Rename AttemptBLECOnnect to AttemptBLEConnect

* Create a struct (BTConfig_s) for BT configuration data
Create a default config for BTConfig_s (BTConfig_default) based on defines
Create a global variable (BTConfig) to hold live BT configuration data and initialize it
Move bleConnect to BTConfig

* Move BLEscanBeforeConnect in BTConfig

* Move BLEinterval in BTConfig

* Move PublishOnlySensors in BTConfig

* Move hassPresence in BTConfig

* Move minRssi into BTConfig

* Introduce presenceTopic into BTConfig

* Move MQTTDecodeTopic as extDecoderTopic into BTConfig

* Mutate UseExtDecoder as runtime var BTConfig.extDecoderTopic

* Remove ServicedataMinLength (unused)
Always declare AttemptBLEConnect & BLE_FILTER_CONNECTABLE

* Mutate BLE_FILTER_CONNECTABLE as runtime parameter BTConfig.filterConnectable

* Mutate pubKnownBLEServiceData as runtime var in BTConfig
Mutate pubUnknownBLEServiceData as runtime var in BTConfig
Mutate pubBLEManufacturerData as runtime var in BTConfig
Mutate pubUnknownBLEManufacturerData as runtime var in BTConfig
Mutate pubBLEServiceUUID as runtime var in BTConfig

* Mutate useBeaconUuidForTopic as runtime var in BTConfig
Mutate useBeaconUuidForPresence as runtime var in BTConfig

* Small optimization

* Formatting of config_BT

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2022-08-20 14:28:25 -05:00
Bad 8f9db357e9 Initial doc for Jeedom integration (#1255)
* Initial doc for Jeedom integration

* Fix Daemon-OK img name
2022-08-13 09:32:22 -05:00
FlorianandDigiH 63e3dd9530 Add OpenHAB3 tutorial and BLE binary (#1254)
* Add OpenHAB3 tutorial and BLE binary

* Small text changes

Just a few small text changes, also writing out OMG as OpenMQTTGateway, probably clearer for new to OMG users.

Co-authored-by: DigiH <github@digih.net>
2022-08-13 08:57:08 -05:00
Amy Nagle b17247c049 Add missing macType param to NO_DEVICE_FOUND (#1253)
* Add missing macType param to NO_DEVICE_FOUND

* Simplify MAC address initialization
2022-08-09 05:19:19 -05:00
DigiH 25029c7c85 Devices Clarification (#1252) 2022-08-08 23:01:53 +02:00
FlorianandDigiH fbab2427e4 Bump Theengs Decoder to v0.6.2 (#1248)
* Bump Theengs Decoder to v0.6.1

* Differentiate a FASTLed environment

* remove BT from the nodemcuv2-all-test env as it is already tested into nodemcuv2-ble

* Decoder 0.6.2

Co-authored-by: DigiH <github@digih.net>
2022-07-29 13:04:04 -05:00
Florian 9ea985cf55 Add Theengs links (#1249) 2022-07-28 16:48:41 -05:00
dependabot[bot] 8012854349 Bump terser from 4.8.0 to 4.8.1 (#1246)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-24 18:06:12 -05:00
DigiH 3088d800e0 undecoded env renaming (#1247)
environment/binary build env:esp32dev-ble-mqtt-decode renamed to esp32dev-ble-mqtt-undecoded for clarification
2022-07-24 03:25:37 +02: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
Bad 612c3f6322 Fix wrong base topic if gateway_name is changed (#1242)
* Rectify and match parameters sizes.
Increase mqtt_topic_max_size from 100/50 to 150/75 bytes

* Faster and safer compare in cmpToMainTopic()
2022-07-19 07:52:46 +02:00
DigiH 0f57eddb01 typo fixes (#1243) 2022-07-18 11:30:37 -05:00
Bad 7f4e27a664 Fix presence topic (#1238) 2022-07-17 04:59:40 -05:00
DigiH c04c62916f ble-datatest-environment (#1235) 2022-07-15 04:37:04 -05:00
Grégoire SeuxandGrégoire Seux 537583e505 Configure LoRA gateway parameters at startup (#1234)
Without this (and without sending an initial MQTT message to the gateway
to configure it) messages are not necessarily received if parameters are
different from firmware defaults.

This patch helped at least two users:
- https://community.home-assistant.io/t/awesome-lora-soil-sensor/304351/23
- https://community.home-assistant.io/t/awesome-lora-soil-sensor/304351/18

Change-Id: Ia65ee5780b56f81fc73662c8779b79083805009b

Co-authored-by: Grégoire Seux <grego_openmqttgateway@familleseux.net>
2022-07-13 23:49:31 +02:00
Bad 9154e6cc46 Typo in commands/MQTTtoSYS/config (#1236) 2022-07-13 23:47:06 +02:00
DigiH 0d4909d44d Typo fixes (#1233) 2022-07-13 04:49:08 -05:00
DigiH a388f14e75 Publishing/receiving inconsistencies fix (#1229)
* Publishing/receiving inconsistencies

* General platformio.ini changes

General platformio.ini changes to allow for publishing/receiving settings to be defined in User_cofig.h instead of them only working if defined in the environments. Kept separate so far for discussion.
2022-07-01 07:17:02 -05:00
spinpwr 3bd1d31fcc Add command example to flash with esptool.py (#1230)
If you are on Linux and don't want to (or can't) install Chrome based browser to flash you can use the Python based flash tool from Espressif.
It took me some searching and reading the docs of esptool to get the commands to work, then I thought I can save this time for others by adding the relevant info to this how to.
2022-06-29 12:15:15 -05:00
DigiH d62083a788 Lora band define (#1231) 2022-06-29 12:14:18 -05:00
Florian 6efc90b19f Fix default env undecoded topic and doc changes (#1227)
* Fix default env undecoded topic

as BTtoMQTT is not automatically added

* Fix links and doc
2022-06-20 19:04:11 -05:00
Bad 77b022505c iBeacon: Flag to use UUID in topic or presence (and fixes) (#1226)
* Add useBeaconUuidForPresence flag (disabled by default)

* Change MQTTDecodeTopic to include only the sufixe

* Rename mac_address to topic and remove unnecessary variable mactopic

* Add useBeaconUuidForTopic flag (disabled by default)

* Fix jsonPublishing #ifdef -> #if

* Revert commit 02e2d03
2022-06-19 08:22:15 -05:00
h2zero 25b8123ff6 Add option to offload decoding to an external gateway over MQTT. (#1216)
* Add option to offload decoding to an external gateway over MQTT.

* Change decode topic and add to config_bt
2022-06-12 17:44:51 -05:00
steadramonandPaul 5b697e0306 Add Pilight limitProtocols support (#1223)
* Add ability to limit protocols

* Make serial feedback notice

Co-authored-by: Paul <steadramon@local>
2022-06-05 11:47:56 -05:00
dependabot[bot] 23351226ea Bump eventsource from 1.1.0 to 1.1.1 (#1222)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-05 10:04:24 -05:00
Florian 05a277cd2e Bump theengs decoder to v0.4.0 (#1218) 2022-05-24 16:31:53 -05:00
Riceball LEE 8bced299dd feat: upgrade to IRremoteESP8266@2.8.2 (#1214) 2022-05-13 14:56:02 -05:00
Florian bfed83bbc9 Update certificate in the examples for OTA (#1213)
update certificate to the root authority
2022-05-13 14:55:24 -05:00
Florian bf99823861 [DOCS] Add switchbot control 2022-05-04 06:15:17 -05:00
Florian f4700be523 Fix discovery entity id for DT24 and LYWSD03MMC (#1210) 2022-05-04 06:08:20 -05:00
Florian 1916f62895 Auto discovery: Recover MiFlora discovery and remove model if from entity id (#1209)
* Recovery MiFlora discovery

after https://github.com/theengs/decoder/pull/107

* BREAKING remove model_id from entity id
2022-05-03 19:45:28 -05:00
DigiH f8918c73ff NimBLE-Arduino version update (#1208)
NimBLE-Arduino version update
2022-05-03 16:08:46 -05:00
h2zero 8d6acbee12 Add Switchbot support and discovery. (#995)
* Use a task to process immediate BLE actions to prevent MQTT disconnection if the action takes too long to complete.

* Add state_on and state_off parameters to createDiscovery
2022-04-30 09:16:06 -05:00
dependabot[bot] a15a1c0851 Bump async from 2.6.3 to 2.6.4 (#1207)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-30 09:15:10 -05:00
Joseph Perry 4b872bebbe Add ability to specify pulse length in ZactuatorONOFF (#1200)
* Add ability to specify pulse length in ZactuatorONOFF

Add an additional parameter to the MQTT message to control the actuatorONOFF pulse length e.g. `mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":"high_pulse","pulse_length":25}'`

* Simplify initialization of pulselength
2022-04-20 02:55:14 -05:00
Northern Man 8d902962e5 Update ZgatewayPilight.ino (#1202) 2022-04-17 05:52:18 -05:00
Florian 141e33e7c6 Bump theengs decoder to 0.3.0 (#1201) 2022-04-16 18:01:16 -05:00
Florian c7034356a5 [DOC] Readme link fix 2022-04-16 16:41:34 -05:00
Florian 3fb34af2ce [DOC] Configure the favicon properly (#1195) 2022-04-04 17:36:03 -05:00
CY e43f7b3c15 Add Wifi BSSID as SYSdata (#1194)
* Add Wifi BSSID as SYSdata

Publish BSSID as a SYS sensor.
2022-03-30 23:56:34 -05:00
dependabot[bot] 4fc6273fd3 Bump minimist from 1.2.5 to 1.2.6 (#1193)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 16:18:01 -05:00
Florian a243b12397 Add links to Theengs gateway (#1190) 2022-03-20 10:14:39 -05:00
Florian fb56162c52 Remove servicedatauuid only when model is present (#1186)
keep it if we haven't decoded the message
2022-03-15 17:44:39 -05:00
Florian 3d2b15bd6c Remove auto discovery for Ibeacon, GAEN and MS CDP (#1183)
to avoid creating hundred of entities and devices in the controller due to their changing MAC addresses
2022-03-13 09:38:38 -05:00
kroman666 a1846faee9 Update platformio.ini (#1182)
typo in [env:esp32-wt32-eth01-ble-eth] #1181
2022-03-09 18:12:08 -06:00
Florian 08d8d108d2 Bump Theengs Decoder version (#1178)
New IBT-2X version
XMTZX04HM extension
XMTZX05HM extension
Add temperature decoding to JQJCY01M
Fix IBT 6XS
Replace lbs by lb
Add SOLIS 6 Probes BBQ
Add temp to JQJCY01M
Update XMTZC05HM to include XMTZC02HM
2022-03-06 16:26:45 -06:00
Amy Nagle 0e45f7cca0 Fix discovery of connectable devices (#1173) 2022-03-04 16:22:35 -06:00
dependabot[bot] 9059547d12 Bump url-parse from 1.5.7 to 1.5.10 (#1174)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-26 14:20:52 -06:00