Erik Montnemery
76c3058d15
Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA ( #51719 )
2021-06-10 19:11:38 +02:00
Erik Montnemery
a1e3283f8f
Improve editing of device automations referencing non-added sensors ( #51312 )
2021-06-08 23:28:08 -07:00
Martin Hjelmare
fdbef90a57
Remove device class timestamp from device condition and trigger ( #48431 )
...
* Remove unit from garmin connect
* Remove unit from hvv departures
* Remove device class timestamp from device condition and trigger
* Remove unit from systemmonitor
* Use device class constant for timestamp in ring
2021-04-01 15:05:10 +02:00
Alexei Chetroi
79b5ca9415
Add device classes for CO and CO2 measurements ( #47487 )
2021-03-07 00:52:43 +01:00
Ville Skyttä
da66a4e933
Device automation config error message improvements ( #44656 )
...
Refs #44654 , #44655
2020-12-31 00:02:14 +01:00
Phil Bruckner
ca9dd0c833
Reorganize trigger code ( #38655 )
2020-08-17 11:54:56 -05:00
fabiocastagnino
02d572aae5
Add device classes for electrical measurement ( #36800 )
...
* added device classes for electrical measurement
(cherry picked from commit 2409fe19ed43bef568a0cca826652867d3a2d71a)
* upadte power factor unit (%)
* update power factor unit (%)
2020-08-08 21:04:18 +02:00
Franck Nijhof
187b6525b4
Removal of extraneous parenthesis ( #33637 )
2020-04-04 20:08:55 +02:00
Bas Nijholt
df85a50f3b
Sort imports according to PEP8 for sensor ( #29683 )
2019-12-09 11:57:49 +01:00
Erik Montnemery
475b43500a
Add above and below to sensor condition extra_fields ( #27364 )
...
* Add above and below to sensor condition extra_fields
* Change unit_of_measurement to suffix in extra_fields
* Check if sensor has unit when getting capabilities
* Improve tests
2019-10-26 06:55:42 +08:00
Erik Montnemery
4700d647b0
Minor tweaks for sensor device automations ( #27829 )
...
* Minor tweaks for sensor device automations
* Change unit_of_measurement to suffix in extra_fields
* Address review comment
2019-10-22 11:40:07 -07:00
Erik Montnemery
7f20210e93
Include unit_of_measurement in sensor device trigger capabilities ( #27265 )
...
* Expose unit_of_measurement in sensor device trigger
* Update test
2019-10-08 12:52:25 -07:00
Erik Montnemery
dabdf8b577
Validate generated device triggers ( #27264 )
...
* Validate generated trigger
* Update scaffold
2019-10-07 13:09:48 -07:00
Erik Montnemery
b8f41dbb75
Add device condition support to sensor entities ( #27163 )
...
* Add device condition support to sensor entities
* Fix typing
2019-10-04 10:11:14 -07:00
Erik Montnemery
89ebc17fb1
Only generate device trigger for sensor with unit ( #27152 )
2019-10-03 13:30:59 -07:00
Erik Montnemery
cda7692f24
Add support for `for` to binary_sensor, light and switch device conditions ( #27153 )
...
* Add support for `for` to binary_sensor, light and switch device conditions
* Fix typing
* Fixup
* Fixup
2019-10-03 13:29:57 -07:00
Erik Montnemery
9902209ad2
Add above and below to sensor trigger extra_fields ( #27160 )
2019-10-03 22:17:58 +02: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