Paulus Schoutsen
4cf86262af
Numeric state trigger: validate that above is not above below ( #32421 )
...
* Numeric state trigger: validate that above is not above below
* Lint
2020-03-03 17:26:44 -08:00
Bas Nijholt
d3f67c3841
use isort to sort imports according to PEP8 for automation ( #29620 )
2019-12-08 21:59:39 +05:30
Erik Montnemery
8ae43d2de3
Add device triggers to cover ( #28063 )
...
* Add device triggers to cover
* Use numeric_state trigger instead of template trigger
* Tweak translations
2019-10-30 20:49:01 +01:00
Erik Montnemery
3e99743244
Add device trigger support to sensor entities ( #27133 )
...
* Add device trigger support to sensor entities
* Fix typing
* Fix tests, add test helper for comparing lists
2019-10-03 06:14:35 +02:00
Paulus Schoutsen
6fdff9ffab
Reorg device automation ( #26880 )
...
* async_trigger -> async_attach_trigger
* Reorg device automations
* Update docstrings
* Fix types
* Fix extending schemas
2019-09-24 14:57:05 -07:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Phil Bruckner
f9b9883aba
Add template support to numeric_state trigger's for option ( #24955 )
2019-07-08 13:58:50 -07:00
Phil Bruckner
945afbc6d4
Fix 'same state' monitoring in numeric_state trigger ( #24910 )
2019-07-02 17:28:02 +02:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
2e9132873a
Webhook names ( #18206 )
...
* Add new automation_info param to async_trigger
* Add domain and name to webhook registration and add WS command
2018-11-05 09:23:58 +01:00
cdce8p
38e371c5d9
Async syntax 1, alarm_control_panel & automation & binary_sensor ( #17015 )
2018-10-01 08:49:19 +02:00
Paulus Schoutsen
746f4ac158
Add context to scripts and automations ( #16415 )
...
* Add context to script helper
* Update script component
* Add context to automations
* Lint
2018-09-04 21:16:24 +02:00
Pascal Vizeli
ea6ca9252c
Bugfix trigger state with multible entities ( #10857 )
...
* Bugfix trigger state with multible entities
* Fix numeric state
* fix lint
* fix dict
* fix unsub
* fix logic
* fix name
* fix new logic
* add test for state
* add numeric state test for unsub
* add test for multible entities
* Update numeric_state.py
* Update numeric_state.py
* Update state.py
* Fix logic for triple match
* Add clear to numeric state
* clear for state trigger
2017-11-30 21:03:52 +01:00
Anders Melchiorsen
61ccbb59ce
Fire numeric_state action when first state change matches criteria ( #10125 )
...
* Fire numeric_state action when first state change matches criteria
* Remove lint
* Update numeric_state.py
2017-10-25 16:01:09 +02:00
Paulus Schoutsen
a97e7bb22d
Simplify track_same_state ( #9795 )
2017-10-10 21:16:19 +02:00
Pascal Vizeli
ed699896cb
Core track same state for a period / Allow on platforms ( #9273 )
...
* Core track state period / Allow on platforms
* Add tests
* fix lint
* fix tests
* add new tracker to automation state
* update schema
* fix bug
* revert validate string
* Fix bug
* Set arguments to async_check_funct
* add logic into numeric_state
* fix numeric_state
* Add tests
* fix retrigger state
* cleanup
* Add delay function to template binary_sensor
* Fix tests & lint
* add more tests
* fix lint
* Address comments
* fix test & lint
2017-09-05 02:01:01 +02:00
Paulus Schoutsen
29f385ea76
Fix automations listening to HOMEASSISTANT_START ( #6936 )
...
* Fire EVENT_HOMEASSISTANT_START automations off right away while starting
* Actually have core state be set to 'starting' during boot
* Fix correct start implementation
* Test and deprecate event automation platform on start
* Fix doc strings
* Remove shutting down exception
* More strict when to mark an instance as finished
* Add automation platform to listen for start/shutdown
* When we stop we should wait till it's all done
* Fix testing
* Fix async bugs in tests
* Only set UVLOOP when hass starts from CLI
* This hangs normal asyncio event loop
* Clean up Z-Wave node entity test
2017-04-05 23:23:02 -07:00
Pascal Vizeli
e1cbd6b4c0
MQTT convert to async ( #6064 )
...
* Migrate mqtt to async
* address paulus comment / convert it complet async
* adress paulus comment / remove future
* Automation triggers should be async
* Fix MQTT async calls
* Show that event helpers are callbacks
* Fix tests
* Lint
2017-02-18 14:17:18 -08:00
Paulus Schoutsen
5085cdb0f7
Add async_safe annotation ( #3688 )
...
* Add async_safe annotation
* More async_run_job
* coroutine -> async_save
* Lint
* Rename async_safe -> callback
* Add tests to core for different job types
* Add one more test with different type of callbacks
* Fix typing signature for callback methods
* Fix callback service executed method
* Fix method signatures for callback
2016-10-04 20:44:32 -07:00
Paulus Schoutsen
7ab7edd81c
Make automation async
2016-10-01 14:11:16 -07:00
Paulus Schoutsen
b650b2b0db
Spread async love ( #3575 )
...
* Convert Entity.update_ha_state to be async
* Make Service.call async
* Update entity.py
* Add Entity.async_update
* Make automation zone trigger async
* Fix linting
* Reduce flakiness in hass.block_till_done
* Make automation.numeric_state async
* Make mqtt.subscribe async
* Make automation.mqtt async
* Make automation.time async
* Make automation.sun async
* Add async_track_point_in_utc_time
* Make helpers.track_sunrise/set async
* Add async_track_state_change
* Make automation.state async
* Clean up helpers/entity.py tests
* Lint
* Lint
* Core.is_state and Core.is_state_attr are async friendly
* Lint
* Lint
2016-09-30 12:57:24 -07: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
Paulus Schoutsen
0c0feda834
Pre-compile templates ( #3515 )
...
* Pre-compile templates
* Compile templates in numeric_state condition
2016-09-25 13:33:01 -07:00
Paulus Schoutsen
3fa1963345
Convert automation to entities with services
2016-08-25 23:36:48 -07:00
happyleavesaoc
8df91e6a17
numeric state: validate multiple entities ( #2066 )
...
* validate multiple entities
* point to current entity
2016-05-14 12:29:57 -07:00
Paulus Schoutsen
6354399d55
Initial script condition support ( #1910 )
2016-04-28 12:03:57 +02:00
Paulus Schoutsen
4e568f8b99
Automation: Add trigger context and expose to action
2016-04-21 13:59:42 -07:00
Fabian Affolter
fb7bd1bfe1
Fix PEP257 issues
2016-03-07 20:20:07 +01:00
Fabian Affolter
6ac9210919
Modify docstrings to match PEP257
2016-03-07 18:50:30 +01:00
Fabian Affolter
582394bc3b
Modify import of template and PEP257
2016-02-23 21:19:22 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Paulus Schoutsen
3b7b12bbd5
Make Flake8 happy
2016-01-12 21:53:27 -08:00
Philip Lundrigan
a0ff8819a9
Make numeric_state error message more descriptive
2015-12-17 17:37:39 -07:00
Philip Lundrigan
9fa8b27d65
Change from `value` to `state`
2015-12-15 10:12:43 -07:00
Philip Lundrigan
455a9c83a6
Simplify logic
2015-12-15 08:57:30 -07:00
Philip Lundrigan
a517784c9e
Condense in_range template logic
2015-12-14 15:07:35 -07:00
Philip Lundrigan
91a945f4c7
Slight style change
2015-12-14 15:01:38 -07:00
Philip Lundrigan
53239387e0
Add support for template
2015-12-14 14:47:24 -07:00
Paulus Schoutsen
a3981be501
Merge pull request #681 from pavoni/add_solar_elevation
...
Add automations based on Solar Elevation
2015-11-29 14:14:26 -08:00
Paulus Schoutsen
a301d869d7
PyLint 1.5 fixes
2015-11-29 13:49:05 -08:00
pavoni
73e3ce5044
Fix bug
2015-11-29 12:18:54 +00:00
pavoni
f4c3fbe8fd
Add attribuet config to numeric state platform to allow trigger based in attributes rather than states.
2015-11-29 11:56:47 +00:00
Fabian Affolter
97f9f8aa49
Update link to docs (Jekyll 3 update)
2015-11-09 13:12:18 +01:00
Fabian Affolter
cb69ac30ec
Add link to docs
2015-10-13 21:07:53 +02:00
Paulus Schoutsen
b2ad8db86b
Add condition type to automation component
2015-09-14 22:51:28 -07:00
Paulus Schoutsen
68c1dd7cd4
Refactor automation configuration
2015-09-14 22:05:40 -07:00
Paulus Schoutsen
fe2a9bb83e
Fix numeric state if
2015-09-14 20:46:57 -07:00
Stefan Jonasson
d5198d4242
Implemented the if condition support in numeric state
2015-09-14 20:33:01 +02:00
Paulus Schoutsen
2a11d02fe4
Add if to automation
2015-09-13 22:27:27 -07:00