Erik Montnemery
959181a2e9
Make MQTT number respect retain setting ( #47270 )
2021-03-02 14:28:31 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Erik Montnemery
19cd29affa
Fix MQTT trigger where wanted payload may be parsed as an integer ( #47162 )
2021-02-28 12:19:27 -08:00
HomeAssistant Azure
43621091b7
[ci skip] Translation update
2021-02-27 00:05:45 +00:00
Erik Montnemery
daf7595ca6
Support value_template in MQTT triggers ( #46891 )
...
* Support value_template in MQTT triggers
* Rename value_template to payload_template
* Revert "Rename value_template to payload_template"
This reverts commit 902094eefc
.
2021-02-24 20:16:36 +01:00
Franck Nijhof
ea4bbd771f
Add service names to previously enriched services ( #46929 )
...
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-02-23 14:10:13 +01:00
HomeAssistant Azure
0cb1f61deb
[ci skip] Translation update
2021-02-21 00:07:04 +00:00
Franck Nijhof
cd6a83f009
Add selectors to MQTT service definitions ( #46738 )
2021-02-18 16:37:15 +01:00
Shay Levy
a5d943b5f1
MQTT cover Bugfixes ( #46479 )
...
* MQTT cover Bugfixes
* Remove period
2021-02-15 17:33:42 +01:00
Erik Montnemery
5a907ebafc
Remove @home-assistant/core from MQTT codeowners ( #46562 )
2021-02-15 11:51:56 +01:00
tkdrob
a5a45f29e2
Cleanup unused loggers ( #46510 )
2021-02-14 13:46:58 +01:00
Erik Montnemery
190a9f66cb
Improve MQTT timeout print ( #46398 )
2021-02-12 11:43:44 +01:00
Steve Dwyer
5ce49c62b1
Allow MQTT template light floating point transition ( #46385 )
...
Allow to use floating point values for the transition time of the MQTT
template light.
2021-02-11 14:57:27 +01:00
tkdrob
b85ecc0bd2
Use core constants for mqtt ( #46389 )
2021-02-11 13:38:33 +01:00
Shay Levy
81c88cd639
Enhance MQTT cover platform ( #46059 )
...
* Enhance MQTT cover platform
Allow combining of position and state of MQTT cover
Add template and fix optimistic in set tilt position
Add tests
* Add abbreviations
* Add tests and stopped state
* Cleanup & fix range for templates
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-02-08 16:02:12 +01:00
Erik Montnemery
047f16772f
Support templating MQTT triggers ( #45614 )
...
* Add support for limited templates (no HASS access)
* Pass variables to automation triggers
* Support templates in MQTT triggers
* Spelling
* Handle trigger referenced by variables
* Raise on unsupported function in limited templates
* Validate MQTT trigger schema in MQTT device trigger
* Add trigger_variables to automation config schema
* Don't print stacktrace when setting up trigger throws
* Make pylint happy
* Add trigger_variables to variables
* Add debug prints, document limited template
* Add tests
* Validate MQTT trigger topic early when possible
* Improve valid_subscribe_topic_template
2021-02-08 10:50:38 +01:00
Paulus Schoutsen
9e07910ab0
Mark entities as unavailable when they are removed but are still registered ( #45528 )
...
* Mark entities as unavailable when they are removed but are still registered
* Add sync_entity_lifecycle to collection helper
* Remove debug print
* Lint
* Fix tests
* Fix tests
* Update zha
* Update zone
* Fix tests
* Update hyperion
* Update rfxtrx
* Fix tests
* Pass force_remove=True from integrations
Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
tkdrob
66ecd2e0f2
Remove unused config_flows ( #46188 )
2021-02-08 08:32:24 +01:00
HomeAssistant Azure
c6bd5b1b71
[ci skip] Translation update
2021-02-05 00:03:54 +00:00
Philip Allgaier
5a0715d388
Consistent spelling of IT abbreviations / protocol / format names ( #45913 )
2021-02-04 01:43:07 +01:00
Paulus Schoutsen
959ed6d077
Update translations
2021-02-03 11:46:49 +01:00
Erik Montnemery
411c0a9685
Improve MQTT JSON light to allow non-ambiguous states ( #45522 )
2021-02-02 09:36:00 +01:00
J. Nick Koston
068d1b5eb8
Separate fan speeds into percentages and presets modes ( #45407 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: John Carr <john.carr@unrouted.co.uk>
2021-01-27 17:44:36 -06:00
radovanbauer
baab9b9a81
Added command templates for the mqtt climate component. ( #44976 )
...
This allows integrating with devices which require more complex payloads to be posted when updating their values.
Old feature request: https://github.com/home-assistant/core/issues/11496
There are numerous posts requesting this feature, example: https://community.home-assistant.io/t/need-help-with-value-template-for-mqtt-hvac/73395/68https://community.home-assistant.io/t/need-help-with-value-template-for-mqtt-hvac/73395/68
Command templates have been added for the following:
- fan_mode
- hold
- mode
- swing_mode
- temperature
- temperature high/low
This doesn't add templates for aux, away mode, power since these already accept custom payload_on/off (although they all share the same payload). It should be straightforward to add templates for them as well if needed.
2021-01-26 16:12:33 +01:00
Erik Montnemery
0e068a5f39
Truncate MQTT payload in debug messages to 8kB ( #45465 )
2021-01-23 14:52:43 -05:00
Erik Montnemery
f86beed7b0
Subscribe only to valid MQTT discovery topics ( #45456 )
2021-01-23 08:51:25 -05:00
J. Nick Koston
954ad854fb
Remove the ability for mqtt to set speeds that are not in the speed_list ( #45445 )
2021-01-23 06:24:06 +01:00
Erik Montnemery
d60fc0de38
Add availability_mode "all" and "any" to MQTT entities ( #44987 )
...
* Add availability_mode "all" to MQTT entities
* Add availability mode any
2021-01-11 16:04:22 +01:00
Erik Montnemery
248802efd5
Add MQTT base entity ( #44971 )
2021-01-09 17:46:53 +01:00
Erik Montnemery
6dd6d9b368
Deduplicate MQTT entity discovery code ( #44970 )
2021-01-09 14:37:33 +01:00
Erik Montnemery
b85efd343f
Move MQTT entity helpers to separate file ( #44838 )
...
* Move MQTT entity helpers to separate file
* Fix imports
* Update MQTT number
* Review comments
* Fix formatting
2021-01-09 00:47:17 +01:00
Diogo Gomes
e3c1281616
Add MQTT Number (non optimistic) ( #44883 )
...
* non optimistic
* test restored state
* ups
* review
* Ensure the entity is not in optimistic mode
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-01-08 23:43:14 +01: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
HomeAssistant Azure
f3cabe97e0
[ci skip] Translation update
2020-12-21 00:04:09 +00:00
Paulus Schoutsen
594e905742
Remove invalidation_version from deprecated ( #44156 )
...
* Remove invalidation_version from deprecated. We don't follow up and just hurts releases
* Revert change to ZHA
2020-12-12 22:24:16 +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
HomeAssistant Azure
9c63fbfcb1
[ci skip] Translation update
2020-12-07 00:04:18 +00:00
HomeAssistant Azure
42f00cff30
[ci skip] Translation update
2020-12-04 00:05:42 +00:00
Kiall Mac Innes
8efa9c5097
Add support for MQTT Scenes ( #42639 )
2020-12-02 19:42:28 +01:00
Erik Montnemery
d18a33020b
Fix MQTT birth message deadlock ( #43790 )
2020-12-01 01:01:22 +01:00
Paulus Schoutsen
5b6d9abe2a
Await callbacks to keep cleaner stacktraces ( #43693 )
2020-11-27 17:48:43 +01:00
Erik Montnemery
a5e5c5c7e6
Exclude disabled entities from async_entries_for_device ( #43665 )
2020-11-27 09:03:44 +01:00
Erik Montnemery
8ff10ad3b8
Fix MQTT threading bug ( #43667 )
2020-11-26 22:33:58 +01:00
HomeAssistant Azure
fcd8684d40
[ci skip] Translation update
2020-11-24 00:04:19 +00:00
Erik Montnemery
52e1282d8c
Make MQTT climate return PRESET_NONE when no preset is set ( #43257 )
2020-11-16 20:10:55 +01:00
Erik Montnemery
4e49bd0596
Correct handling of existing MQTT subscriptions ( #43056 )
2020-11-10 21:55:26 +01:00
HomeAssistant Azure
95c9880c52
[ci skip] Translation update
2020-11-10 00:04:21 +00:00
Erik Montnemery
b45fa29077
Force color or white mode exclusivity for MQTT lights ( #42887 )
2020-11-09 12:51:01 +01:00
HomeAssistant Azure
eebf0ef336
[ci skip] Translation update
2020-11-08 00:04:05 +00:00
Erik Montnemery
7f640c4a2e
Generate random MQTT client ID ( #42934 )
...
* Generate random MQTT client ID
* Add comment
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-11-07 16:27:09 +01:00
HomeAssistant Azure
57c6bb96f4
[ci skip] Translation update
2020-11-07 00:04:02 +00:00
HomeAssistant Azure
aab0ff2ea5
[ci skip] Translation update
2020-11-03 00:04:39 +00:00
HomeAssistant Azure
c7ba2341e3
[ci skip] Translation update
2020-10-31 00:04:15 +00:00
springstan
92379ad8d2
Use list literal without using dict.keys() ( #42573 )
2020-10-30 09:19:13 -05:00
HomeAssistant Azure
b9d04b9304
[ci skip] Translation update
2020-10-30 00:02:45 +00:00
Erik Montnemery
1215100f9a
Fix MQTT template light ( #42598 )
2020-10-29 20:09:41 +01:00
Franck Nijhof
0e98bc5ea2
Skip template result parsing in several places ( #42408 )
...
* Skip template result parsing in several places
* Adjust alert integration
* Adjust Alexa integration
* Adjust apns integration
* Adjust arest integration
* Adjust dialogflow integration
* Adjust generic camera integration
* Adjust imap email content integration
* Adjust InfluxDB integration
* Adjust intent integration
* Adjust logbook integration
* Adjust HP ILO integration
* Adjust manual alarm control panel integration
* Adjust manual mqtt alarm control panel integration
* Adjust minio integration
* Adjust mqtt integration
* Adjust notify integration
* Adjust persistent notification integration
* Adjust rest integration
* Adjust rss feed template integration
* Adjust slack integration
* Adjust Xiaomi integration
* Adjust TCP integration
* Adjust Telegram Bot integration
* Bump CI cache version
* Revert "Bump CI cache version"
This reverts commit 875efe58cf
.
* Adjust demo tests
2020-10-26 19:29:10 +01:00
Paulus Schoutsen
6380ebd1eb
Fix MQTT publish from a script with templates ( #42398 )
2020-10-26 16:46:26 +01:00
HomeAssistant Azure
6e53aa1155
[ci skip] Translation update
2020-10-23 00:03:04 +00:00
Erik Montnemery
6194c382cb
Bump PAHO MQTT to 1.5.1 ( #42099 )
2020-10-22 10:08:19 +02:00
HomeAssistant Azure
b102ad731f
[ci skip] Translation update
2020-10-22 00:09:52 +00:00
Erik Montnemery
e203896638
Align MQTT light's default color temperature ( #41842 )
2020-10-21 15:46:29 +02:00
HomeAssistant Azure
00847db54f
[ci skip] Translation update
2020-10-21 00:06:01 +00:00
HomeAssistant Azure
1a03bbda5a
[ci skip] Translation update
2020-10-18 00:03:28 +00:00
HomeAssistant Azure
39adf14079
[ci skip] Translation update
2020-10-17 00:06:00 +00:00
HomeAssistant Azure
994ae09f69
[ci skip] Translation update
2020-10-15 00:03:50 +00:00
J. Nick Koston
e0df91ef9f
Update mqtt to use HassJob ( #41796 )
...
Avoids the overhead of checking the callable type at run time
2020-10-14 22:04:48 +02:00
HomeAssistant Azure
1417a4161f
[ci skip] Translation update
2020-10-13 00:03:24 +00:00
HomeAssistant Azure
f787289ea0
[ci skip] Translation update
2020-10-12 00:03:31 +00:00
Matthias Alphart
93a9a11065
Add config validator helper positive_float ( #41640 )
2020-10-11 22:04:49 +02:00
HomeAssistant Azure
80522f1bdc
[ci skip] Translation update
2020-10-11 00:03:37 +00:00
J. Nick Koston
da2f9db62e
Fix async functions accidentally marked as callbacks ( #41607 )
2020-10-10 16:54:36 +02:00
HomeAssistant Azure
6ae12c3faf
[ci skip] Translation update
2020-10-10 00:05:05 +00:00
HomeAssistant Azure
29aea5a66c
[ci skip] Translation update
2020-10-09 00:04:33 +00:00
Paulus Schoutsen
3036c17769
Downgrade Paho MQTT to 1.5.0 ( #41479 )
2020-10-08 12:31:46 +02:00
J. Nick Koston
b51a160cce
Update triggers to use HassJob ( #41450 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-10-08 09:44:34 +02:00
Erik Montnemery
392d5c673a
Cache matching MQTT subscriptions ( #41433 )
2020-10-08 08:52:23 +02:00
HomeAssistant Azure
d73d36d0cd
[ci skip] Translation update
2020-10-08 00:06:03 +00: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
306ee30574
Enable MQTT discovery by default ( #41361 )
2020-10-07 14:51:06 +02:00
HomeAssistant Azure
486c0b644a
[ci skip] Translation update
2020-10-07 00:06:20 +00:00
Erik Montnemery
06e9489fc7
Add Tasmota integration ( #39624 )
...
* Add Tasmota integration
* Refactor
* Add tests, small improvements
* isort
* Attempt to fix tests failing with Python 3.8
* Revert "Attempt to fix tests failing with Python 3.8"
This reverts commit 11454f8a00136f068ea27204183fa3e62f3cd263.
* Fix tests failing with Python 3.8
* Cleanup tests
* Address review comments
* Address review comments
* Address review comments
* Use MAC address for device identification
* Bump hatasmota
* Bump hatasmota
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix indentation
* Remove preparation for device remove WS API
* Address review comments
* Remove useless try-except
* Tweak
* Improve tests
* Tweak
* Address review comments
* Correct test
* Update manifest.json
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-06 14:51:58 +02:00
HomeAssistant Azure
8d1d585b40
[ci skip] Translation update
2020-10-05 00:04:23 +00:00
HomeAssistant Azure
f8c2d877aa
[ci skip] Translation update
2020-10-04 00:05:05 +00:00
HomeAssistant Azure
81c6d48cb4
[ci skip] Translation update
2020-10-02 00:05:51 +00:00
springstan
20f8bcc908
Use common strings in mqtt config flow ( #40956 )
2020-10-01 14:55:45 +02:00
J. Nick Koston
a11fd08d20
Create MQTTMatcher once per subscription instead of each message ( #40345 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-30 17:18:43 +02:00
Franck Nijhof
a2d2b7842d
Upgrade paho-mqtt to 1.5.1 ( #40703 )
2020-09-29 18:12:45 +02:00
Erik Montnemery
e7f832a82f
Add MQTT tag scanner ( #40709 )
2020-09-28 22:04:27 +02:00
HomeAssistant Azure
2b00d28af9
[ci skip] Translation update
2020-09-27 00:06:49 +00:00
HomeAssistant Azure
c30982c981
[ci skip] Translation update
2020-09-25 00:04:29 +00:00
springstan
62054b8433
Correct label in mqtt config flow ( #40507 )
2020-09-23 21:55:33 +02:00
HomeAssistant Azure
75659ff787
[ci skip] Translation update
2020-09-23 00:05:01 +00:00
HomeAssistant Azure
587e3f1eb2
[ci skip] Translation update
2020-09-21 00:02:47 +00:00
Erik Montnemery
a50f121011
Get option flow defaults from yaml for non configured MQTT options ( #40177 )
2020-09-19 22:10:01 +02:00
springstan
a13c4d4c17
Increase TIMEOUT_ACK to 10s ( #40117 )
2020-09-16 08:14:11 +02:00
HomeAssistant Azure
f28b7f2187
[ci skip] Translation update
2020-09-16 00:09:01 +00:00
Erik Montnemery
0f3a2f1f29
Increase TIMEOUT_ACK to 2s ( #40080 )
2020-09-14 22:10:30 +02:00