esphome/esphome/components/binary_sensor_map
Michiel van Turnhout d7a8c50c98
Binary sensor map implementation (#551)
* add binary_sensor_map c code

* add python file

* fixed python and C++ code for new framework

* renamed add_sensor to add_channel

* travis

* Updates

- Use struct for channels_ array - heap allocation is not really necessary here.
- any_active can also be written as mask != 0
- Update setup priority to DATA
- Use shorter TAG (name is already long; not important)
- Quotes around name
- Add icon to sensor
- Use new cv.typed_schema
- Change CONF_CHANNEL to CONF_BINARY_SENSOR - makes it clearer that this option accepts a binary sensor (and not for example an int)
- Add test


Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-05-28 21:37:27 +02:00
..
__init__.py Binary sensor map implementation (#551) 2019-05-28 21:37:27 +02:00
binary_sensor_map.cpp Binary sensor map implementation (#551) 2019-05-28 21:37:27 +02:00
binary_sensor_map.h Binary sensor map implementation (#551) 2019-05-28 21:37:27 +02:00
sensor.py Binary sensor map implementation (#551) 2019-05-28 21:37:27 +02:00