Commit Graph
108 Commits
Author SHA1 Message Date
westenberg ee6e7ee8b8 Added toothbrush worker with Home Assistant support (#67)
The worker has dicts with possible brush states, modes and sectors
It sends a one time retained Home Assistant autoconfig message to automatically setup a sensor with the correct topics
It sends the state in a state topic and other attributes in an attribute topic
2019-05-02 17:51:14 +02:00
zewelor 074a7837d8 Improve mqtt lwt on reconnect 2019-04-19 18:16:02 +02:00
zewelor 6561c2cb60 Fix SCAN_TIMEOUT consts 2019-04-16 21:32:28 +02:00
zewelor d8b6736b06 Update README.md 2019-03-23 11:41:08 +01:00
zewelor 220fef47f0 Update README.md 2019-03-23 11:39:45 +01:00
zewelor b6048e6d39 Update README.md 2019-03-23 11:37:47 +01:00
zewelor a0f9ef4da0 Fix mysensors serial import 2019-03-14 23:46:01 +01:00
Dennis Keitzel a655504f78 Make command timeout for workers configurable (#62) 2019-03-10 09:51:50 +01:00
AS137430 bc681fd85f Added support for Switchbot (#60)
* Added worker for Switchbot

* config.yaml example for switchbot
2019-03-07 17:15:53 +01:00
Benji 23fea388e6 Merge pull request #57 from zewelor/add_example_worker_to_readme
Add example worker to readme
2019-03-05 00:32:58 +01:00
Dennis Keitzel 68dfdbcbf5 Update dependencies to include btlewrap 0.0.4 (#58) 2019-03-03 20:55:02 +01:00
Dennis Keitzel c9a634870f Improved logging mechanism (and a few minor goodies) (#54)
* Improved logging mechanism

* Allow for suppression of any errors regarding failed device updates
2019-03-03 19:46:38 +01:00
zewelor 41494ce90d Add example worker to readme 2019-03-03 15:36:58 +01:00
Adam Strojek c6a068f811 blescanmulti - improve scanners options (#56)
* Helpful utils that will allow to reduce common code

* Update config with new options for blescanmulti

* Default values for blescanmulti if not provided by config file

* Allow to configure scan behavior

* Allow to configure returned payload

* Initial version of saving last state

* Support class that will remember last status of device

* Add docs for available options

* Move scanner to instance, this will prevent recreating it each time it is required to scan

* Use items instead of values. We require here to have pair of key and value, not just value

* Make sure that mac address is in lower case

* Optimize searching for devices, use hash maps

* Remove unused method

* Because YAML is already doing some conversions this change will allow to always get proper value

* Fix issue. Mac address and name was provided in wrong order

* Use worker to format topic

* Send also RSSI info
2019-03-03 09:12:00 +01:00
Benji 716ea4578c Reference ble toothbrushes in readme 2019-03-01 11:21:52 +01:00
zewelor df207447b6 Update README.md 2019-03-01 11:14:10 +01:00
felix schwenzel 0fbbc50990 Add worker for Oral-B connected toothbrush (#55)
* create toothbrush.py

add oral-b connected toothbrushs (based on https://github.com/rfaelens/domotica/blob/master/mqtt-toothbrush.py, see https://community.home-assistant.io/t/oral-b-bluetooth-connected-toothbrush/)

* add configuration example for oral-b toothbrush

* Update README.md
2019-03-01 11:07:37 +01:00
Dennis Keitzel ed4fc26f74 Do not clear cache for each attribute (#52) 2019-02-18 12:45:15 +01:00
zewelor a477c0b3cb Improve config loading (#51) 2019-02-14 07:29:43 +01:00
zewelor 0fe8234173 Test force utc timezone (#50) 2019-02-12 07:01:20 +01:00
Ben Dews e089d53d16 Feature: dynamic update intervals (#49)
* Updated workers_manager with ability to dynamically set update_interval

* Updated README file with documentation for dynamic update intervals
2019-02-09 09:17:25 +01:00
zewelor dabdccc47e Fix minimum python version requirement 2019-02-03 21:55:43 +01:00
zewelor 829691f541 Update config.yaml.example 2019-01-30 20:04:38 +01:00
zewelor cff6d1940f Update README.md 2019-01-30 20:03:54 +01:00
zewelor 0ba2832064 Add quiet option 2019-01-29 23:12:38 +01:00
zewelor 83d84e27de Add egg to linak desk lib 2019-01-28 22:11:28 +01:00
zewelor e9d79cca66 Handle bluetooth connection exception 2019-01-28 21:55:50 +01:00
Elvio Sebastianelli 345b200113 New worker: ble devices scanner (#46)
* Worker for ble devices scanning

Added a worker that scan for ble devices and notify, by mqtt, presence of mac addresses and rssi.

Configuration section example:

....
workers:
    blescanmulti:
      args:
        devices:
          nut: xx:xx:xx:xx:xx:xx
          ionic: xx:xx:xx:xx:xx:xx
        topic_prefix: blescan
      update_interval: 60
...

* Update README.md 

blescanmulti worker added

* Update config.yaml.example

Added configuration section for blescanmulti worker

* Converted blescanmulti.py indentation to 2 spaces

* changed mqtt message syntax

* Update README.md

Added contributor repos url

* Update .gitignore

Removed .vscode/

* Delete settings.json

* Changes by pull request review 11/01/2019
 On branch master
	modified:   workers/blescanmulti.py
2019-01-11 22:02:49 +01:00
Dennis Keitzel 2e27c9a7e7 Do not clear cache for each attribute (#38) 2019-01-07 16:08:58 +01:00
zewelor 54ae51814e Fix lwt topic with global prefix (#44) 2019-01-07 12:27:35 +01:00
Benji 591f643c0c Create PULL_REQUEST_TEMPLATE.md 2018-12-31 13:00:20 +01:00
Benji 677788a62a Update issue templates 2018-12-31 12:56:14 +01:00
Benji 8f69a44576 Create LICENSE 2018-12-31 12:52:20 +01:00
Benji 00c2c7ad34 Create CODE_OF_CONDUCT.md 2018-12-31 12:49:00 +01:00
Benji f21ff959fc Create CONTRIBUTING.md 2018-12-31 12:48:03 +01:00
zewelor 315c317b99 Add availbility topic support (#42) 2018-12-31 07:21:33 +01:00
zewelor 6faf7ec141 Test mqtt topic subscription problem (#41) 2018-12-31 07:19:52 +01:00
zewelor 6496e88d7b Respect global topic prefix when debug logging topic subscription 2018-12-23 09:48:01 +01:00
zewelor 460204ed72 Update thermostat worker to reflect new eq3 ha changes (#36) 2018-12-20 16:25:27 +01:00
Benji 33580ddd6b Merge pull request #37 from unconfigured/master
Fix global mqtt_prefix try 2
2018-12-20 13:04:57 +01:00
unconfigured f9f95a756b global topic_prefix fix try 2 2018-12-20 12:33:29 +01:00
unconfigured fabc48784b Merge remote-tracking branch 'upstream/master' 2018-12-20 10:56:14 +01:00
zewelor 1dad41cbc4 Revert wrong topic_prefix handling 2018-12-19 11:53:44 +01:00
Dennis Keitzel 0252aac8ae Use a single mqtt connection for publish and subscribe operations instead of separate one-shot connections for each update (#35) 2018-12-19 10:36:02 +01:00
zewelor 03bb93e2eb Fix global topic prefix handling (#32) 2018-12-19 10:31:17 +01:00
Friedo a5a4797a1d Fix mqtt prefix handling on thermostat worker (#30) 2018-11-28 15:52:52 +01:00
unconfigured 8770c625cc Fix mqtt prefix handling on thermostat worker 2018-11-28 11:53:06 +01:00
Benji 7a3fedac36 Oops, that comment shouldn't be there 2018-11-06 19:57:41 +01:00
Benji 2aaff0bb41 add configurable client_id 2018-11-06 19:53:17 +01:00
Benji addc0fcb54 Merge pull request #27 from hobbypunk90/patch-2
change greater than to greater equals version 10
2018-10-06 17:08:47 +02:00