Commit Graph
143 Commits
Author SHA1 Message Date
Florian cd91f6d66b Revert DHT library version (#1276)
due to Failed to read from DHT sensor error
2022-10-05 17:05:09 -05:00
Florian b323f25fda Bump Theengs Decoder (#1262)
to 0.8.0
2022-09-03 18:52:41 -05:00
DigiH b16fbcbef2 valueAsASubject to valueAsATopic inconsistency fix (#1260) 2022-09-03 18:51:52 -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
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
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
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
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 c04c62916f ble-datatest-environment (#1235) 2022-07-15 04:37:04 -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
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
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
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
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
Florian 141e33e7c6 Bump theengs decoder to 0.3.0 (#1201) 2022-04-16 18:01:16 -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
Florian 5eea3d45cc Bump theengs decoder version (#1158)
#1156
2022-02-05 12:41:14 -06:00
Florian 66c12d6e6b Add esp32-olimex-poe (#1157)
Add esp32-olimex-poe-iso
2022-02-05 11:02:59 -06:00
Amy Nagle 6dce04d65a Add TinyPICO board (#1154) 2022-02-04 14:46:00 -06:00
Amy Nagle 457a8f48a3 Fix OpenHAB discovery (#1153)
* Fix OpenHAB discovery

* Add test for OpenHAB discovery
2022-02-03 16:23:32 -06:00
h2zeroandFlorian 0a8458f156 Update decoder version. (#1151)
* Update decoder version.

* Add new devices and sort list

Co-authored-by: Florian <1technophile@users.noreply.github.com>
2022-01-27 15:48:29 -06:00
Florian ef41546c94 ESP8266: Fix partial erase of connection settings (#1150)
* Fix partial erase of connection settings

#1149

* Update WM version and add disconnect
2022-01-27 15:47:55 -06:00
Northern Man 5c8fd626ec Version update for rtl_433_ESP (#1152)
Just some minor code cleanup

* Rework OOK Receiver sample and rename directory to OOK_Receiver
* Cleaned up diagnostic logging
* Added logging of device decoder return codes ( DEMOD_DEBUG & RTL_DEBUG=4 )
* Fixed some compiler warnings
2022-01-27 05:43:57 -06:00
Florian 5a3d912682 Differentiate WM version (#1148)
to avoid a bug that show only the SSID and the password field on the ESP8266 uC
2022-01-25 20:18:49 -06:00
h2zero e838d3cee0 Remove std::string as the model id and use decoder enum. (#1143)
* Remove std::string as the model id and use decoder enum.

* Update decoder version

* Check model id is in decoder range when launching discovery.

* Add BLEconnect enum MIN/MAX
2022-01-24 20:09:15 -06:00
Florian 749c1592b4 Add M5Tough board (#1135) 2022-01-17 19:22:26 -06:00
Florian 42916f1028 Bump Theengs Decoder (#1131) 2022-01-15 18:28:26 -06:00
Florian d34559cb5b Bump Theengs Decoder (#1124)
Fix #1123
2022-01-10 16:40:32 -06:00
Northern Man cf0f53507d Library Update - rtl_433_ESP and smartrc-cc1101-driver-lib (#1122)
Includes the following updates to rtl_433_ESP:

1 - Workaround for cc1101 module going deaf after 24 hours, issue #16.
- By default the workaround is enabled, define NO_DEAF_WORKAROUND to remove the workaround

2 - Improved process for updating from rtl_433 for GitHub, almost totally automated.
- FYI - Their is a shell script in the tools subdirectory which does most of the heavy lifting required

3 - Updated device decoders to latest release of rtl_433
- They are now in align with rtl_433 release 21.12

4 - Updated r_api.c to prioritize ook demodulators - feature from rtl_433

5 - Created contrib directory for other device decoders to be merged into code base as part of the rtl_433 update process

6 - Bump library version to 0.0.3

7 - Tuned signal receiver logic and now throw away the first received byte. On testing this appears to dramatically reduce the number of unparsed signals.

8 - Fixed README feedback from @DigiH and updated the wording for 'PUBLISH_UNPARSED'. Also removed serial logging of unparsed messages unless 'PUBLISH_UNPARSED' is set

9 - Fixed gitignore so that the clone of rtl_433 is no longer part of the repository.

10 - Added new DEFINITION to enable rtl_433 verbose mode for a single device decoder. RTL_VERBOSE=##
2021-12-23 17:37:27 -06:00
Florian b4ae66e3fd Bump rcswitch (#1117)
#1108
2021-12-20 19:34:40 -06:00
Florian ce66cf0b81 Bump theengs decoder to v0.1.4 (#1113)
* Bump theengs decoder to v0.1.4

* Add new devices to doc
Govee H5102
Inkbird IBT-6XS
2021-12-15 19:49:14 -06:00
Florian 2d6f7c07cb Bump NimBLE Arduino (#1107) 2021-12-13 17:29:56 -06:00
Florian 7dc49165a0 Discovery with theengs decoder (#1106)
* Discovery with theengs decoder

* Add devices to doc

* Correct missing suffix for DT24
2021-12-11 11:54:08 -06:00
Florian dcbce352be AWS IOT compatibility
implement compatibility with Amazon Web Services IOT through an MQTT connection with certificates. (#1099)
2021-11-07 07:44:50 -06:00
Florian 26b3be0e6a Add board definition for 915mhz (#1098)
Before having a captive portal for config settings like requested in #1056 let's begin by a board definition for 915mhz
2021-11-06 05:27:52 -05:00
Florian 10f0d4cff4 Theengs decoder integration (#1092)
* Use Theengs Decoder for BLE device decoding
2021-10-31 16:51:05 -05:00
Florian 9a8606bd29 Fix self signed certificate function (#1084)
when using mqttset
and add the macro into a test environment
2021-10-05 17:58:01 -05:00
Florian 827357fb2d Update arduinojson link (#1078)
to avoid PackageException
2021-09-14 17:32:49 -05:00
h2zero ed4949f769 Update to use ArduinoJson 6+ (#1071) 2021-09-01 19:18:19 -05:00
Dave 149712b573 add script to compress firmware before ota upload (#1065)
* add script to compress firmware before ota upload

* add examples for OTA flashing/updating Sonoff RF Bridge

- use compress script to save space uploading firmware
- use "board_build.ldscript = eagle.flash.1m64.ld" to free some additional space for OTA flashing.
2021-08-29 06:27:23 -05:00
Florian f126a51608 Bump DHT libraries (#1058) 2021-08-28 20:21:56 -05:00
Florian 66a76abaf2 Add advised duration and time between reading (#1069) 2021-08-28 16:51:03 -05:00
Florian 0ede075843 Add esp32-wt32-eth01 ethernet board (#1064)
* Add esp32-wt32-eth01 ethernet board
2021-08-17 18:48:11 -05:00
Northern Man 94a7792863 Support for BME280 Temperature Correction (#1062)
* Support for BME280 Temperature Correction

The Spark Fun BME 280 library has support for Temperature correction, and this pull request implements the ability to apply a correction via a compiler directive ( BME280Correction ).
2021-08-16 19:35:02 -05:00
Florian 9ceb623770 Bump Nimble Arduino version (#1057) 2021-08-11 19:22:43 -05:00
Florian 61c1e20c0a Update boards platforms (#1054)
* Update boards platforms

* Keep ESP8266 platform to 2.6.3
waiting for https://github.com/puuu/ESPiLight/issues/62 to be corrected
2021-08-10 05:25:58 -05:00