Ultrasonic sensor echo must be internal

This commit is contained in:
Otto Winter 2018-05-18 09:44:41 +02:00
parent 61b3ead2df
commit b9b09a1763
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -11,7 +11,7 @@ from esphomeyaml.helpers import App, add, variable, gpio_output_pin_expression,
PLATFORM_SCHEMA = sensor.PLATFORM_SCHEMA.extend({
cv.GenerateID('ultrasonic'): cv.register_variable_id,
vol.Required(CONF_TRIGGER_PIN): pins.GPIO_OUTPUT_PIN_SCHEMA,
vol.Required(CONF_ECHO_PIN): pins.GPIO_INPUT_PIN_SCHEMA,
vol.Required(CONF_ECHO_PIN): pins.GPIO_INTERNAL_INPUT_PIN_SCHEMA,
vol.Exclusive(CONF_TIMEOUT_METER, 'timeout'): cv.positive_float,
vol.Exclusive(CONF_TIMEOUT_TIME, 'timeout'): cv.positive_time_period_microseconds,
vol.Optional(CONF_UPDATE_INTERVAL): cv.positive_time_period_milliseconds,