21 Commits
Author SHA1 Message Date
Marcel Hoppe 8fbf3540bd Discovery (#74)
* add support for Home Assistants MQTT discovery

* add format_topic a flexible separator

* add mqtt discovery for miflora

* add mqtt discovery for mithermometer

* add mqtt discovery for thermostat

* add unit to illuminance in miflora

* switch to 'away_mode_command_topic' instead of 'away_command_topic'

* revert changing the date format

* add mac to ientifiers and change the id generation

* add mac to ientifiers and change the id generation on thermostat

* add mac to ientifiers and change the id generation for mithermometer
2019-06-21 12:25:27 +02:00
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
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
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
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
zewelor 829691f541 Update config.yaml.example 2019-01-30 20:04:38 +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
zewelor 315c317b99 Add availbility topic support (#42) 2018-12-31 07:21:33 +01:00
Benji 2aaff0bb41 add configurable client_id 2018-11-06 19:53:17 +01:00
Marcel Hoppe 8ea82f14fd support for xiaomi aqara thermometer and few other fixes (#18)
* import pip._internal.main to work with pip version > 10

* make auth optional and add support for an optional port

* add worker for xiaomi aqara thermometer

* add support for optional global publishing topic_prefix

* Update config.yaml.example
2018-08-06 16:05:59 +02:00
Benji 6982548de0 Update example config and readme with miflora (#7)
* Link documentation in Systemd service unit

* Define python3 as default

* Update example config and readme with miflora
2018-05-10 09:38:47 +02:00
zewelor 3234e4f5ad Populate sample config 2018-05-08 21:35:56 +02:00
zewelor 34c0804457 Fix misspell 2018-03-05 22:40:49 +01:00
zewelor 7e5ed968b6 Cleanups and add support for mysensors 2018-01-14 12:14:55 +01:00
zewelor b32897f949 Add support for mqtt birth message 2017-12-06 10:14:43 +01:00
zewelor 1bc7b1f92b Fix thermostat commands 2017-11-29 10:23:21 +01:00
zewelor 6a1c7b0181 Support for commands handling 2017-11-26 21:57:12 +01:00
zewelor d463345707 Add basic cron support 2017-11-24 07:30:42 +01:00
zewelor 0f9af9fccf Update example 2017-11-23 22:35:58 +01:00
zewelor e384a19eff Initial commit 2017-11-22 17:28:01 +01:00