Commit Graph
19 Commits
Author SHA1 Message Date
1technophile 56bfef8e9c set BLE scans interval per mqtt and on demand BLE scans
#373
to change the BLE scan interval publish a payload {"interval":66666} in
ms to "home/OpenMQTTGateway/commands/MQTTtoBT/set"
to generate a scan publish a 0 interval payload {"interval":0}
2019-04-28 15:06:23 +02:00
Florian 60f68d00f4 publish discovery for sensors BLE once per run, add ble white and black list
Avoid publishing auto discovery on a time basis
publish auto discovery only one time per BLE sensor
add BLE white and black list implementation
set black list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"black-list":["012314551615","4C6577889C79","edfrgtyjulik"]}'
set white list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"white-list":["012314551615","4C65A5553C79","edfrgtyjulik"]}'
2019-03-18 23:29:47 +01:00
Florian c37a1d28ee Enable to switch HM1X led by a macro
#357
if //#define HM_BLUE_LED_STOP true uncommented
the HM1X led is off
2019-02-15 20:58:40 +01:00
Florian 133e9cd33a Mqtt discovery for ha (#323)
* MQTT discovery factoring

* add DHT discovery

* BME topic macro change

* add sensors to ha discovery

* correct a comment typo #327

* let the possibility at buildtime to don't publish service data

* reduce string usage

* change MQTT ONOFF actuator to ON OFF commands instead of true false

* add ZactuatorONOFF discovery

* add simple publishing for GPIO input

* Add RF switch and gateway discovery
2018-12-16 17:05:30 +01:00
animavitis a74eb76931 fix ESP32 ble (#304)
* remove redundant code for home presence

* hopefully fix ESP32 BLE hangs

* basic support for duplicate detection when JSON publishing is active
2018-11-09 22:19:02 +01:00
Florian d8dba15a81 Publish refactoring (#298)
* factoring of the publishing function
* integration of json publishing to MQTT
* receiving and transcode json messages from mqtt
* replace the TRACE runtime condition by a buildtime one so as to decrease program size
* remove retainFlag parameter not necessary for the moment
* Increase the scope of tests for arduino mega and esp32
* Update arduinojson library to 5.13.3
* add macros to choose between simple or json publishing or both
* differentiate build test for ATmega2560
* correct wrong sprintf definition
* change IDE version for continuous integration
* let default warning level in arduino ide
* correct pins for ESP32
* reorganize user_config
2018-11-05 22:02:27 +01:00
animavitis f77df7347f Add Home Assistant MQTT room presence support (ESP32 only) (#294)
* Add Home Assistant MQTT room presence support

ESP32 only
2018-11-02 08:30:33 +01:00
f-reiling f7eb0b1921 Added decode for battery level and combined temperature/humidity (#265) 2018-09-09 21:54:21 +02:00
Florian e0fe3b721b add MQTT publishing of service data from BLE devices (#264)
* add MQTT publishing of service data from BLE devices

* add service data publishing to HM1X setups
2018-09-09 10:45:07 +02:00
Florian 6204e7caa1 per fedault publish rssi into mac topic
#201
and comment the mac + rssi behaviour
will be put per default on next version
2018-06-08 20:34:53 +02:00
Florian ec7cee8f3e publish rssi value to a dedicated mqtt subject
#201 and put defines for other sub subject names
2018-05-12 15:25:57 +02:00
Florian 7b56335a31 change default value of scanning time
The goal is to not be at a round value so as to avoid to "fall" at the same frequency of mi flora service data exposition and by the way retrieving always the same kind of value
2018-04-29 21:23:07 +02:00
Florian a7d61f0590 put home as a #define and add gateway name to all topics
#160
2018-04-04 23:57:18 +02:00
Florian 7c6e0ccf61 Esp32 compatibility (#145)
* esp32 init

* RF gateway ok with ESP32

* correct IR gateway compilation errors and test RF2 ok

* divide config per board type

* update test file according user_config

* differentiate variable type following IR libraries aka platforms

* implement BLE beacons detection with ESP32

* Implement multitasking on BLE gateway

* Library add and change core assignement

* change core assignement for BLE

* add mi flora value readings with ESP32

* adding some traces and removing unecessary comment

* correct compilation error due to pin assignement

* correct temperature float value and wrong mac adress rssi publishing

* add esp32 to CI

* correct esp32 ide retrieving

* correcting paths

* CI: correct architecture
* libraries update (irremote) and overwrite ble library files
2018-01-01 18:50:45 +01:00
1technophile 1158161a8d put per default the new code with mi flora integration
#100
2017-11-24 23:24:54 +01:00
1technophile d094ff3b74 code factoring and improvments
-code factoring by structure use
-present temperature without division per 10 need
-upper case for the mac adress
-correct rssi value
2017-11-10 23:56:09 +01:00
1technophile 26ecec3d86 Integration of mi flora sensor
#100 mi flora beta integration
not integrated per default, so as to enable mi flora reading you must
comment ZgatewayBT_stable into config_BT.h
2017-10-27 00:47:35 +02:00
1technophile 17a7294c94 moves some parameters to config files 2017-09-06 22:14:36 +02:00
Florian 441ab1c0b7 User config division (#97)
* some minor correction after coadcy checks

* Put serial communication speed as a parameter in user_config.h

* complete gateway file

receiving ok
sending ko
#32

* add rfm69 to CI

* change receiver key and minor improvments

#32

now ok on receiving and sending with RFM69

* add schema and tested pinout for RFM69/RF/IR wiring

#32

* RFM69 library add

* Implement newremoteswitchlibrary for KlikAanKlikUit / ClickOnClickOff protocol

#3

* add dependency for CI and link to the library

* compilation error for arduino correction

* Sketch size decrease

* remove nano from CI

* Divide user_config into one file per gateway/sensor for lisibility
2017-09-01 00:41:29 +02:00