core/homeassistant/components/binary_sensor
Paul Annekov 3417c6ad8d Checking Xiaomi Aqara devices unavailability states (#11631)
* added unavailability tracker, updated sensor component

* change hass argument position according to position in binary_sensor

* added hass argument to binary_sensor, updated is_on(), it can be UNAVAILABLE now

* updated switch component to support unavailability feature

* updated light component to support unavailability feature

* updated cover component to support unavailability feature

* set _hass property

* added unavailability tracker, updated sensor component

* change hass argument position according to position in binary_sensor

* added hass argument to binary_sensor, updated is_on(), it can be UNAVAILABLE now

* updated switch component to support unavailability feature

* updated light component to support unavailability feature

* updated cover component to support unavailability feature

* set _hass property

* fixed error with wrong arguments number during callback call

* reset unavailability state on new message received from device

* use locks to fix race condition during managing _state property

* overriden state() method for some components to check for STATE_UNAVAILABLE and return it instead e.g. STATE_OFF

* fixed linter

* removed blank line

* use available() method instead of changing _state

* filter motion sensors 'heartbeat', was removed from PyXiaomiGateway

* remove self._hass, use self.hass set by HA on attach

* self.push_data now running in the event loop, use async_schedule_update_ha_state()

* merge fix

* removed accidentally added home-assistant-polymer

* bump PyXiaomiGateway version to 0.8.0

* bump PyXiaomiGateway to 0.8.0

* updated methods names and annotations
2018-01-23 10:22:43 +01:00
..
__init__.py Additional device classes for binary sensors (#11280) 2017-12-28 18:55:22 +01:00
abode.py Abode services, events, lights, cameras, automations, quick actions. (#9310) 2017-09-18 17:39:41 +02:00
ads.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
alarmdecoder.py AlarmDecoder remove icon function as BinarySensorDevice handles it correctly now (#11467) 2018-01-05 14:29:57 -08:00
android_ip_webcam.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
apcupsd.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
arest.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
aurora.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
axis.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
bayesian.py Use constants and update docstrings 2017-10-24 09:12:01 +02:00
bbb_gpio.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
blink.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
bloomsky.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
command_line.py Added possibilities to use template in the command_line sensor (#8505) 2017-08-10 18:52:52 +02:00
concord232.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
deconz.py Fix PEP8 and PEP257 issues (#11780) 2018-01-18 22:36:29 -08:00
demo.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
digital_ocean.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
ecobee.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
eight_sleep.py Update docstrings (#7405) 2017-05-02 22:47:20 +02:00
enocean.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
envisalink.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
ffmpeg_motion.py Cleanup and simplitfy the async state update (#9390) 2017-09-12 10:01:03 +02:00
ffmpeg_noise.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
flic.py Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
gc100.py Add gc100 platforms and component (#10159) 2017-10-30 08:40:14 +01:00
hikvision.py Bump pyHik version to add IO support (#9341) 2017-09-09 00:06:06 -07:00
hive.py Change line separator to LN (#11662) 2018-01-15 14:24:12 -08:00
homematic.py Upgrade HomeMatic, add devices (#10845) 2017-11-28 23:16:47 -08:00
ihc.py Ihc component and platforms (#10916) 2018-01-20 16:29:50 +01:00
insteon_plm.py Fix a bunch of typos (#9545) 2017-09-23 17:15:46 +02:00
iss.py Move 'show_on_map' to const (#9727) 2017-10-07 15:11:41 +02:00
isy994.py Fix leak sensors always showing Unknown until Wet (#11313) 2017-12-27 09:23:21 +01:00
knx.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
linode.py Linode (#9936) 2017-10-27 16:19:47 +02:00
maxcube.py maxcube: Set MAX! Window Sensor's class to 'window' (#11799) 2018-01-22 12:32:27 +01:00
modbus.py Modbus fixes to work with pymodbus 1.3.1 (#8365) 2017-07-06 22:30:23 -07:00
mqtt.py More support for availability reporting on MQTT components (#11336) 2018-01-01 18:32:29 -08:00
mychevy.py Add basic mychevy component (#11409) 2018-01-15 21:50:56 +01:00
mysensors.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
mystrom.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
nest.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
netatmo.py Fix missing timeout for Netatmo binary sensor (#9850) 2017-10-18 14:56:24 +02:00
nx584.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
octoprint.py Do not call update() in constructor (#8878) 2017-08-08 20:21:33 +02:00
pilight.py Allow Pilight Binary Sensor to control reset_delay_sec through configuration (#8358) 2017-07-06 21:09:31 +02:00
ping.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
raincloud.py Bump raincloudy version 0.0.3 (#9767) 2017-10-08 21:08:40 -07:00
random.py Add Random binary sensor (#10164) 2017-10-29 11:15:57 +01:00
raspihats.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
rest.py Mark REST binary_sensor unavailable if request fails (#11506) 2018-01-11 10:48:15 +01:00
rfxtrx.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
ring.py Fixed update() method and removed `ding` feature from stickupcams/floodlight (#10428) 2017-11-09 01:01:20 +01:00
rpi_gpio.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
rpi_pfio.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
satel_integra.py Added satel_integra alarm panel and binary sensor platform (#9336) 2017-09-18 17:42:31 +02:00
skybell.py Skybell (#9681) 2017-10-08 20:14:39 +02:00
sleepiq.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
spc.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
tapsaff.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
tcp.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
tellduslive.py Telldus Live: Device without methods is a binary sensor (#10106) 2017-10-26 15:54:49 +02:00
template.py Deprecate explicit entity_id in template platforms (#11123) 2018-01-10 00:06:26 -08:00
tesla.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
threshold.py Extend Threshold binary sensor to support ranges (#11110) 2017-12-19 01:52:19 +01:00
trend.py Upgrade numpy to 1.14.0 (#11542) 2018-01-09 15:30:00 +01:00
velbus.py Velbus (#8076) 2017-07-26 14:03:29 +02:00
vera.py Added Vera scenes (#10424) 2017-12-07 07:47:19 +01:00
verisure.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
volvooncall.py Remove deprecated sensor_class config options (#8702) 2017-07-29 19:46:27 -04:00
vultr.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
wemo.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
wink.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
workday.py Add more workday sensor countries and update holidays library to version 0.9.3 (#11826) 2018-01-20 17:09:05 +01:00
xiaomi_aqara.py Checking Xiaomi Aqara devices unavailability states (#11631) 2018-01-23 10:22:43 +01:00
zha.py zha: Handle both input and output clusters (#8410) 2017-07-10 21:16:44 -07:00
zigbee.py Update docstrings (#7361) 2017-04-29 22:04:49 -07:00
zwave.py Fix off_delay for zwave trigger sensors (#8864) 2017-08-06 18:31:32 +03:00