My main ESPHome configuration
You can simply power sensors by using an available 3v3
and GND
pin but if there’s no such pin available you can create extra ones by sacrifycing GPIO pins.
GND
pinsCreating extra GND
pins can be done by adding the following to your configuration file:
output:
- platform: gpio
pin: <PIN>
id: <SENSOR-NAME>_gnd
3v3
pinsCreating extra 3v3
pins can be done by adding the following to your configuration file:
output:
- platform: gpio
pin: <PIN>
id: <SENSOR-NAME>_supply
… and add the following to put in ON
:
esphomeyaml:
...
on_boot:
- priority: 90
then:
- output.turn_on: <SENSOR-NAME>_supply