Commit Graph
209 Commits
Author SHA1 Message Date
Northern ManandNorthern Man 55dd571c49 Clean up of redundant compiler definitions (#913)
CC1101_FREQUENCY
ONBOARD_LED
RF_RECEIVER_GPIO

Co-authored-by: Northern Man <sgracey@Heisenberg.local>
2021-04-01 17:16:14 -05:00
Florian f01b7184a0 Resolve issue with wifi reconnection on M5Stack boards (#907)
And update libraries
2021-03-27 09:26:15 -05:00
Florian cd55f0dfd5 Add CGPR1 Qingping PIR and luminance sensor (#905) 2021-03-25 19:40:35 -05:00
Florian b9151bb6ac BLE low power mode and settings optimization (#902)
* BLE low power mode and settings optimization
-low power mode settings example
-take into account parameters following #891
-add esp32dev-ble-cont for door/window sensor listening

* Disable WDT during scan

* update esp32 arduino framework
2021-03-25 18:53:47 -05:00
Florian 863a56b389 Change ESP8266 Json Buffer Size (#903)
768 causes core dump so go back to 512
2021-03-22 19:05:41 -05:00
Florian d0489d1a85 Correct uptime display on trace (#904)
and set unit to s
2021-03-22 19:05:14 -05:00
Florian 221afa98b0 Change uptime calculation method (#901)
and revert #897
2021-03-18 15:07:59 -05:00
Florian ad72211d71 Add CGH1 Qingping Cleargrass window and door sensor (#899) 2021-03-16 19:24:35 -05:00
Florian 46e1ee422a Increase json buffer (#898)
discovery msg and systomqtt require now a bigger buffer
2021-03-16 17:41:50 -05:00
Florian 0e8b619bb9 [BREAKING] Change uptime unit from seconds to minutes (#897)
* Change uptime from s to min

to prevent going to the max of unsigned long
2021-03-14 19:31:53 -05:00
Florian 625f7f358b Publish SYStoMQTT scan count (#896) 2021-03-14 15:05:09 -05:00
Florian 8afb1c5223 Enable deactivation of BLE connect (#895)
Useful if you want to scan continuously for BLE device, in this case you should deactivate the BLE connect to avoid concurrency between scan and connect
2021-03-14 12:53:26 -05:00
Florian e2feb0bc24 Wifi reconnection improvements (#894)
Deep sleep should be activated only when failing connect on low power mode.
Correct reconnection on esp8266. Unfortunately WiFi.reconnect(); prevent the esp8266 from reconnecting, so we reduce its scope to ESP32
2021-03-12 14:54:41 -06:00
Florian c3cdd8f04c Remove wifi protocol auto change (#882)
#575
so as to see if in conjunction with the platform update we get a better stability of wifi
2021-03-11 15:55:21 -06:00
Florian ac9e8347ed irremote esp8266 bump to 2.7.15 (#892)
* irremote esp8266 bump to 2.7.15

* lint format
2021-03-11 15:53:28 -06:00
Northern ManandNorthernMan54 57bc108da4 Initial pull request for rtl_433 support (#886)
* Initial pull request for rtl_433 support

Co-authored-by: NorthernMan54 <sgracey@Bart.local>
2021-03-11 12:43:05 -06:00
Csiki bcd45d68f4 Minor BT refactor (service_len) (#890) 2021-03-10 17:48:08 -06:00
Csiki fd0518ae46 Support pvvx firmware custom type messages from LYWSD03MMC (#889) 2021-03-10 15:09:06 -06:00
Florian 48791b2c88 Correct parameters count on discovery (#887) 2021-03-08 18:03:03 -06:00
Florian 244dc903b0 Add CGDK2 BLE temperature and humidity BLE sensor (#884)
* Add CGDK2 BLE temperature and humidity BLE sensor

and remove batt from CGD1 (this sensor does not advertise battery value)
2021-03-04 19:26:50 -06:00
Florian a6fb17595e [BREAKING] remove tem key (#883)
* [BREAKING] remove tem key

we rely now on tempc and tempf only
2021-03-03 18:38:37 -06:00
Csiki ebd6bb8031 Bt discovery fix (#880)
* launchDiscovery fix for esp32 (sending the discovery mqtt messages on the main core)
2021-03-02 17:13:14 -06:00
Florian cd282596e0 Correct advanced network parameter setup on ESP (#878)
#790
2021-02-26 19:44:20 -06:00
Florian 28ff1a553a Correct build issue when discovery is disable (#877)
#875
2021-02-26 15:47:38 -06:00
Florian 452233258f Add check on stabilisation fo weight and LBS handling (#868) 2021-02-26 15:08:13 -06:00
Csiki 1b7f83c014 BT lockless queue (#867)
* Lockless json queue for ESP32 BT to avoid SYStoMQTT concurrency issue

* BT haRoomPresence handle with lockless queue
2021-02-26 14:30:55 -06:00
Florian 4431af462f Correct RF2 gateway auto discovery (#874)
#786
2021-02-22 19:44:44 -06:00
Charles 14fedfdf53 Added TTGO-T-Beam board + option to send ADC values in volt (#863)
* Added Voltage measure option
* Added TTGO Beam with Battery voltage measure
2021-02-06 12:47:52 -06:00
Florian 557cf340db Improve low power mode (#859)
-add switch on HASS
-avoid issue when using ESPWifiManualSetup
-Correct issue on gateway discovery on first connect
-stop processing during discovery
2021-02-05 15:19:43 -06:00
Florian 2d377a1c3f Auto discovery deactivation at runtime by MQTT command (#856)
and switch automatic creation for it in HASS (by autodiscovery :-)
2021-01-31 13:41:22 -06:00
Florian e8b4c63c6c Increase TimeLedON to 1s (#857)
#534
2021-01-30 16:29:09 -06:00
Florian 717bdb1f06 Disconnect after a timeout (#842)
So as to save the devices battery
2021-01-30 15:32:53 -06:00
Chris van Marle 2c6526fcdb Publish state to same channel as received signals (#855)
Received signals are published to the subjectRF2toMQTT topic (/RF2toMQTT). However, echos of mqtt messages are published to the topic subjectGTWRF2toMQTT (/433toMQTT). That seems quite inconsistent.
2021-01-30 14:53:45 -06:00
Nikolay Chapkin 3884630727 Fix ClearGlass CGG1 and CGP1W sensors recognition (#849)
* Fix ClearGlass CGG1 and CGP1W sensors recognition

* CGG1 parsing refactoring
2021-01-29 16:34:28 -06:00
Northern Man 09eab93593 Update to SmartRC-CC1101-Driver-Lib@^2.5.4 and removal of workaround from #847 (#851)
Tks to @LSatan workaround no longer needed
https://github.com/LSatan/SmartRC-CC1101-Driver-Lib/issues/65
2021-01-26 16:29:37 -06:00
Northern Man 25ea909c08 Support for changing CC1101 Receive and Transmit Frequency (#847)
* Support for changing CC1101 Receive and Transmit Frequency

* Docs

* Resolve feedback

* Update Somfy module to use Global receiveMhz

ELECHOUSE_cc1101.SpiStrobe(CC1101_SIDLE); // Idle receiver prior to
setting a new frequency
2021-01-22 05:53:39 -06:00
白月秋见心 d84f64b23f Feature/add shtc3 (#843)
* Add SHTC3

* remove adc config
2021-01-05 19:17:39 -06:00
Carlos Duarte Do Nascimento (Chester) e4865749b9 Declare sendIdentifiedPRotocol so MQTTtoIR finds it (#840)
* Declare sendIdentifiedPRotocol so MQTTtoIR finds it

Avoids this compilation error on Arduino IDE 1.8.13:

```c
ZgatewayIR:258:90: error: 'sendIdentifiedProtocol' was not declared in this scope
         signalSent = sendIdentifiedProtocol(protocol_name, data, hex, valueBITS, valueRPT);
```                                                                                          ^

* Remove trailing spaces

I *think* that was the linter complaint (given it shows no message, and before/after parts in diff are visually identical
2020-12-31 12:41:39 -06:00
Thibault Cohen 0c01ded583 HASS Discovery - Create BLE devices automatically to gather entities (#826)
Create automatically devices into Home Assistant through MQTT auto discovery

Before, only entities were created automaticaly and they were not linked to a device.
2020-12-22 06:31:13 -06:00
Leon Kiefer a7575b2c3a added ZactuatorSomfy (#816)
* added ZactuatorSomfy
* added Somfy RTS docs
2020-12-13 12:46:10 -06:00
Florian e17b5b9c9d Add low power to M5StickC Plus (#830) 2020-12-06 16:59:36 -06:00
Florian d450c505f2 Add M5 SYS parameters to auto discovery (#829) 2020-12-06 13:23:00 -06:00
Florian 6ae09d8bb6 Add board M5Stickc Plus (#828) 2020-12-06 12:06:50 -06:00
Florian d172bed5ae Implement multi gateway discovery (#819)
Enable HASS to retrieve data of remote sensors from multiple gateways by using wildcards for the location (instead of default:home) and the gateway name (instead of default:OpenMQTTGateway)
2020-12-03 06:11:11 -06:00
Thibault Cohen 979211ab7e Add Qingping CGP1W support (#820) 2020-12-02 19:40:57 -06:00
jumika 7e7b9a6f29 ifndef condition for time_avoid_duplicate (#818)
Allow time_avoid_duplicate to be configured by build_flags.
2020-12-01 15:53:17 -06:00
Florian b2c05156b2 Srfb bugs (#807)
* Correct buffer processing

was missing an instruction due to a previous refactoring

* Correct duplicate condition

* Avoid publishing \n into the raw value

* Merge extract_char and value_from_service_data functions
2020-11-28 17:16:15 -06:00
melyux fd2d25bf31 Add ability to specify repeats for raw Pilight strings (#803)
* Add ability to specify repeats for raw Pilight strings

* Updated RF Pilight doc to add raw transmission tut

Added information about transmitting raw messages using the MQTTtoPilight topic, including using the new repeats functionality. Fixed some scattered English mistakes.
2020-11-24 21:58:03 -05:00
adamrbell 5890bf7be6 Fix for CGD1 detection (#810)
Before the fix:
{"id":"58:2D:34:50:A0:D0","name":"Qingping Alarm Clock","rssi":-82,"distance":11.4949,"servicedata":"080cd0a050342d580104c0007c02"}
The servicedata string does not match any pattern so is not parsed

After the fix:
{"id":"58:2D:34:50:A0:D0","name":"Qingping Alarm Clock","rssi":-83,"distance":12.61001,"model":"CGD1","tem":19.2,"tempc":19.2,"tempf":66.56,"hum":63.5}
The parser is invoked and the data is output as expected.

There are probably too many brackets (I'm not a C dev) and I can't test on whatever version of CGD1 broadcasts 080caf or 080c09 servicedata strings.
2020-11-24 10:19:28 -06:00
Tiutiu Marius Cristianandmtiutiu a6e6d98262 [ESP32 OTA] Critical fix - Make sure that the BT coreTask gets suspended when not needed (#795)
* make sure that coreTask gets supended when not needed

Co-authored-by: mtiutiu <marius.tiutiu@softvision.com>
2020-11-06 14:02:05 -06:00