clydebarrow / esphome

ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
https://esphome.io/
Other
16 stars 11 forks source link

FR: `udp` multiple instances #117

Closed nagyrobi closed 2 weeks ago

nagyrobi commented 2 weeks ago

This may be a bit too much, I admit...

Support for separation of provided data to different IPs. Like:

udp:
  - id: udp_internal
    update_interval: 5s
    encryption: "REPLACEME A"
    port: 18511
    addresses:
      - 255.255.255.255
    sensors:
      - temp_rooma
      - temp_roomb
      - temp_roomc
      - temp_floor1
      - temp_hall1
      - temp_hall2
      - temp_floor2
      - temp_water1
      - temp_water2
      - temp_garage
      - temp_outdoor
      - humi_rooma
      - humi_roomb
      - humi_roomc

  - id: udp_external
    update_interval: 5s
    encryption: "REPLACEME B"
    port: 18512
    addresses:
      - 10.87.135.110
    binary_sensors:
      - binary_sensor_id1
    sensors:
      - temp_outdoor

Some use cases:

clydebarrow commented 2 weeks ago

Should work now.

nagyrobi commented 2 weeks ago

Doc updated with an example showing this.