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
emontnemery
ce1fe06193
Write state directly in all MQTT platforms ( #21971 )
2019-03-12 14:46:48 -07:00
Paulus Schoutsen
429bbc05dc
Add WS subscription command for MQTT ( #21696 )
...
* Add WS subscription command for MQTT
* Add test
* Add check for connected
* Rename event_listeners to subscriptions
2019-03-10 20:07:09 -07:00
Jason Hu
fe1840f901
Deprecate http.api_password ( #21884 )
...
* Deprecated http.api_password
* Deprecated ApiConfig.api_password
GitHub Drafted PR would trigger CI after changed it to normal PR.
I have to commit a comment change to trigger it
* Trigger CI
* Adjust if- elif chain in auth middleware
2019-03-10 19:55:36 -07:00
Marco M
05333f60d7
Fix missing code_required check in async_alarm_arm_night ( #21858 )
...
* Fix missing code_required check in async_alarm_arm_night
* Remove double code validation
Test added
2019-03-10 14:25:01 +01:00
Marco M
c3d4738649
Mqtt alarm added value_template and code_arm_required ( #19558 )
...
* Added value_template config for parsing json value from state topic
Added arm_code_required to avoid code enter when arming
* Renamed config parameter to code_arm_required
* Fix for discovery update compatibility
* Fixed lint error
* Added test
2019-02-28 17:44:23 +01:00
Joakim Plate
c5de32e7b1
Climate const.py move ( #20945 )
...
* Move constants to const.py
* Import from const instead of climate
2019-02-14 20:34:43 +01:00
Ryan Wagoner
62b2b23d0b
Add night arm mode to MQTT alarm control panel ( #20961 )
...
* Add night arm mode to MQTT alarm control panel
* Add unit test for MQTT alarm night mode
2019-02-13 22:52:32 +01:00
emontnemery
22af9707ad
Add support for device_class to MQTT cover ( #21044 )
2019-02-13 19:58:46 +00:00
emontnemery
5f7f7777a0
Fix encoding for MQTT camera ( #20932 )
2019-02-10 12:35:54 +01:00
emontnemery
b1faad0a50
Use PLATFORM_SCHEMA_BASE as base schema for additional components. ( #20578 )
...
* Disable extra=vol.ALLOW_EXTRA for additional platforms.
* Remove PLATFORM_SCHEMA_2
* Add entity_namespace to base platform schema
2019-02-04 21:52:19 -08:00
emontnemery
79d3f533a9
Add missing abbreviations ( #20741 )
2019-02-04 10:54:40 -08:00
Jason Hu
d7b61f7ff6
Move mqtt_mock to tests/components/mqtt/conftest.py ( #20621 )
...
* Move mqtt_mock to tests/components/mqtt/conftest.py
* Move mqtt room presence sensor test to tests/components/mqtt
* Revert "Move mqtt room presence sensor test to tests/components/mqtt"
This reverts commit e08bc143
* Decouple mqtt room presence sensor test and mqtt_mock
2019-01-31 21:22:29 +01:00
emontnemery
89fc3b2a1b
Disable extra=vol.ALLOW_EXTRA for MQTT platforms. ( #20562 )
2019-01-29 09:29:02 -08:00
emontnemery
3ee3acd550
Update device registry of MQTT light ( #20441 )
...
* Update device registry of MQTT light
* Move config_entry to constructor
2019-01-28 19:45:34 -08:00
emontnemery
bb1583c453
Add discovery update support to MQTT camera ( #20529 )
2019-01-28 16:21:38 -08:00
emontnemery
bb4ca1f525
Cleanup if discovered mqtt vacuum can't be added ( #20549 )
2019-01-28 15:56:47 -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
8804f55fcc
Update device registry of MQTT Vacuum ( #20500 )
2019-01-27 17:43:16 +01:00
emontnemery
1f93984fd5
Update device registry of MQTT Lock ( #20501 )
2019-01-27 17:42:45 +01:00
emontnemery
60dc337f3f
Update device registry of MQTT cover ( #20443 )
...
* Update device registry of MQTT cover
* Move config_entry to constructor
2019-01-26 10:52:41 -08:00
emontnemery
85c72fbca6
Update device registry of MQTT alarm ( #20439 )
2019-01-26 10:48:35 -08:00
emontnemery
85ccd71d39
Update device registry of MQTT sensor ( #20440 )
2019-01-26 10:48:18 -08:00
Paulus Schoutsen
09cbcb74bc
Merge pull request #20442 from emontnemery/mqtt_binary_sensor_update_device_info
...
Update device registry of MQTT binary_sensor
2019-01-26 10:47:57 -08:00
Paulus Schoutsen
0e453fe492
Update device registry of MQTT climate ( #20444 )
2019-01-26 10:47:29 -08:00
emontnemery
1d16bb2cd4
Update device registry of MQTT fan ( #20445 )
2019-01-26 10:46:41 -08:00
emontnemery
6d2e7db123
Update device registry of MQTT climate
2019-01-26 09:04:02 +08:00
emontnemery
d8e43978b7
Update device registry of MQTT binary_sensor
2019-01-26 08:58:08 +08:00
emontnemery
d84cd01cbf
Cleanup if discovered mqtt light can't be added ( #19740 )
...
* Cleanup if discovered mqtt light can't be added
* No bare except
* Clear ALREADY_DISCOVERED list with helper
* Use constant instead of string literal
2019-01-24 22:40:52 -08:00
emontnemery
a1da6a677a
Update device registry of MQTT Switch ( #19540 )
...
* MQTT Switch: Update device registry
* Move config_entry to constructor
* Remove duplicated code
* Fix merge error
2019-01-24 22:39:16 -08:00
emontnemery
3fcbcd5a38
Add JSON attribute topic to MQTT alarm ( #20238 )
2019-01-20 16:42:56 -08:00
emontnemery
dbba3eb0d4
Add JSON attribute topic to MQTT climate ( #20239 )
2019-01-20 16:42:35 -08:00
emontnemery
89e9d827a2
Add JSON attribute topic to MQTT fan ( #20240 )
2019-01-20 16:42:17 -08:00
emontnemery
ab4e4787e3
Add JSON attribute topic to MQTT lock ( #20241 )
2019-01-20 16:41:50 -08:00
Erik
5b8f64093b
Add JSON attribute topic to MQTT vacuum
2019-01-19 11:58:21 +01:00
emontnemery
6800871c13
Log exceptions thrown by signal callbacks ( #20015 )
...
* Log exceptions thrown by signal callbacks
* Fix unsub
* Simplify traceback print
* Typing
* Add test
* lint
* Review comments
* Rework MQTT test case
* Fix bad merge
* Fix bad merge
2019-01-17 14:44:57 -08:00
emontnemery
f094a7369d
Add JSON attribute topic to MQTT switch ( #20192 )
2019-01-17 10:55:22 -08:00
emontnemery
234f348ba1
Add JSON attribute topic to MQTT light ( #20191 )
2019-01-17 10:54:22 -08:00
emontnemery
d1c6eb4f3e
Add JSON attribute topic to MQTT cover ( #20190 )
...
* Add JSON attribute topic to MQTT cover
* Lint
2019-01-17 10:53:52 -08:00
emontnemery
368682647d
Log exceptions thrown by MQTT message callbacks ( #19977 )
...
* Log exceptions thrown by MQTT message callbacks
* Fix tests
* Correct method for skipping wrapper in traceback
* Lint
* Simplify traceback print
* Add test
* Move wrapper to common helper function
* Typing
* Lint
2019-01-16 13:50:21 -08:00
emontnemery
5b53bd6aa0
Move MQTT platforms under the component ( #20050 )
...
* Move MQTT platforms under the component
2019-01-15 17:31:06 +01:00
Fredrik Erlandsson
b9a488912a
Add support for 'via_hub' for device_info ( #19454 )
...
* Add support for 'via_hub'
* Update config schema
* add domain to via_hub
* add tests for via_hub
2019-01-11 13:11:13 -08:00
Paulus Schoutsen
df21dd21f2
RFC: Call services directly ( #18720 )
...
* Call services directly
* Simplify
* Type
* Lint
* Update name
* Fix tests
* Catch exceptions in HTTP view
* Lint
* Handle ServiceNotFound in API endpoints that call services
* Type
* Don't crash recorder on non-JSON serializable objects
2018-11-30 21:28:35 +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
Pascal Vizeli
eb0d989c88
Bugfix discovery (delete/mqtt) call for Hass.io ( #18159 )
...
* Bugfix discovery delete call for Hass.io
* Fix host
* fix tests
2018-11-04 12:19:04 +01:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ( #17750 )
...
* Convert core tests
* Convert component tests to use pytest assert
* Lint 🤷♂️
* Fix test
* Fix 3 typos in docs
2018-10-24 12:10:05 +02: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
af2402ea59
Implement base for MQTT device registry integration ( #16943 )
...
* Implement base for MQTT device registry integration
* Lint
* Lint
* Address comments
* Lint
* Lint
* Address comments
* Only add keys if specified
See https://github.com/home-assistant/home-assistant/pull/17136#discussion_r223267185
2018-10-08 12:53:30 +02:00
Paulus Schoutsen
c69a790ede
Add Hass.io discovery to MQTT ( #16962 )
...
* Add Hass.io discovery to MQTT
* Update en.json
* Update __init__.py
* Update config_flow.py
* Update strings.json
* Update test_config_flow.py
* Lint
* Ensure we don't send bad data in config entry
2018-10-01 14:11:21 +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