Erik Montnemery
9e681cd214
Refactor MQTT basic light pt5: Add RGB color helpers ( #50780 )
...
* Refactor MQTT basic light pt5: Add RGB color helpers
* Revert change of rounding instead of truncating RGB
2021-05-17 23:50:12 +02:00
Michael Klamminger
3554316f3f
Update MQTT cover template handling ( #50236 )
...
* flake 8
* Implement feedback from PR
* update warning message
* added and updated tests
* remove _has_tilt_topic variable
* flake 8
* Implement feedback from PR
* update warning message
* added and updated tests
* remove _has_tilt_topic variable
* renamed _tilt_message_received to _tilt_payload_received
* merged with latesed upstream/dev
* converted if to try except for type check
* Implemented the suggestions of @emontnemery
* Tweak tests
* logger info to debug
Co-authored-by: Shay Levy <levyshay1@gmail.com>
* cast tilt payload as int; combine exceptions to one line
* Add test for JSONDecodeError
* Update homeassistant/components/mqtt/cover.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-05-17 19:31:11 +02:00
Erik Montnemery
848ab5c2bc
Deduplicate code in MQTT basic light pt4: Add set_optimistic helper ( #50774 )
2021-05-17 16:28:30 +02:00
Erik Montnemery
8c6f4a8c71
Refactor MQTT basic light pt3: Add publish helper ( #50767 )
2021-05-17 14:54:19 +02:00
Erik Montnemery
b36021b4fd
Deduplicate code in MQTT basic light pt2: Add restore_state helper ( #50766 )
...
* Refactor MQTT basic light pt2: Add restore_state helper
* Update homeassistant/components/mqtt/light/schema_basic.py
Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-05-17 14:53:48 +02:00
Erik Montnemery
3ab14d452c
Refactor MQTT basic light pt1: Add add_topic helper ( #50759 )
2021-05-17 12:50:54 +02:00
GitHub Action
877cb43c06
[ci skip] Translation update
2021-05-17 05:17:18 +00:00
HomeAssistant Azure
7df47664e8
[ci skip] Translation update
2021-05-12 00:04:03 +00:00
HomeAssistant Azure
887ec2d9b5
[ci skip] Translation update
2021-05-11 00:04:41 +00:00
HomeAssistant Azure
6665a62557
[ci skip] Translation update
2021-05-09 00:04:11 +00:00
HomeAssistant Azure
f32e15da36
[ci skip] Translation update
2021-05-08 00:03:19 +00:00
Jan Bouwhuis
7ab505633d
Ignore empty output from MQTT fan's value template ( #50122 )
...
* Allow empty payload
* Add tests for ignoring empty payload
* logging on empty state and osccilation with tests
* Improve warning log when invalid value is received
2021-05-07 13:22:08 +02:00
HomeAssistant Azure
623a9c99fe
[ci skip] Translation update
2021-05-07 00:04:03 +00:00
Erik Montnemery
7dec23d58b
Improve translation strings for MQTT config and option flows ( #50018 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-05 21:25:28 -07:00
HomeAssistant Azure
04266301e9
[ci skip] Translation update
2021-05-03 00:05:16 +00:00
Franck Nijhof
a6206b2819
Clean up connection classes in integrations M-O ( #49892 )
2021-04-30 21:03:37 -10:00
Franck Nijhof
e1a3ef3d69
Clean up config entry handlers decorator from config flows ( #49932 )
2021-04-30 23:28:25 +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
Erik Montnemery
8013eb0e08
Allow data entry flows to hint for additional steps ( #49202 )
2021-04-23 11:02:12 -07:00
jan iversen
9410aefd0d
Integrations m*: Rename HomeAssistantType to HomeAssistant. ( #49567 )
2021-04-22 14:53:37 -07:00
Jan Bouwhuis
ff367cfcb6
Mqtt cover avoid warnings on empty payload ( #49253 )
...
* No warnings on extra json values with templates
* ignore empty received payload
2021-04-20 15:47:40 +02:00
Erik Montnemery
ec56ae2cbc
Set deprecated supported_features for MQTT JSON light ( #49167 )
...
* Set deprecated supported_features for MQTT json light
* Update homeassistant/components/light/__init__.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-15 17:24:21 +02:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +02:00
Jan Bouwhuis
74d7293ab8
mqtt fan percentage to speed_range and received speed_state fix ( #49060 )
...
* percentage to speed_range and get speed state fix
* Update homeassistant/components/mqtt/fan.py
* Update homeassistant/components/mqtt/fan.py
* Update homeassistant/components/mqtt/fan.py
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-11 13:53:07 -10:00
Jan Bouwhuis
28ad5b5514
Implement percentage_step and preset_mode is not not speed fix for MQTT fan ( #48951 )
2021-04-09 16:14:48 -07:00
Erik Montnemery
5e8559e3cc
Validate supported_color_modes for MQTT JSON light ( #48836 )
2021-04-08 12:40:48 -07:00
HomeAssistant Azure
82cc5148d7
[ci skip] Translation update
2021-04-07 00:04:06 +00:00
Erik Montnemery
9f2fb37e17
Flag brightness support for MQTT RGB lights ( #48718 )
2021-04-06 12:39:29 +02:00
HomeAssistant Azure
d5e5450540
[ci skip] Translation update
2021-04-05 00:05:16 +00:00
HomeAssistant Azure
a5dfbf9c44
[ci skip] Translation update
2021-04-02 00:04:54 +00:00
HomeAssistant Azure
a0483165da
[ci skip] Translation update
2021-04-01 00:03:55 +00:00
LJU
93920704d0
Remove Hass.io terms in strings.json ( #48541 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-31 17:19:18 +02:00
Erik Montnemery
b26779a27a
Add id to automation triggers ( #48464 )
2021-03-31 14:56:04 +02:00
Erik Montnemery
c7584a1f92
Add color_mode support to MQTT JSON light ( #47993 )
2021-03-31 11:28:45 +02:00
Franck Nijhof
c1d5638739
Remove HomeAssistantType alias from entity components - Part 2 ( #48468 )
2021-03-29 13:24:56 -10:00
Erik Montnemery
8ad3c65645
Allow MQTT entities to be disabled by default ( #48284 )
...
* Allow MQTT entities to be disabled by default
* Tweak
2021-03-30 00:09:14 +02:00
Jan Bouwhuis
d8a4cf63f4
Command template support for MQTT fan ( #48413 )
...
* Command template support
* Fix typo in abbreviations
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Fix initialize templates
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-03-29 20:41:51 +02:00
Franck Nijhof
86212db71d
Merge of nested IF-IF cases - K-N ( #48370 )
2021-03-27 10:03:15 +01:00
Jan Bouwhuis
5b17aaf9d5
Percentage and preset mode support for MQTT fan ( #47944 )
...
* git push --all origin
* Fix percentage to ordered list conversion
* Tests for mqtt fan and fixes
* Improve tests and error handling base config
* Additional tests
* Tests completed, small fixes
* Allow preset mode and percentages combined
* Remove raise in setup and update tests
* Alignment with fan entity mode
* Fix pylint for len-as-condition
* Remove python binary cache file from PR
* Additional tests on async_turn_on and fix
* Added comments for deprecation of speeds
* Schema checks before init
* Optimize pre schema checks
* Correct schema checks
* Update homeassistant/components/mqtt/abbreviations.py
Comment speeds for mqtt fan are deprecated not needed here
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Comment speeds for mqtt fan are deprecated not needed here
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Comment speeds for mqtt fan are deprecated not needed here
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Comment speeds for mqtt fan are deprecated not needed here
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Comment speeds for mqtt fan are deprecated not needed here
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Warnings for exceptions - testing speed_range
* Update homeassistant/components/mqtt/abbreviations.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
* Save with black
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-03-26 08:37:47 +01:00
Erik Montnemery
72281f4718
Validate device trigger schemas once ( #48319 )
2021-03-26 08:09:21 +01:00
Franck Nijhof
6932cf9534
Use contextlib.suppress where possible ( #48189 )
2021-03-23 14:36:43 +01:00
HomeAssistant Azure
55b689b464
[ci skip] Translation update
2021-03-23 00:03:29 +00:00
Erik Montnemery
fdf97eaca3
Migrate integrations i-m to extend SensorEntity ( #48213 )
2021-03-22 19:59:03 +01:00
Philip Allgaier
3ae9460131
Use domain const in config_flow ( #48168 )
2021-03-21 00:34:46 +01:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ( #48064 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Marc Mueller
4cb7718192
Update typing 16 ( #48087 )
2021-03-18 22:58:19 +01:00
Marc Mueller
25a13d1554
Update typing 10 ( #48071 )
2021-03-18 13:07:04 +01:00
HomeAssistant Azure
f625e324dd
[ci skip] Translation update
2021-03-18 00:07:07 +00:00
HomeAssistant Azure
4306c8fbb4
[ci skip] Translation update
2021-03-17 00:03:55 +00:00
HomeAssistant Azure
c11b85af2f
[ci skip] Translation update
2021-03-16 00:04:36 +00:00
RadekHvizdos
9f4c2f6260
Add suggested_area to MQTT discovery ( #47903 )
...
* Add suggested_area to MQTT Discovery
This adds suggested_area to MQTT discovery, so that the discovered devices could be automatically added to the proper area.
* Add abbreviation for MQTT suggested_area
* Remove extra whitespace
* Remove extra whitespace #2
* Added tests for MQTT Dicovery of suggested_area
* Fix test for MQTT suggested_area
* Better tests of MQTT suggested_area
Changes made as per feedback from @emontnemery
2021-03-15 20:02:02 +01:00
Drzony
99d1e3e71d
MQTT Light: Use flash attribute in async_turn_off ( #47919 )
2021-03-15 11:24:07 +01:00
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() ( #47758 )
2021-03-11 20:11:25 +01:00
mtl010957
b162c45e0a
Cover Tilt Position Bugfix ( #47682 )
...
* Report tilt position properly when inverting using tilt_max < tilt_min
* Add warning per review comment
* Add test for inverted tilt position configuration
* Separate non-numeric and out of range warnings per review comment
* Fix out of range message and add tests for not numeric and out of range messages
2021-03-11 13:49:10 +01:00
Kristian Heljas
9e487eb260
Hoist mqtt name property and add icon support to MqttEntity ( #47165 )
...
* hoist common MqttEntity properties
* remove default name for MqttEntity
Default naming is sensible enough
* disable overriding common MqttEntity schema
* merge common MqttEntity schemas into MQTT_ENTITY_COMMON_SCHEMA
2021-03-11 13:42:13 +01:00
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
Erik Montnemery
4d6e694d14
Fix discovery update of MQTT state templates ( #39901 )
2020-09-10 20:52:23 +02:00
Erik Montnemery
9aba1985c7
Fix MQTT light value template ( #39820 )
2020-09-08 23:11:42 +02:00
HomeAssistant Azure
07d5af1969
[ci skip] Translation update
2020-09-08 00:04:13 +00:00
HomeAssistant Azure
bfd6989c75
[ci skip] Translation update
2020-09-04 00:04:26 +00:00
J. Nick Koston
65e53b8251
Support reloading mqtt yaml configuration ( #39531 )
2020-09-02 20:16:21 -05:00
Erik Montnemery
4c6960ed36
Fix discovery update of MQTT light ( #39325 )
2020-09-02 10:52:33 +02:00
HomeAssistant Azure
989a040b67
[ci skip] Translation update
2020-08-29 00:03:59 +00:00
Phil Bruckner
e6141ae558
Add description of what caused an automation trigger to fire ( #39251 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-28 17:02:12 +02:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Erik Montnemery
4e39a00b3d
Use boolean for mqtt fan state ( #39332 )
2020-08-27 21:04:58 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
HomeAssistant Azure
195d4b6897
[ci skip] Translation update
2020-08-27 00:04:55 +00: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
b1c0d8fb6c
Minor cleanup of MQTT ACK handling ( #39217 )
2020-08-24 17:28:07 +02:00
Erik Montnemery
3df67ff9e1
Fix race when waiting for MQTT ACK ( #39193 )
2020-08-24 11:13:12 +02:00
Erik Montnemery
ee043d8614
Wait for broker to ACK MQTT operations ( #39051 )
...
* Wait for broker to ACK MQTT operations
* Deduplicate new code
* Fix tests
* Improve test
* Don't hold PAHO lock when waiting for ACK
* Fix tests
* Add constant for ACK timeout
2020-08-21 17:00:13 +02:00
kbickar
2ec546db3d
Fix for exception when checking if fan without speed is on ( #39096 )
...
* Fix for exception when checking if fan without speed is on
* Organized imports
* Space
2020-08-21 08:20:28 -06:00
Phil Bruckner
ca9dd0c833
Reorganize trigger code ( #38655 )
2020-08-17 11:54:56 -05:00
Erik Montnemery
4fa346278c
Enable PAHO MQTT client logging ( #38767 )
2020-08-11 22:54:41 +02:00
Michaël Arnauts
d7d7ee6524
Use global CONF_UNIQUE_ID for mqtt ( #38595 )
...
* Use global CONF_UNIQUE_ID for mqtt
* Update __init__.py
* Update __init__.py
* Update __init__.py
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-09 16:00:14 -05:00
Erik Montnemery
4ed1f8023b
Suppress MQTT discovery updates without changes ( #38568 )
2020-08-06 10:43:47 +02:00
HomeAssistant Azure
e32a57ce48
[ci skip] Translation update
2020-08-06 00:02:06 +00:00
HomeAssistant Azure
e76db60367
[ci skip] Translation update
2020-08-05 00:02:19 +00:00
Erik Montnemery
86e38a8467
Add missing MQTT strings ( #38513 )
2020-08-03 17:54:09 +02:00
HomeAssistant Azure
8abdc2c969
[ci skip] Translation update
2020-07-27 00:02:58 +00:00
Erik Montnemery
fa0e12ffe8
Use keywords for MQTT birth and will ( #38040 )
2020-07-21 14:10:34 -07:00
Erik Montnemery
908b72370b
Correct arguments to MQTT will_set ( #38036 )
2020-07-21 12:36:21 -07:00
HomeAssistant Azure
83d4e5bbb7
[ci skip] Translation update
2020-07-21 00:03:00 +00:00
Erik Montnemery
53d6f4948e
Adapt MQTT config flow to default birth and will ( #37875 )
2020-07-15 11:16:03 -07:00
Ville Skyttä
ac0dbb17af
Attrs cleanups ( #37849 )
2020-07-14 10:30:30 -07:00
HomeAssistant Azure
aabf0dab88
[ci skip] Translation update
2020-07-14 00:03:03 +00:00
HomeAssistant Azure
d3b47b6d89
[ci skip] Translation update
2020-07-13 00:02:52 +00:00
Erik Montnemery
b187b17a4f
Fix MQTT availability startup race ( #37718 )
2020-07-10 09:40:15 -07:00
Erik Montnemery
383db60dff
Tweak MQTT availability ( #37719 )
2020-07-10 09:39:18 -07:00
HomeAssistant Azure
251a1d6619
[ci skip] Translation update
2020-07-09 00:05:04 +00:00
Erik Montnemery
fb3049d6a2
Set MQTT sensor to state unavailable when value expires ( #36609 )
2020-07-08 16:20:19 -07:00
HomeAssistant Azure
0426b70046
[ci skip] Translation update
2020-07-07 00:17:49 +00:00
Erik Montnemery
b826970b16
Fix base topic for 'topic' ( #37475 )
2020-07-06 15:17:13 -07:00
HomeAssistant Azure
6749424508
[ci skip] Translation update
2020-07-06 00:02:55 +00:00
Erik Montnemery
b63655057c
Publish birth and will messages by default ( #37371 )
...
* Publish birth and will messages by default
* Remove useless copy
2020-07-04 17:49:08 +02:00
Erik Montnemery
4b3ad0a1cd
Support multiple MQTT availability topics ( #37418 )
...
* Support multiple MQTT availability topics
* Make availability list and availability_topic exclusive
* Make availability list and availability_topic exclusive
* Add missing abbreviation
2020-07-04 17:48:34 +02:00
Erik Montnemery
9ade1de3d5
Support empty output of MQTT binary_sensor value_template ( #37420 )
...
* Support empty output of MQTT binary_sensor value_template
* Strip white space
* Add test
* Add test
2020-07-04 17:48:02 +02:00
Erik Montnemery
cd5f6a0c56
Don't print MQTT credentials to log ( #37364 )
2020-07-03 11:01:22 -07:00
HomeAssistant Azure
352c572e5d
[ci skip] Translation update
2020-07-01 00:06:46 +00:00
definitio
12510b0c97
Fixes after PR #36479 ( #37230 )
2020-06-29 15:36:52 -07:00
HomeAssistant Azure
c1194c90cb
[ci skip] Translation update
2020-06-28 00:05:05 +00:00
HomeAssistant Azure
e48bcd2070
[ci skip] Translation update
2020-06-27 00:05:54 +00:00
HomeAssistant Azure
98a388e65a
[ci skip] Translation update
2020-06-26 00:04:23 +00:00
HomeAssistant Azure
cbb76be9d0
[ci skip] Translation update
2020-06-25 00:08:30 +00:00
HomeAssistant Azure
04f75d6557
[ci skip] Translation update
2020-06-24 00:08:54 +00:00
Erik Montnemery
bb17cbdd83
Drop MQTT broker tls_version parameter ( #37033 )
2020-06-23 12:12:37 -07:00
Erik Montnemery
1b3e5460a9
Remove embedded MQTT broker ( #37032 )
2020-06-23 09:51:50 -07:00
Erik Montnemery
747490ab34
Support reconfiguring MQTT config entry ( #36537 )
2020-06-22 17:49:01 -07:00
Erik Montnemery
a2e2c35011
Use pytest for more MQTT tests ( #36859 )
...
* Use pytest for more MQTT tests
* Address review comments
* Break out PAHO client mock in separate fixture.
* tweak.
2020-06-22 22:02:29 +02:00
Franck Nijhof
3cc94f7d6a
ConfigFlow default discovery without unique ID ( #36754 )
2020-06-15 13:38:38 +02:00
HomeAssistant Azure
b15caf31a9
[ci skip] Translation update
2020-06-15 00:03:32 +00:00
HomeAssistant Azure
81355a0e23
[ci skip] Translation update
2020-06-08 00:02:43 +00: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
definitio
ad5101c5c0
Set state for MQTT entities to 'unavailable' when no connection to broker ( #36479 )
...
* Report 'unavailable' state when not connected
to MQTT broker
* Fix tests
* Rewrite to remove the polling
* Add tests
* Add some fixes
2020-06-07 09:21:16 +02:00
Quentame
1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ( #36233 )
...
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const
* Fix pylint
* Use in tests
* Search for "client_id"
* Fix tests
* Fix test
* Fix test
2020-05-30 17:27:20 +02:00
HomeAssistant Azure
564fb1d1e5
[ci skip] Translation update
2020-05-29 00:04:16 +00:00
Erik Montnemery
f1af5b71e2
Correct MQTT device trigger reconfiguration with same topic ( #36234 )
2020-05-28 15:50:23 -07:00
Erik Montnemery
31250eafe8
Fix custom position range ( #36222 )
2020-05-28 11:37:09 -06:00
Erik Montnemery
8de863ecf1
Let PAHO MQTT client handle connection to MQTT server ( #35983 )
...
* Let PAHO client handle connection to MQTT server
2020-05-26 17:12:22 +02:00
Xiaonan Shen
7e67b6b568
Improve Vacuum Entity ( #35554 )
2020-05-25 17:56:12 -07:00
HomeAssistant Azure
56efc341dd
[ci skip] Translation update
2020-05-23 00:02:41 +00:00
HomeAssistant Azure
e94f44f294
[ci skip] Translation update
2020-05-17 00:02:56 +00:00
HomeAssistant Azure
9586e9ebef
[ci skip] Translation update
2020-05-15 00:02:56 +00:00
Paulus Schoutsen
0efeefe3b2
Update translations
2020-05-13 11:27:21 -07:00
Paulus Schoutsen
dd32324e01
Use config flow references for data ( #35529 )
2020-05-12 10:50:44 -07:00
Pieter Goetschalckx
02a36a9b68
Add min_mireds and max_mireds to MQTT Light ( #32613 )
...
* Add min_mireds and max_mireds to MQTT Light
* Add abbreviations for min_mireds and max_mireds
* Add tests for min_mireds and max_mireds
2020-05-10 09:34:48 +02:00
Erik Montnemery
f9b420a5a5
Make sure MQTT light brightness is not rounded to 0 ( #35207 )
2020-05-04 15:54:49 -07:00
Michael Bisbjerg
e7fc886992
Simplify MQTT light brightness logic ( #35097 )
2020-05-03 18:48:24 +02:00
HomeAssistant Azure
78f846d532
[ci skip] Translation update
2020-05-03 00:02:26 +00:00
unixko
8c84e47c94
added abbreviation for temperature_unit ( #35076 )
...
Added temp_unit for temperature_unit.
2020-05-02 19:59:23 +02:00
Erik Montnemery
2b13a8cde4
Include QoS and retain in MQTT debug info ( #35011 )
2020-05-01 08:41:57 -07:00
Erik Montnemery
82a478e2fb
Fix MQTT debug info for same topic ( #34952 )
2020-04-30 22:34:44 -07:00
HomeAssistant Azure
bd72ddda3c
[ci skip] Translation update
2020-05-01 00:02:55 +00:00
Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity ( #34673 )
2020-04-26 18:50:37 +02:00
Erik Montnemery
e4333a7a44
Rename Light to LightEntity ( #34593 )
2020-04-26 18:49:41 +02:00
Erik Montnemery
d3ed80cf53
Rename VacuumDevice to VacuumEntity ( #34674 )
2020-04-26 02:11:08 +02:00
HomeAssistant Azure
90e0a1af8a
[ci skip] Translation update
2020-04-26 00:02:45 +00:00
Erik Montnemery
8c5c963b96
Rename CoverDevice to CoverEntity ( #34595 )
2020-04-25 18:07:15 +02:00
Erik Montnemery
6f7f5b4034
Rename AlarmControlPanel to AlarmControlPanelEntity ( #34590 )
2020-04-25 18:05:28 +02:00
Erik Montnemery
29bc93ea98
Rename ClimateDevice to ClimateEntity ( #34591 )
2020-04-25 18:04:03 +02:00
Erik Montnemery
b30d117e7d
Rename LockDevice to LockEntity ( #34594 )
2020-04-25 18:02:41 +02:00
Erik Montnemery
b022e08db9
Rename BinarySensorDevice to BinarySensorEntity ( #34462 )
...
* Rename BinarySensorDevice to BinarySensorEntity
* Tweak
* Move deprecation warning to __new__, add test
* Move deprecation warning back to __init__
* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
HomeAssistant Azure
da87ec8499
[ci skip] Translation update
2020-04-23 00:05:07 +00:00
Erik Montnemery
4448eb94a1
Only subscribe when MQTT client is connected. ( #34557 )
2020-04-22 14:38:04 -07:00
Tom
d6ab36bf8e
Set mqtt binary_sensor unavailable if expire_after specified ( #34259 )
...
* Set self._expired=True if expire_after specified
* Added test_expiration_on_discovery_and_discovery_update_of_binary_sensor to mqtt/test_binary_sensor.py
* Fixed flake8 error
* Fixed isort error
2020-04-22 23:29:49 +02:00
Erik Montnemery
6631bbc6f5
Remove reconnect logic from MQTT client. ( #34556 )
2020-04-22 14:28:36 -07:00
Paulus Schoutsen
e002c84eba
Don't set step title if it's integration title ( #34524 )
2020-04-22 15:05:39 +02:00
Erik Montnemery
877eb0c3ad
Don't log same MQTT message multiple times ( #34511 )
2020-04-21 16:48:04 -07:00
Joakim Sørensen
730a257f3c
Rename translations dir for integrations ( #34494 )
2020-04-21 16:11:05 -07:00
HomeAssistant Azure
6d7fb9f46a
[ci skip] Translation update
2020-04-20 00:04:37 +00:00