Commit Graph

89 Commits

Author SHA1 Message Date
Toni Corvera e3d4b0c433 Add a docker-compose recipe 2022-02-07 02:18:50 +01:00
Toni Corvera c32104732c Loosened requirements 2022-02-07 02:01:44 +01:00
Oleksandr Kurbatov 1c928dc203
Merge pull request #3 from CWempe/mitempbt_new_mac
Add new MAC (58:2D:34:xx:xx:xx) to regexp for Xiaomi Mijia
2019-08-09 00:14:14 +03:00
Christoph Wempe 7fe9e78759 Add new MAC to regexp 2019-08-08 14:40:05 +02:00
Oleksandr Kurbatov 064eb9993e
Merge pull request #2 from aqualx/mitempbt
Mitempbt
2019-02-28 15:30:14 +02:00
Oleksandr Kurbatov 86c5f28b15
Merge pull request #1 from wojciej/patch-1
Fixing default base_topic to misensor based on implementation
2019-02-28 15:20:27 +02:00
wojciej f4ddf8429a
Fixing default base_topic to misensor based on implementation
Hey, thanks for your great work - I have started using this branch and I very much like it.
However I would like propose update of config.ini.dist:

In config.ini.dist there is the following information:

# The MQTT base topic to publish all Mi Flora sensor data topics under.
# Default depends on the configured reporting_method
#base_topic = miflora                   # Default for: mqtt-json, mqtt-smarthome
#base_topic = homie                     # Default for: mqtt-homie
#base_topic = homeassistant             # Default for: homeassistant-mqtt
#base_topic = v1/devices/me/telemetry   # Default for: thingsboard-json
#base_topic =                           # Default for: wirenboard-mqtt

So as log as I use mqtt-json the default toppic should be miflora.

While the default toppic is no longer **miflora** but **misensor** - what makes total sense cause we no longer use only miflora sensors - also it was already implemented in miflora-mqtt-daemon.py:

if reporting_mode == 'mqtt-homie':
    default_base_topic = 'homie'
elif reporting_mode == 'homeassistant-mqtt':
    default_base_topic = 'homeassistant'
elif reporting_mode == 'thingsboard-json':
    default_base_topic = 'v1/devices/me/telemetry'
elif reporting_mode == 'wirenboard-mqtt':
    default_base_topic = ''
else:
    default_base_topic = 'misensor'

