Yep lines like sensor: on the first indentation only need to be entered once then every other instance of the same type goes under that heading.
Like this
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
- platform: dht
pin: D4
temperature:
name: "Kitchen Temperature"
filters:
- offset: -4.5
humidity:
name: "Kitchen Humidity"
# filters:
# - offset: 44
update_interval: 60s
- platform: bh1750
name: "Kitchen Illuminance"
address: 0x23
update_interval: 300s
i2c:
- id: bus_a
sda: D2
scl: D1
scan: true
binary_sensor:
- platform: gpio
pin: D5
name: "Kitchen PIR"
device_class: motion
web_server:
port: 80
version: 2
include_internal: true
ota: true
You will see it has a sensors heading with all sensors after it then i2c: with those settings then binary_sensor: with those setting and so on. When you get to grips with it it is easy, And also easy to get wrong