esphome/esphome
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
..
api Changes for 1.12 (#482) 2019-03-16 22:24:26 +01:00
components Binary sensor map implementation (#551) 2019-05-28 21:37:27 +02:00
core Fix parse_float accepting invalid input 2019-05-24 19:32:59 +02:00
dashboard added link from dashboard to web server, if configured (#556) 2019-05-28 10:48:45 +02:00
__init__.py Rename esphomeyaml to esphome (#426) 2019-02-13 16:54:02 +01:00
__main__.py Add NTC and resistance sensor (#560) 2019-05-28 16:35:50 +02:00
automation.py Update docker base image 2019-05-15 14:41:11 +02:00
codegen.py Updates for 1.13 (#546) 2019-05-12 23:04:36 +02:00
config_helpers.py Dashboard editor live validation (#540) 2019-05-11 11:41:09 +02:00
config_validation.py Fix custom output, add test 2019-05-27 09:58:55 +02:00
config.py Suggested fix for empty domain (#555) 2019-05-26 10:28:46 +02:00
const.py Binary sensor map implementation (#551) 2019-05-28 21:37:27 +02:00
core_config.py Add core version 2.5.2 2019-05-26 10:31:29 +02:00
core.py Warn if not registered properly 2019-05-21 12:23:38 +02:00
cpp_generator.py Updates for 1.13 (#546) 2019-05-12 23:04:36 +02:00
cpp_helpers.py Warn if not registered properly 2019-05-21 12:23:38 +02:00
cpp_types.py Sun support (#531) 2019-05-11 12:31:00 +02:00
espota2.py Improve OTA error message 2019-05-16 11:26:33 +02:00
helpers.py Cleanup dashboard JS (#491) 2019-04-22 21:56:30 +02:00
legacy.py Add esphomeyaml legacy script 2019-02-15 10:19:18 +01:00
mqtt.py Rename esphomeyaml to esphome (#426) 2019-02-13 16:54:02 +01:00
pins.py Cleanup dashboard JS (#491) 2019-04-22 21:56:30 +02:00
platformio_api.py Add NTC and resistance sensor (#560) 2019-05-28 16:35:50 +02:00
py_compat.py Cleanup dashboard JS (#491) 2019-04-22 21:56:30 +02:00
storage_json.py added link from dashboard to web server, if configured (#556) 2019-05-28 10:48:45 +02:00
symlink_ops.py Better symlink support under Windows (#487) 2019-03-23 22:58:25 +01:00
util.py Cleanup dashboard JS (#491) 2019-04-22 21:56:30 +02:00
voluptuous_schema.py Cleanup dashboard JS (#491) 2019-04-22 21:56:30 +02:00
vscode.py Dashboard editor live validation (#540) 2019-05-11 11:41:09 +02:00
wizard.py 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
writer.py Do not recompile on version change 2019-05-28 12:11:46 +02:00
yaml_util.py Lint 2019-04-22 22:14:48 +02:00
zeroconf.py Rename esphomeyaml to esphome (#426) 2019-02-13 16:54:02 +01:00