Config for detecting wall button switch correctly?

Hi everyone!

I’m a total HA-newbie but I’ve have googled and searched the forum but couldn’t find tips to help me understand this 100%.

I have:

  • Raspbian Jessie with HA 0.57.3 installed
  • Tellstick DUO (not NET) + a bunch of 433MHz outlet switches and wall button switches.

Controlling the outlet switches works great after adding them to /etc/tellstick.conf. They are all visible and controllable on the HA overview page. A temp sensor also turns up on the history page in HA. And on the HA overview page I can see all my wall button switches and when I push the buttons the status on the web page changes accordingly.

What to me is confusing is that the wall button switches show up as outlet switches in HA. As you can see below they do have identical set ups in tellstick.conf apart from the actual id. I would have thought they should be differentiated in HA, one is an input and the other one an output. This makes me very unsure how to write an automation in configuration.yaml.

In configuration.yaml I have this:

tellstick:
  signal_repetitions: 3

sensor:
  - platform: tellstick

In tellstick.conf I have this:

user = "nobody"
group = "plugdev"
deviceNode = "/dev/tellstick"
ignoreControllerConfirmation = "false"
device {
  id = 4
  name = "Outlet switch"
  controller = 0
  protocol = "arctech"
  model = "selflearning-switch"
  parameters {
    house = "1000001"
    unit = "1"
  }
}
device {
  id = 204
  name = "Wall switch"
  protocol = "arctech"
  model = "selflearning-switch"
  parameters {
    house = "14637066"
    unit = "16"
  }
}