Otto Winter
e4655a7e63
Add MQTT Sensor device_class ( #14033 )
...
* Add MQTT Sensor device_class
* Add test
2018-05-01 15:38:08 -04:00
Otto Winter
a4bf421044
Convert more files to async/await syntax ( #14142 )
...
* Move more files to async/await syntax
* Attempt Work around pylint bug
Using lazytox :P
2018-04-28 19:26:20 -04:00
Otto Winter
81b1d08d35
Add MQTT Sensor unique_id ( #13318 )
...
* Add MQTT Sensor unique_id
* Add test
* Update comment
2018-04-07 22:32:09 -04:00
Erik Eriksson
2c7bc6eaf8
Support setting icon when configuring MQTT entity ( #13304 )
2018-03-23 11:30:44 +01:00
timstanley1985
b1b0a2589e
MQTT json attributes ( #11439 )
...
* MQTT json attributes
* Fix lint
* Amends following comments
* Fix lint
* Fix lint
* Add test
* Fix typo
* Amends following comments
* New tests
* Fix lint
* Fix tests
2018-01-08 17:07:39 +01:00
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
Andrey Kupreychik
4479761131
Added force_update for REST sensor ( #11016 )
...
* Added force_update for REST sensor
* Linting error
2017-12-09 08:18:45 +01: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
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
micw
6c5989895a
Adding expire_after to mqtt sensor to expire outdated values ( #6708 )
...
* Adding expire_after to mqtt sensor to expire outdated values
* Extending test case
* mqtt: refactoring expire_after to use timed events instead of polling; lint
* refactor to reset unused trigger
* Fix: handler must be set to None after execution or removal to avoid warning
* Commenting out non-working test
* Fix lint
* Commit to trigger new build
* Commit to trigger new build
* Make testcase work
* Undo unnecessary change
* Remove default value, add extra check
2017-03-23 17:55:07 -04:00
Róbert Nagy
11f11481b2
Force update support for MQTT sensor ( #6492 )
2017-03-11 10:07:52 -08: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
Fabian Affolter
f82ac0af60
Enable sensor for discovery ( #5974 )
...
* Enable sensor for discovery
* Remove blank line
2017-02-13 23:54:13 -08: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
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
Jan Harkes
c8add59ea5
Fail when rendering undefined objects in Jinja2 templates
...
By not successfully rendering unknown objects to an empty string
the caller provided error_value actually gets used.
This allows, for instance, the MQTT sensor to retain its state when an
unexpected or unwanted message (#2733/#3834) is received.
2016-10-17 03:20:07 +02: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
911231afc1
Use constants and update ordering ( #3266 )
2016-09-09 08:37:30 +02:00
Fabian Affolter
e8c6e4d561
Clean-up, ordering, constants, and extend of schema ( #2903 )
...
* Clean-up, ordering, constants, and extend of schema
* Put REQUIREMENTS back and re-add line breaks
* Clean-up, ordering, constants, and extend of schema
* Extend platform
2016-08-20 15:40:16 -07: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
eb3f812e38
Config validation for MQTT sensor platform.
2016-04-06 22:51:39 -04:00
Fabian Affolter
8bff97083c
Fix PEPE257 issues
2016-03-08 16:46:34 +01:00
Fabian Affolter
582394bc3b
Modify import of template and PEP257
2016-02-23 21:19:22 +01:00
Fabian Affolter
60d579af84
Update/add docstrings (PEP257)
2016-02-23 06:23:04 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Philip Lundrigan
c580953bd8
Fix MQTT sensor
2016-02-04 12:38:48 -07:00
Paulus Schoutsen
9a9ecb5916
Migrate MQTT from jsonpath to templates
2015-12-10 21:39:01 -08:00
Oliver van Porten
715abf241e
Disable pylint warning for callable classes
2015-11-21 17:57:15 +01:00
Oliver van Porten
030686a978
fix flak8 warnings
2015-11-20 22:55:52 +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
a2e8fcbc77
Remove newline
2015-10-21 19:37:34 +02:00
Fabian Affolter
e10fd0d28b
Remove configuration details
2015-10-21 19:36:52 +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
01ed3b18cc
update docstring
2015-08-22 14:57:57 +01:00
sfam
8a63325abe
update
2015-08-20 23:09:11 +01:00
sfam
44263752ca
update header
2015-08-20 23:05:51 +01:00
sfam
c5db42677a
Add MQTT Sensor
2015-08-19 01:25:05 +01:00