Commit Graph

40 Commits (7e70252de58d6dfa857eb35c1d21a599b0fc655f)

Author SHA1 Message Date
Erik Montnemery dcb2a211e5
Remove last_reset attribute and set state class to total_increasing for Shelly energy sensors (#54800) 2021-08-18 13:13:35 +02:00
Erik Montnemery e558b3463e
Move temperature conversions to sensor base class (6/8) (#54476)
* Move temperature conversions to entity base class (6/8)

* Fix tests
2021-08-12 17:40:55 +02:00
Shay Levy 58ccfff067
Fix Shelly last_reset (#54101) 2021-08-05 19:23:05 -07:00
Simone Chemelli e9a00ad4ce
Add last reset to Shelly's energy entities (#53710) 2021-07-29 12:10:53 -07:00
Paulus Schoutsen bbd1a85b09
Add last reset to Shelly (#53654) 2021-07-28 15:48:27 -07:00
Maciej Bieniek 772cbd59d7
Improve typing in Shelly integration (#52544) 2021-07-21 10:11:44 -07:00
Marc Mueller 074d762664
Rename and reorganize electric unit constants (#53243) 2021-07-20 20:06:23 +02:00
Maciej Bieniek c91f89260e
Add `state_class` to entities coming from battery powered devices in Shelly integration (#51009)
* Fix sensor state_class

* Remove state class from total work time sensor

* Add state_class restore mechanism

* Remove commented code

* Remove unnecessary code
2021-05-23 23:10:22 +03:00
Erik Montnemery 73d7a754e8
Mark temperature sensors as STATE_CLASS_MEASUREMENT (#50889)
* Mark temperature sensors as STATE_CLASS_MEASUREMENT

* Fix broadlink tests

* Tweak Hue changes
2021-05-21 11:44:34 +02:00
Shay Levy 7c7a56f704
Fix Shelly external sensors invalid 999 value (#49994) 2021-05-02 20:58:14 -07:00
Shay Levy 31c519b26d
Fix shelly RSSI sensor unit (#49265) 2021-04-15 19:52:06 +02:00
Simone Chemelli bb7f64596c
Add operation sensor to Shelly Gas (#48462) 2021-03-31 09:46:39 -07:00
Erik Montnemery a09c8eecb7
Fix some sensor classes (#48254)
* Fix some sensor classes

* Tweak

* Tweak
2021-03-23 15:56:33 +01:00
Erik Montnemery 64bc9a8196
Migrate integrations r-s to extend SensorEntity (#48215) 2021-03-22 19:54:14 +01:00
Erik Montnemery 14ff6d4d1f
Update integrations p-s to override extra_state_attributes() (#47759) 2021-03-11 21:23:20 +01:00
Shay Levy 19f67335ec
Revert Shelly temperature sensor name change (#47664) 2021-03-09 13:45:58 +01:00
Simone Chemelli 65a2f07a01
Fix missing Shelly external input (#47028)
* Add support for external input (Shelly 1/1pm add-on)

* Make external sensor naming consistent

* Fix case consistency
2021-02-25 09:51:18 +01:00
Simone Chemelli 4c294adfe8
Add missing tilt icon to Shelly tilt sensor (#46993) 2021-02-24 21:18:14 +01:00
Shay Levy 0875f654c8
Add support for Shelly battery operated devices (#45406)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-03 17:03:22 +01:00
Shay Levy 2498340e1f
Fix Shelly uptime sensor (#43651)
Fix sensor to include time zone
Report new value only if delta > 5 seconds
Modify REST sensors class to use callable attributes
2020-11-27 09:40:06 +01:00
Simone Chemelli b7f36106df
Add Shelly UNI ADC sensor (#43490) 2020-11-25 15:37:07 +01:00
Shay Levy 982624b3ac
Support for Shelly Binary Input Sensors (#43313)
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-19 11:42:24 +01:00
Simone Chemelli 4c2bf1ddf5
Avoid creating battery sensor if Shelly device is external powered (#43243) 2020-11-16 11:49:23 +01:00
Simone Chemelli 31502e960a
Shelly: minor improvements (#43138) 2020-11-12 19:49:06 +01:00
Simone Chemelli cdc53329d0
Add Shelly totalWorkTime as Lamp life (Shelly Air) (#43112)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-12 10:38:53 +01:00
Simone Chemelli d8b067ebf9
Add Shelly support for REST sensors (#40429) 2020-11-11 20:13:14 +01:00
Shay Levy 0ddf14a98a
Cleanup and naming schema fixes for Shelly (#42987)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-11 09:05:08 +01:00
Maciej Bieniek d1c04750cd
Add voltage, power factor and energy returned sensors to Shelly integration (#40681) 2020-10-01 12:08:03 +02:00
springstan 6c8e0e20fb
Add and use light lux constant in entire code base (#40171) 2020-09-23 20:48:01 +02:00
Simone Chemelli ca26c8bbd7
Shelly: Power and Energy sensors in roller mode (#39709) 2020-09-12 22:31:01 +02:00
Maciej Bieniek 748e2696dc
Add missing sensors after reworking sensor platform in Shelly integration (#39765) 2020-09-08 23:22:44 +02:00
Paulus Schoutsen b07628ae57
Rework Shelly sensors (#39747)
* Rework Shelly sensors

* Lint

* Add shelly/entity to coveragerc
2020-09-07 14:13:20 +02:00
springstan d2b1918e9c
Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Maciej Bieniek 0b7576b634
Add some missing sensors for Shelly integration (#39651) 2020-09-04 16:42:57 +02:00
Maciej Bieniek ad3e520e09
Fix sensors without unit attribute in Shelly integration (#39629) 2020-09-04 11:44:22 +02:00
Maciej Bieniek 7e50a4999c
Add support for Shelly Gas to the Shelly integration (#39478)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-03 10:54:25 +02:00
Paulus Schoutsen aa476b392c
Filter out disconnected Shelly sensors (#39516) 2020-09-01 08:18:11 -04:00
On Freund dde0dab3db
Handle missing values in Shelly sensors (#39515) 2020-09-01 08:04:42 -04:00
Maciej Bieniek 0cffba77cf
Add more sensors to the Shelly integration (#39368) 2020-08-30 14:18:35 +02:00
Paulus Schoutsen 4b8217777e
Add basic light and sensor support to Shelly (#39288)
* Add basic light platform

* Add sensor support

* Bump aioshelly to 0.2.1

* Lint

* Use UNIT_PERCENTAGE

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>

* Format sensor.py

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2020-08-28 17:33:34 +02:00