home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

Multiple sensors and switches in group #1559

Closed riaandeyzel closed 8 years ago

riaandeyzel commented 8 years ago

Home Assistant release (hass --version): 0.15.0

Python release (python3 --version): 3.4.2

Component/platform: Raspberry Pi B & Arduino Uno running Standard Firmata connected via USB port on raspberry Pi

Description of problem: As soon as I add the Switches to control the digital pins on the Arduino Uno the Raspberry Pi Switches disappear from the HA dashboard

Expected: I expected to see both the switches to control the Raspberry Pi GPIO pins as well as the switches to control the Arduino pins.

Problem-relevant configuration.yaml entries and steps to reproduce:

# Raspberry Pi Switches To Control GPIO Pins
switch:
  platform: rpi_gpio
  ports:
    2: Braai LED
    3: Relay 2
    4: Relay 3
    7: Relay 4
    8: Relay 5
    9: Relay 6
    10: Relay 7
#11: Relay 8
#17: DHT11 Sensor
#18: GPIO 18
#22: GPIO 22
#23: GPIO 23
#24: GPIO 24
#25: GPIO 25
#26: GPIO 26
#27: GPIO 27
  invert_logic: false

# Raspberry Pi Connected Sensors
# binary_sensor:
#   platform: rpi_gpio
# ports:
#17: DHT11
#18: Soil Moisture Sensor
#22: Light Sensor
#23: Sensor 4
#24: Sensor 5
#25: Sensor 6
#26: Sensor 7
#27: Sensor 8
# pull_mode: "UP"
# bouncetime: 50
# invert_logic: false

# Connecting to Arduino Uno
arduino:
  port: /dev/ttyACM0

# Arduino Uno Sensors A0-A5
sensor:
  platform: arduino
  pins:
    3:
      name: LDR
      type: analog
    2:
      name: Moisture Sensor
      tupe: analog
    1:
      name: DHT11
      type: analog
    0:
      name: Not Used
      type: analog

# Arduino Uno Swithes
switch:
  platform: arduino
  pins:
    11:
      name: Relay 1
      type: digital
    12:
      name: Realy 2
      type: digital
    13:
      name: Relay 3
  1. Would like to Keep Raspberry Pi Switches and Sensors on HA Dashboard
  2. Would Like to Add Arduino Uno Switches and Sensors to HA Dashboard
  3. In ideal World I would like to have 2 Groups at the top of page with the relevant Switces, Sensors inside them.(Like in the Demo they have ROOMS(Replace with word Devices) and Living Room(Replace with word Raspberry Pi) & Bedroom (Replace with word Arduino)

Group 1: HOME (Displaying All other Data)(Think this will be there already by default) Group 2: Devices: Raspberry Pi (Displaying Switches / Sensors at the top of page) Arduino (Displaying Switches / Sensors at top of page)

Kind regards, Riaan Deyzel

balloob commented 8 years ago

Each entry in your config needs to be unique. So rename your second switch to switch 2:

Paytrix commented 7 years ago

Is there a way to update the arduino sensors more frequently? Mine are updating every 30 sec, but that is like slow af for a button input.