Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

DD WRT Binding

John Cocula edited this page Dec 9, 2016 · 13 revisions

Note: This Binding is available in 1.9.0 and later releases.

Documentation of the DD-WRT binding bundle

Introduction

For installation of the binding, please see Wiki page Bindings, or you can add this JAR to your addons folder.

Adapt your openhab.cfg to your configuration:

  • IP address of DD-WRT to connect to
    ddwrt:ip=192.168.1.1
    ddwrt:port=23

  • You need to configure the user and password of your DD-WRT
    ddwrt:username=root
    ddwrt:password=xxxxxxx

  • Interface for the 2.4 GHz wifi
    ddwrt:interface_24=ath0

  • Interface for the 5 GHz wifi
    ddwrt:interface_50=ath1

  • Virtuall-Interface for the guest wifi
    ddwrt:interface_guest=ath0.1

Prepare your DD-WRT device

  • You have to activate the telnet connection in the DD-WRT web interface.
  • The changing of the telnet port in the DD-WRT web interface is not always working. Test it with a telnet command shell.

Generic Item Binding Configuration

In order to bind an item to the DD-WRT device, you need to provide configuration settings. The easiest way to do so is to add some binding information in your item file (in the folder configurations/items).

Switching WIFI

The following items switch WIFI, GUEST_WIFI, and the NAME of the device as string:

String DEVICE_NAME {ddwrt="routertype"}
Switch WIFI_24     {ddwrt="wlan24"}
Switch WIFI_50     {ddwrt="wlan50"}
Switch WIFI_GUEST  {ddwrt="wlanguest"}

The guest network is usually a virtual network device. There is a bug in the DD-WRT firmware. The activation of this interface needs a workaround so it takes some seconds more as the native devices.

Tested with Archer V2 and DD-WRT v3.0-r30880 std (11/14/16)

Installation


User Interfaces


Community

(link to openHAB forum)

Development



Misc


Samples

A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Use case examples

Collections of Rules on a single page

Single Rules

Scripts


Release Notes

Clone this wiki locally