Kevin Cooper
4b9e3258dc
Add command_template and value_template for MQTT alarm ( #21438 )
...
* Option to send pin code with the MQTT payload for MQTT alarm
* publish code via json
Add publish code via json
add code_disarm_required
* publish code via json
Add publish code via json
add code_disarm_required
* implemented command_template
* Fix issue with night arm and add template test
* implemented value_template for mqtt alarm
* Fixed merge errors
* Requested changes
* Resolve lint errors
* Resolve hound issues
* Fix test formatting
2019-03-30 07:36:10 +01:00
Robbie Trencheny
89221bfab9
Fix for embedded MQTT server configuration ( #22305 )
...
## Description:
Passing in a configuration for the embedded MQTT server has been broken for a while. This fixes that. See related issue number for further details.
**Related issue (if applicable):** fixes #18228
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
- [x] There is no commented out code in this PR.
2019-03-22 16:01:58 -07:00
Paulus Schoutsen
72bb94de96
Update translations
2019-03-21 12:57:20 -07: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
emontnemery
ce1fe06193
Write state directly in all MQTT platforms ( #21971 )
2019-03-12 14:46:48 -07:00
Paulus Schoutsen
d635111e4f
Update translations
2019-03-12 11:31:17 -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
emontnemery
fc81826763
Introduce Entity.async_write_ha_state() to not miss state transition ( #21590 )
...
* Copy state in schedule_update_ha_state
* Lint
* Fix broken test
* Review comment, improve docstring
* Preserve order of state updates
* Rewrite
* Break up async_update_ha_state
* Update binary_sensor.py
* Review comments
* Update docstring
* hass -> ha
* Update entity.py
* Update entity.py
2019-03-09 09:52:22 -08: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
c340083ba5
Add missing retain option to mqtt.climate configuration schema ( #21536 )
2019-02-28 18:26:54 +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
Paulus Schoutsen
78217fa9b0
Update translations
2019-02-27 16:34:13 -08:00
Paulus Schoutsen
3fcbc36abe
Update translations
2019-02-21 16:40:25 -08: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
Paulus Schoutsen
02f207ea8e
Update translations
2019-02-13 15:44:18 -08: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
Paulus Schoutsen
c2eec16721
Update translations
2019-02-02 14:12:23 -08:00
Paulus Schoutsen
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08: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
Daniel Høyer Iversen
1bd31e3459
Change STATE_UNKOWN to None ( #20337 )
...
* Change STATE_UNKOWN to None
* Change STATE_UNKOWN to None
* tests
* tests
* tests
* tests
* tests
* style
* fix comments
* fix comments
* update fan test
2019-01-24 08:20:20 +01: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
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