Files
esphome-dev/esphome/components
Michiel van Turnhout 9d26c16471 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 20:41:10 +02:00
..
2019-04-22 21:56:30 +02:00
2019-05-27 13:06:45 +02:00
2019-05-27 13:06:45 +02:00
2019-04-22 21:56:30 +02:00
2019-05-24 16:20:28 +02:00
2019-05-08 10:17:08 +02:00
2019-04-22 21:56:30 +02:00
2019-05-12 23:04:36 +02:00
2019-05-08 14:56:54 +02:00
2019-04-22 21:56:30 +02:00
2019-05-15 20:57:29 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-05-15 10:55:35 +02:00
2019-05-24 16:20:28 +02:00
2019-05-27 21:09:16 +02:00
2019-04-24 23:49:02 +02:00
2019-04-22 21:56:30 +02:00
2019-05-15 10:55:35 +02:00
2019-04-22 21:56:30 +02:00
2019-05-11 11:40:29 +02:00
2019-04-22 21:56:30 +02:00
2019-05-24 17:20:06 +02:00
2019-05-27 13:06:45 +02:00
2019-04-22 21:56:30 +02:00
2019-04-24 23:49:02 +02:00
2019-05-08 10:17:08 +02:00
2019-04-22 21:56:30 +02:00
2019-05-08 11:31:06 +02:00
2019-05-08 10:17:08 +02:00
2019-05-12 23:04:36 +02:00
2019-05-24 16:34:01 +02:00
2019-05-21 12:23:38 +02:00
2019-05-12 23:04:36 +02:00
2019-04-22 21:56:30 +02:00
2019-05-11 11:40:29 +02:00
2019-04-24 23:49:02 +02:00
2019-05-27 13:06:45 +02:00
2019-05-13 13:11:02 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-05-08 10:17:08 +02:00
2019-05-13 13:06:14 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-05-12 23:04:36 +02:00
2019-04-22 21:56:30 +02:00
2019-04-24 23:49:02 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-05-25 09:02:18 +02:00
2019-05-27 20:00:00 +02:00
2019-05-27 13:06:45 +02:00
2019-05-08 10:35:07 +02:00
2019-05-11 11:40:29 +02:00
2019-05-08 10:17:08 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-05-27 13:06:45 +02:00
2019-05-12 23:04:36 +02:00
2019-04-22 21:56:30 +02:00
2019-05-27 19:12:43 +02:00
2019-05-28 16:00:00 +02:00
2019-05-27 13:06:45 +02:00
2019-05-12 23:04:36 +02:00
2019-05-08 10:17:08 +02:00
2019-05-11 11:40:29 +02:00
2019-04-22 21:56:30 +02:00
2019-05-12 23:04:36 +02:00
2019-04-22 21:56:30 +02:00
2019-05-12 23:04:36 +02:00
2019-05-26 10:31:29 +02:00
2019-04-22 21:56:30 +02:00
2019-05-13 20:45:22 +02:00
2019-05-13 20:45:22 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-25 10:36:55 +02:00
2019-05-27 13:06:45 +02:00
2019-04-24 18:11:46 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-24 23:49:02 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-04-22 21:56:30 +02:00
2019-05-26 10:31:29 +02:00
2019-04-22 21:56:30 +02:00
2019-04-24 23:49:02 +02:00
2019-04-22 21:56:30 +02:00
2019-05-13 09:47:49 +02:00
2019-05-27 13:06:45 +02:00
2019-05-27 20:17:12 +02:00
2019-04-22 21:56:30 +02:00
2019-05-21 12:23:38 +02:00
2019-04-24 23:49:02 +02:00
2019-05-21 12:23:38 +02:00
2019-04-24 14:30:09 +02:00
2019-05-08 10:17:08 +02:00
2019-05-13 20:45:22 +02:00
2019-05-13 13:05:30 +02:00
2019-05-21 12:23:38 +02:00
2019-04-22 21:56:30 +02:00
2019-05-08 10:17:08 +02:00
2019-05-27 13:06:45 +02:00
2019-04-22 21:56:30 +02:00
2019-05-08 09:58:03 +02:00
2019-04-22 21:56:30 +02:00
2019-05-27 13:06:45 +02:00
2019-04-22 21:56:30 +02:00
2019-05-08 10:17:08 +02:00
2019-05-08 09:58:03 +02:00
2019-05-08 14:56:54 +02:00
2019-05-08 14:56:54 +02:00