Jan Bouwhuis
6fdaec0847
Add MQTT siren platform ( #64440 )
...
* Add mqtt siren draft
* fix tests
* Intergrate notify platform
* tests and fixes siren platform
* Add tests notify platform
* config parameters and abbreviations
* remove duplicate key
* undo move topic abbreviation
* Move const CONF_MESSAGE_COMMAND_TEMPLATE
* Remove notify service integration
* Rework
* Update homeassistant/components/mqtt/siren.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Publish JSON by default
* Allow unknown state - rename value_template
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-01-31 10:31:57 +01:00
epenet
b65b25c1bb
Move MqttServiceInfo to init.py ( #60905 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-03 19:34:48 +01:00
epenet
f6bbdec6cb
Use BaseServiceInfo inheritance in MqttServiceInfo ( #60207 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 16:52:33 +01:00
epenet
3b0d984959
Use dataclass for MqttServiceInfo ( #60191 )
...
* Use dataclass for MqttServiceInfo
* Drop test exception
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 09:01:40 +01:00
epenet
4387bbfb94
Adjust async_step_mqtt signature for strict typing ( #59761 )
...
* Add MqttServiceInfo
* Adjust async_step_mqtt signature
* Adjust async_step_mqtt signature
* Adjust components
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-16 13:30:38 +01:00
Erik Montnemery
b5ce84cd89
Add MQTT button ( #59348 )
2021-11-09 12:04:14 +01:00
Marc Mueller
b1d49b3b66
Use assignment expressions 29 ( #58713 )
2021-10-30 16:31:43 +02:00
Erik Montnemery
f3bd13d179
Fix regression in MQTT discovery ( #58684 )
...
* Fix regression in MQTT discovery
* Update test
2021-10-29 15:59:16 +02:00
Marc Mueller
487fa0a905
Use assignment expressions 20 ( #57969 )
2021-10-20 20:31:00 +02:00
Jan Bouwhuis
a36a765352
Allow MQTT discovery availability shortcut ( #57479 )
...
* replace base in availability topic
* add tests for availability shortcuts - fix import
* group constants
* simplified loop
* Moving constants to .const
* rename value to topic
* move CONF_TOPIC to .const
* move CONF_AVAILABILITY to .const
* remove check for string
* Silently ignore if no config topic is found.
* CONF_TOPIC should be required
2021-10-11 23:37:31 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) ( #53685 )
2021-07-30 01:20:03 +02:00
Jan Bouwhuis
c9eab10134
Add MQTT humidifier platform integration ( #52828 )
...
* New mqtt humidifier platform
* Add humidifier platform
* Leave out humidity step
* Use humidity in constant for payload reset
* change TARGET_HUMIDITY_RESET payload name
* _attr_max_humidity not assigned correctly
* _target_humidity_range has a zero base
* align CONF_TARGET_HUMIDITY_MIN and MAX with model
* shorter topics for humidity_range
* Converts float to int from template
* new humidifier abbreviations
* Add common module to support tests
* Add tests
* Addtional testing
* Always require target_humidity_command_topic
* Typo
* use available_modes to align entity model
* use avail_modes not modes to avoid conflict
* typo target_humidity_value_template
* Allign modes and templates with climate platform
* mode_state_template
* target_humidity_state_template
* Typo in platform name
* Remove humidity_range feature and common lib
* Update homeassistant/components/mqtt/humidifier.py
Use vol.In, not regex
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* black
* Update homeassistant/components/mqtt/humidifier.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Use round to convert float to target humidity
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-07-15 11:12:23 +02:00
Erik Montnemery
5e472f2c06
Improve typing of Tasmota (1/3) ( #52746 )
2021-07-12 20:14:03 +02:00
Erik Montnemery
79ee112490
Enable basic type checking for mqtt ( #52463 )
...
* Enable basic type checking for mqtt
* Tweak
2021-07-05 10:33:12 +02:00
Erik Montnemery
4533a77597
Add MQTT select ( #52120 )
...
* Add MQTT select
* Fix value_template support
* Lint
2021-06-24 17:09:06 +02:00
Erik Montnemery
2351f2d95e
Warn when receiving message on illegal MQTT discovery topic ( #52106 )
...
* Warn when receiving message on illegal MQTT discovery topic
* Fix test
2021-06-23 15:53:17 +02:00
Ville Skyttä
c2f5dcefa5
Use flow result type constants more ( #51122 )
2021-05-29 14:09:13 +02:00
J. Nick Koston
3fa8ffa731
Enable mccabe complexity checks in flake8 ( #49616 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
jan iversen
9410aefd0d
Integrations m*: Rename HomeAssistantType to HomeAssistant. ( #49567 )
2021-04-22 14:53:37 -07:00
Erik Montnemery
f86beed7b0
Subscribe only to valid MQTT discovery topics ( #45456 )
2021-01-23 08:51:25 -05:00
Diogo Gomes
f18880686c
Add MQTT Number ( #44739 )
...
* Initial Commit
* initial commit
* add discovery and tests
* increase coverage
* address review
* catchup with reality
2021-01-06 08:27:46 +01:00
Erik Montnemery
34bd70aee6
Fix race when handling MQTT discovery messages ( #44730 )
...
* Fix race when handling MQTT discovery messages
* Lint
* retrigger checks
2021-01-04 12:28:17 +01:00
Erik Montnemery
97edbaa85f
Small cleanup of MQTT ( #44110 )
...
* Use relative imports of mqtt component in mqtt platforms
* Correct parameters to _async_setup_entity
* Lint
2020-12-10 21:30:07 +01:00
PeteBa
727b1d37b6
Add discovery for MQTT device tracker ( #42327 )
2020-12-07 13:16:56 +01:00
Kiall Mac Innes
8efa9c5097
Add support for MQTT Scenes ( #42639 )
2020-12-02 19:42:28 +01:00
springstan
92379ad8d2
Use list literal without using dict.keys() ( #42573 )
2020-10-30 09:19:13 -05:00
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