Erik Montnemery
343e5d64b8
Add MQTT integration discovery ( #41332 )
...
* Add MQTT integration discovery
* Add script/hassfest/mqtt.py
* Unsubscribe if config entry exists
* Add homeassistant/generated/mqtt.py
* Fix bad loop
* Improve tests
* Improve tests
* Apply suggestions from code review
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
* Prevent initiating multiple config flows
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
2020-10-07 18:30:51 +02:00
Erik Montnemery
e7f832a82f
Add MQTT tag scanner ( #40709 )
2020-09-28 22:04:27 +02:00
Erik Montnemery
114a7226d6
Wait before sending MQTT birth message ( #39120 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-25 16:42:24 +02:00
Erik Montnemery
b826970b16
Fix base topic for 'topic' ( #37475 )
2020-07-06 15:17:13 -07:00
Erik Montnemery
747490ab34
Support reconfiguring MQTT config entry ( #36537 )
2020-06-22 17:49:01 -07:00
Erik Montnemery
35cd6b9abf
Remove unused parameter for MQTT discovery ( #36526 )
...
* Remove unused parameter for MQTT discovery
* Fix tests
2020-06-07 19:35:35 +02:00
Franck Nijhof
7653dc947a
Enable pylint unnecessary-pass ( #33650 )
...
* Enable pylint unnecessary-pass
* Process review suggestions
* Fix smhi tests
2020-04-05 10:33:07 +02:00
springstan
c20a965eda
Improve string formatting v3 ( #33667 )
...
* Improve string formatting v3
* Address review comment
2020-04-05 01:32:58 +02:00
Franck Nijhof
b9b1cee403
Enable pylint import-outside-toplevel ( #33631 )
2020-04-04 17:07:36 +02:00
Erik Montnemery
4e6fd19624
Improve MQTT test coverage and remove dead code ( #33584 )
...
* Improve MQTT tests and remove dead code
* Remove useless test.
* Add more test
2020-04-03 09:05:58 -07:00
Erik Montnemery
fb93b79b12
Add MQTT debug info ( #33461 )
...
* Add MQTT debug info
* Tweaks
* Tweaks
2020-04-01 10:00:40 -07:00
Erik Montnemery
9508c51403
Fix change of entity_id for discovered MQTT entities ( #33444 )
2020-03-30 14:26:59 -07:00
Erik Montnemery
e0d2e5dcb0
Remove deprecated features from MQTT platforms ( #32909 )
...
* Remove deprecated features
* Lint
2020-03-18 22:39:15 -07:00
springstan
ba0aaeeddb
Use f-strings in integrations starting with "M" ( #32271 )
...
* Use f-strings in integrations starting with "M"
* Format mqtt light init with black
* Fix lint error
* Fix pylint error
* Restore constants
* Update homeassistant/components/mqtt/discovery.py
* Update homeassistant/components/mqtt/discovery.py
* Update homeassistant/components/mqtt/discovery.py
* Update homeassistant/components/mqtt/discovery.py
* Format with Black
2020-03-10 23:34:54 +01:00
Erik Montnemery
7e387f93d6
Add MQTT WS command to remove device ( #31989 )
...
* Add MQTT WS command to remove device
* Review comments, fix test
* Fix tests
2020-02-24 20:46:02 -08:00
Erik Montnemery
60ae85564e
Add support for MQTT device triggers ( #31679 )
...
* Add support for MQTT device triggers
* Fix test, tweaks
* Improve test coverage
* Address review comments, improve tests
* Tidy up exception handling
* Fix abbreviations
* Rewrite to handle update of attached triggers
* Update abbreviation test
* Refactor according to review comments
* Refactor according to review comments
* Improve trigger removal
* Further refactoring
2020-02-18 13:51:10 -08:00
Franck Nijhof
7203027cbf
Use literal string interpolation in integrations K-M (f-strings) ( #26389 )
2019-09-03 21:14:00 +02:00
Erik Montnemery
e0be4efe3e
Add test case to identify missing MQTT configuration abbreviations ( #25616 )
...
* Add missing abbreviations
* Move abbreviations to own file, add script to find missing abbreviations
* Move check from script to test case
* Lint
* Rewrite to use pathlib
* Lint
2019-08-06 17:32:15 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Franck Nijhof
31f569ada9
Batch of Component(s) -> Integration(s) ( #24972 )
2019-07-05 15:24:26 -07:00
Dennis Keitzel
8cd138608c
Support mqtt discovery topic prefix with slashes ( #24840 )
2019-07-01 10:23:01 -07:00
Maciej Bieniek
3b4a9a337b
Add abbreviation for light template variable names ( #24336 )
2019-06-06 18:10:23 +02:00
Maciej Bieniek
16a27c3f2d
Add abbreviation for position_topic ( #23740 )
2019-05-07 22:20:55 +02:00
unixko
f386088def
add abbreviation for current_temperature_template ( #23733 )
2019-05-07 08:27:35 +02:00
Erik Montnemery
8d775caaac
Always print invalid configuration data ( #21972 )
...
* Always print invalide configuration data
* Print offending data as yaml
* Revert "Print offending data as yaml"
This reverts commit 01721a21a9ff918ed2c8595151ebfe55eb2f7d36.
* Do not print sensitive data
* Print MQTT topic
* Add line break
* Review comments
* review comments
2019-04-29 13:45:53 -07:00
Erik Montnemery
d99637e51b
Deprecate implicit state_topic for MQTT discovery ( #22998 )
...
* Deprecate implicit state_topic for MQTT discovery
* Lint
* Add comments
* Modernize tests
2019-04-13 20:25:45 -07:00
Paulus Schoutsen
e48ef7f441
Fix broken platform components ( #22943 )
...
* Fix broken platform components
* Lint
2019-04-09 15:42:44 -07:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
emontnemery
5957e4b75b
Pass Message object to MQTT message callbacks ( #21959 )
...
* Pass Message object to MQTT message callbacks
* Improve method of detecting deprecated msg callback
* Fix mysensors
* Fixup
* Review comments
* Fix merge error
2019-03-13 12:58:20 -07:00
engrbm87
76d11e4b74
fix empty TOPIC_BASE issue ( #21740 )
...
* fix empty TOPIC_BASE issue
if the value of the TOPIC_BASE is empty then we need to remove "~" from the topic value if it exists.
by doing `if base:` on line 239 the condition will be false if the value is empty so the '~' will not be stripped from the topic value.
I simply removed the `if base:` line and added `if TOPIC_BASE in payload:`
* Update homeassistant/components/mqtt/discovery.py
Co-Authored-By: engrbm87 <engrbm87@gmail.com>
2019-03-08 16:48:54 -08:00
emontnemery
79d3f533a9
Add missing abbreviations ( #20741 )
2019-02-04 10:54:40 -08:00
emontnemery
89fc3b2a1b
Disable extra=vol.ALLOW_EXTRA for MQTT platforms. ( #20562 )
2019-01-29 09:29:02 -08:00
emontnemery
648adcc708
Small cleanup of MQTT platforms ( #20503 )
...
* Move CONF_UNIQUE_ID to init
* Sort imports
* Update ordering
2019-01-27 18:54:52 +01:00
emontnemery
dd75c49796
Cleanup if discovered mqtt switch can't be added ( #19721 )
...
* Cleanup if discovered mqtt switch can't be added
2019-01-07 16:57:51 +01:00
Tommy Jonsson
ccbc231d3a
[2/3] vacuum mqtt-discovery ( #19478 )
...
* add discoverability to mqtt-vacuum
2019-01-06 17:05:04 +01:00
Daniel Chesterton
61d5b3028d
Add support for color_temp_command_template in MQTT light component ( #19675 )
...
* Add support for color_temp_command_template in MQTT light component
2019-01-01 15:42:41 +01:00
emontnemery
a8797a08c6
Improve handling of MQTT light discovery ( #19436 )
2018-12-24 14:28:26 +01:00
emontnemery
edb7ec78f9
Fix support for base topic for empty values in MQTT discovery msg ( #19501 )
...
* Fix topic expansion for short strings
* Lint
2018-12-24 14:21:58 +01:00
emontnemery
a9990c130d
Revert change to MQTT discovery_hash introduced in #18169 ( #18763 )
2018-11-30 13:57:17 +01:00
emontnemery
16e3ff2fec
Mqtt light refactor ( #18227 )
...
* Rename mqtt light files
* Refactor mqtt light
* Remove outdated testcase
* Add backwards compatibility for MQTT discovered MQTT lights.
Refactor according to review comments.
2018-11-27 14:00:05 +01:00
emontnemery
de9bac9ee3
Reconfigure MQTT binary_sensor component if discovery info is changed ( #18169 )
...
* Recreate component if discovery info is changed
* Update component instead of remove+add
* Set name and unique_id in __init__
* Update unit test
* Cleanup
* More cleanup
* Refactor according to review comments
* Change discovery_hash
* Review comments, add tests
* Fix handling of value_template
2018-11-19 16:49:04 +01:00
emontnemery
7e702d3caa
Fix small issue related to topic prefix ( #18512 )
...
Fix expansion of topic prefix when discovery message contains non string-type items.
2018-11-19 09:59:07 +01:00
emontnemery
589764900a
Move more MQTT platforms to config entries ( #18180 )
...
* Move Lock MQTT platform to config entries
* Move MQTT JSON Light platform to config entries
* Review comments
* Review comments
* Revert mqtt_json changes
2018-11-06 16:09:46 +01:00
emontnemery
b2789d9883
Support abbreviations in discovery topic ( #16635 )
...
* Support abbreviations in discovery topic
* Add abbreviations for all words. Add testcase.
Add missing docstring.
* Add missing abbreviations
* Support topic prefix
* Update test case
* Restrict topic prefix
* Fix merge
* Simplify abbreviations expanding, assume TOPIC_PREFIX is one character long
* Support abbreviated keys instead of words
* Remove redundant abbreviations
* Remove extra spaces in abbreviation list
* Make topic prefix less restrictive
* Make topix prefix a bit more restrictive again
2018-10-12 08:51:16 +02:00
Otto Winter
9290f245bf
Convert MQTT fan to config entry ( #17247 )
2018-10-08 14:59:04 +02:00
Otto Winter
3f498bd042
Fix potential MQTT discovery race condition ( #17208 )
...
* Fix potential MQTT discovery race condition
* Rename data key
2018-10-08 10:59:43 +02:00
Otto Winter
760f822dce
Fix MQTT discovery ( #17004 )
2018-10-01 09:01:40 +02:00
Otto Winter
af89e7c50f
Move more MQTT platforms to config entries ( #16918 )
...
* Move more MQTT platforms to config entries
* Address comments
2018-09-28 16:57:17 +02:00
Otto Winter
d1ad2cc225
Make MQTT platforms config entries ( #16904 )
...
* Make MQTT platforms config entries
* Fix tests
* Address Comment
* Rework tests
* Undo style auto-reformat style changes
2018-09-27 16:07:56 +02:00