Dan Nixon
f0bf7b0def
More support for availability reporting on MQTT components ( #11336 )
...
* Abstract MQTT availability from individual components
- Moved availability topic and payloads to MQTT base schema.
- Updated components that already report availability:
- Switch
- Binary sensor
- Cover
* Add availability reporting to additional MQTT components
- Light
- JSON light
- Template light
- Lock
- Fan
- HVAC
- Sensor
- Vacuum
- Alarm control panel
* Annotate MQTT platform coroutines
2018-01-01 18:32:29 -08:00
Pascal Vizeli
90f9a6bc0a
Cleanup and simplitfy the async state update ( #9390 )
...
* Cleanup and simplitfy the async state update
* Update test_entity.py
2017-09-12 10:01:03 +02:00
timstanley1985
3342db33e4
MQTT Switch - Add configurable availability payload ( #8934 )
...
* Add configurable availabilty payload
* Fix
* Fix
* Lint fixes
* Fix tests
* Fix tests
* Move from const.py to mqtt switch
* New test
* Fix flake*
2017-08-15 23:04:57 -07:00
Abílio Costa
ccf0559059
mqtt switch: add voluptuous for availability topic ( #8797 )
2017-08-03 07:18:18 +02:00
Abílio Costa
9d5c61b2f0
MQTT Switch: add availability_topic for online/offline status ( #8593 )
...
* mqtt switch: add availability_topic for online/offline status
* fix method doc strings
* MQTT Switch: add test
2017-07-27 08:24:15 +02:00
Fabian Affolter
4d52b0ecd5
Update docstrings ( #7405 )
...
* Update docstrings
* Fix lint issues
* Update docstrings
2017-05-02 22:47:20 +02:00
Fabian Affolter
22b28d85db
Add switch to MQTT discovery ( #6733 )
2017-03-26 15:48:28 +02:00
Pascal Vizeli
41f558b181
Bootstrap / Component setup async ( #6264 )
...
* Bootstrap / Entiy setup async
* Cleanup add_job stuff / return task/future object
* Address paulus comments / part 1
* fix install pip
* Cleanup bootstrap / move config stuff to config.py
* Make demo async
* Further bootstrap improvement
* Address Martin's comments
* Fix initial tests
* Fix final tests
* Fix bug with prepare loader
* Remove no longer needed things
* Log error when invalid config
* More cleanup
* Cleanups platform events & fix lint
* Use a non blocking add_entities callback for platform
* Fix Autoamtion is setup befor entity is ready
* Better automation fix
* Address paulus comments
* Typo
* fix lint
* rename functions
* fix tests
* fix test
* change exceptions
* fix spell
2017-02-28 20:33:19 -08:00
Pascal Vizeli
b0d3bbed79
Convert mqtt platforms to async ( #6145 )
...
* Convert mqtt platforms to async
* fix lint
* add more platforms
* convert mqtt_eventstream
* fix lint / add mqtt_room
* fix lint
* fix test part 1
* fix test part 2
* fix out of memory bug
* address comments
2017-02-22 09:43:22 +01:00
Paulus Schoutsen
0f59bb208c
Migrate callbacks to use schedule_update_ha_state ( #4426 )
...
* Migrate callbacks to use schedule_update_ha_state
* Migrate MQTT sensor callback to async
* Migrate wemo to not update inside schedule_update_ha_state
* Make MQTT switch async
* Fix nx584 test
* Migrate tellstick callback
* Migrate vera callback
* Alarm control panel - manual: use async callbacks
* Run the switch rest tests that work
2016-11-17 07:34:46 -08:00
Paulus Schoutsen
f006b00dc1
Fix spelling schedule_update_ha_state ( #4415 )
2016-11-16 08:26:29 -08:00
Pascal Vizeli
41aaeb715a
Convert switch to AsnycIO ( #4382 )
...
* Convert switch to AsnycIO
* Move update entity to service
* use time better for faster handling
* Change to suggestion from paulus
* Use new shedule_update_ha_state
* fix lint
* minimize executor calls
2016-11-15 21:06:50 -08:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Paulus Schoutsen
00e298206e
Optimize template 2 ( #3521 )
...
* Enforce compiling templates
* Refactor templates
* Add template validator to Logbook service
* Some more fixes
* Lint
* Allow easy skipping of rfxtrx tests
* Fix template bug in AND & OR conditions
* add entities extractor
Conflicts:
tests/helpers/test_template.py
* fix unittest
* Convert template to be async
* Fix Farcy
* Lint fix
* Limit template updates to related entities
* Make template automation async
2016-09-27 21:29:55 -07:00
Fabian Affolter
ee6c83f569
Use constants and update ordering ( #3267 )
...
🐬
2016-09-08 18:34:55 -06:00
Jan Harkes
a7016e4b32
Move CONF_STATE_TOPIC, CONF_COMMAND_TOPIC and CONF_RETAIN to mqtt component.
2016-04-06 22:51:39 -04:00
Jan Harkes
deecec5e4e
Config validation for MQTT switch platform.
2016-04-06 22:51:39 -04:00
Paulus Schoutsen
025713ee41
Type checks for MQTT config
2016-03-10 21:42:17 -08:00
Fabian Affolter
49ebc6d0b0
Fix PEP257 issues
2016-03-08 13:35:39 +01:00
Fabian Affolter
582394bc3b
Modify import of template and PEP257
2016-02-23 21:19:22 +01:00
Paulus Schoutsen
443b39bccd
MQTT Switch to expose assumed_state if optimistic
2016-02-20 17:17:30 -08:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Paulus Schoutsen
9a9ecb5916
Migrate MQTT from jsonpath to templates
2015-12-10 21:39:01 -08:00
Pascal Bach
69e9d39690
Allow setting the retain flag for mqtt switch.
...
Some devices can read the initial value on startup.
If the retain flag is set they always receive the value as last set by
home assistant.
2015-11-26 21:03:21 +01:00
Fabian Affolter
3e60c4801c
Update docstrings
2015-11-25 08:56:50 +01:00
Oliver van Porten
715abf241e
Disable pylint warning for callable classes
2015-11-21 17:57:15 +01:00
Oliver van Porten
799043dc0a
refactor format mqtt format parser
2015-11-20 22:45:09 +01:00
Oliver van Porten
b4cf0e874a
Support parsing mqtt messages via jsonpath
2015-11-20 22:03:17 +01:00
Fabian Affolter
97f9f8aa49
Update link to docs (Jekyll 3 update)
2015-11-09 13:12:18 +01:00
Fabian Affolter
7b60f6ca77
Remove configuration details
2015-10-21 19:43:24 +02:00
sfam
0f68b9d22b
Add optional QoS config parameter to MQTT sensor and switch (pylint)
2015-09-07 00:28:45 +00:00
sfam
c5fc5cba61
Add optional QoS config parameter to MQTT sensor and switch
2015-09-07 00:16:31 +00:00
sfam
d0c674b756
update
2015-08-22 16:10:29 +01:00
sfam
fd7808e6f4
update
2015-08-22 16:04:55 +01:00
sfam
a9a650edb6
update style issues
2015-08-22 15:10:49 +01:00
sfam
2bb4a53bd3
Add MQTT Switch
2015-08-19 01:24:40 +01:00