Hope you dont mind my changes
2019-02-19 18:46:24 +01:00
aqualx ea3065342e * catch of unhandled crashes from underlying BLE wrappers 2019-02-07 14:57:35 +02:00
aqualx f30d397cd8 * Fixes for some crashes
* Minor fixes
2019-02-01 11:45:49 +02:00
aqualx c96b1bc5b1 Fixed crash due to unhandled bluepy.btle.BTLEDisconnectError exception 2019-01-31 12:14:18 +02:00
aqualx 3a7842eee9 Merge branch 'mitempbt' of github.com:aqualx/miflora-mqtt-daemon into mitempbt 2019-01-31 00:37:47 +02:00
aqualx 51ad7d6320 * added separate setting "period" per device type in config.ini
* switched library 'Mijia Bluetooth Temperature Smart Humidity' from mitemp_bt to mithermometer
* fixed schema generation for openHAB
* set 'retain=True' for mqtt messages for homeassistant-mqtt
* other minor fixes
2019-01-31 00:15:19 +02:00
Oleksandr Kurbatov aed49afe55
Fixed MAC address check for mitemp_bt sensors 2019-01-29 22:01:31 +02:00
Oleksandr Kurbatov 83afc34e57
Minor 2019-01-29 21:56:26 +02:00
Oleksandr Kurbatov a8c550953a
minor changes 2019-01-29 14:12:36 +02:00
Oleksandr Kurbatov 8ac6342d5b
minor changes 2019-01-29 14:11:36 +02:00
Oleksandr Kurbatov abc43a3c13
New device support
Added information about Xiaomi Mijia Temperature and Humidity Sensor
2019-01-29 14:03:03 +02:00
aqualx 4c41adf740 minor changes 2019-01-29 00:22:01 +02:00
aqualx ddb1b8b5eb Added support for 'Xiaomi Mijia Smart Temperature and Humidity Sensor' 2019-01-28 23:44:58 +02:00
Oleksandr Kurbatov 1e1a7424fd
Update README.md 2019-01-16 18:39:43 +02:00
aqualx d60071f7aa Added warning when reporting_mode set to 'wirenboard-mqtt' and base_topic defined in configuration file. 2019-01-15 13:51:58 +02:00
aqualx affeac7b80 Added support for Wiren Board MQTT Conventions 2019-01-14 00:40:02 +02:00
Markkuuss 1945e541bd Update paho-mqtt to 1.4.0 (#67) 2019-01-10 21:18:33 +01:00
Artur Neumann 58aeb016fc Add support for ThingsBoard (#63)
* posibility to upload MQTT data to thingsboard

* use reconnect for thingsboard-json

* update readme and config example

* Update README.md

* Update config.ini.dist

* Update config.ini.dist
2018-12-27 10:53:47 +01:00
krikk 699ec01144 Give hint to install JSONPath Transformation (#61)
* give hint to install JSONPath Transformation

great guide, but i had not installed JSONPath Transformation (on my basic install), so the generated items did not work...

* Update README.md

* Update README.md

* Update README.md
2018-11-30 14:13:03 +01:00
Skatun 52e4658b40 Add extra sensor intro section to README.md (#24)
* Update README.md

Added some background info about sensors

* Update README.md

* Update README.md
2018-06-17 20:11:19 +02:00
LarsAC b795a42c50 Add Dockerfile and docker usage details (#43)
* Added config dir to simplify docker handling

* Added a Dockerfile

* Implement suggested fix for issue #39

* Improved documentation

* Added documentation on homeasssistant-mqtt reporting mode

* Use local directory as default for config

* Update README.md
2018-06-17 20:03:15 +02:00
William Hughes 4888937f56 Stop the daemon from crashing if connection to a MiFlora device fails
Fixes #39
2018-06-17 19:58:03 +02:00
Alex Barcelo 04aeeba8c2 Add config mentioning of the `homeassistant-mqtt` reporting method (#47)
* Docs for `homeassistant-mqtt` reporting method

The `homeassistant-mqtt` is already implemented and is a valid `reporting_method` value, but it was not documented.

Adding a brief explanation of it in the example `config.ini`. I realized that the project `README.md` already mentions Home Assistant.

* Update config.ini.dist
2018-06-17 19:56:15 +02:00
William Hughes 59bb336042 Fix HomeAssistant autodiscovery not working with HomeAssistant v0.69+
Fixes #42
2018-06-17 19:50:50 +02:00
Alex Barcelo 02d4aaaee4 Fix incorrect use of `get` for a boolean field (#46)
Current implementation was failing if the config.ini included an explicit `false` --it was read as a string and thus a `'false'` as a string was `get`ted and it was considered `True`.

The `enabled` flag of the daemon was correctly using `getboolean` already.
2018-06-17 19:47:29 +02:00
muhkuhgh 9cf5482e93 Update requirements.txt for miflora lib v0.4 (#38) 2018-04-21 18:53:20 +02:00
muhkuhgh 20aafd324f Switch backend imports to miflora lib v0.4 (#37) 2018-04-21 18:52:52 +02:00
chrostek d3e23cc130 Restart the daemon after a crash (#36) 2018-04-18 21:16:23 +02:00
Norbert Bartels 16c7bf1067 Switch over to miflora lib v0.3 (#31) 2018-04-01 18:18:36 +02:00
Thomas Dietrich a7a474b196
Update README.md 2018-01-09 19:23:22 +01:00
William Hughes 4a0d7f4022 Add support for creating sensor entities in HomeAssistant
This uses the MQTT Discovery component in HomeAssistant to create
sensors for each property of each Mi Flora device

See https://home-assistant.io/docs/mqtt/discovery/ for details
2018-01-09 19:20:07 +01:00
William Hughes c6fdee7819 Add an option to enable MQTT-over-TLS 2018-01-09 19:14:03 +01:00
Sebastian Raff 7c117ef447 Add mqtt-smarthome to readme, add authors, add config comment for base_topic (#9)
* reporting_method = mqtt-smarthome

* changes as discussed

* add mqtt-smarthome to readme, add authors, add config comment for base_topic
2017-10-24 19:10:13 +02:00
Thomas Dietrich 7bf07b6ffc Shift to stable miflora library version for now 2017-10-16 14:36:46 +02:00
Sebastian Raff c275a279f4 Add reporting mode mqtt-smarthome (#7)
* reporting_method = mqtt-smarthome

* changes as discussed
2017-09-12 14:01:57 +02:00
nohum c57ae3d641 Support selection of bluetooth adapter 2017-08-31 22:29:31 +02:00
Thomas Dietrich c3493aeeda Add gen-openhab info to README 2017-08-30 19:34:40 +02:00
Thomas Dietrich d2f4e742a3 Reproducibly sort plants and parameters 2017-08-30 19:29:28 +02:00
Thomas Dietrich 8213dd3c29 Add argparse, improve clean names function 2017-08-28 17:17:58 +02:00
Thomas Dietrich 0774871d53 Fix copy command in README 2017-08-26 20:25:55 +02:00
Thomas Dietrich 9754ff8f68 Cleanup README 2017-08-10 19:46:23 +02:00
Thomas Dietrich 69d7852d16 Move config to dist file to allow pull without conflict 2017-08-10 19:40:32 +02:00
Thomas Dietrich fdbc47384f Switch miflora library to latest git revision 2017-08-10 18:23:45 +02:00
Thomas Dietrich 20628c421b Correct Aliexpress link 2017-08-10 18:04:52 +02:00