News and announcements

Description

For news and announcements to the HAH community at large.

I happened to be wandering around my local B&Q and noticed that the entire Home Easy range of stuff had been heavily discounted (like a £50 item reduced to £8). Looks like the line is being dropped. Perhaps worth checking your local store ...

I felt it was about time that I wrote a new XAP C library as the one written by Patrick, and used extensively by the HAH daemons, is rather crusty.  Perhaps it was more a case of "not written here syndrome" but I did feel I could do a better job.

This is very much an ALPHA library.  The basics work for BSC compliance but I haven't had time to fully thrash it out so library calls may change about before I'm finished.  I'm posting this note to let any budding XAP developers of HAH software know not to rely too much on the existing xap library as eventually this will go away.

Source code published in the SVN repository.

Brett

252 is beta 251.11 if you already have this build there is no point in upgrading to 252 as there is no difference except the version number.

The Issue list:

  • issue 7 - currentcost level= replaced with text= and xAPBSC.info emitted on startup
  • issue 9 - oauth for twitter (basic auth being disabled 31st Aug)
  • issue 13 - 1wire bus timeout web settting
  • issue 14 - xap-twitter deletes tweets it sends
  • issue 15 - Implemented BSC state=toggle include new action item on web interface
  • Put back missing Google calendar TAB.   Dropped in build 251 by accident.
  • Multiple livebox support  - MAC addresses can be overridden in web gui
  • Fixup currentcost hysteresis setting.
  • Added Twitter HAH command prefix setting to WEB UI

More about the BSC toggle change, Now you can send messages such as:

      xAP-header
      {
      v=12
      hop=1
      uid=FF000F00
      class=xAPBSC.cmd
      source=dbzoo.livebox.demo
      target=dbzoo.livebox.controller:relay.1
      }
      output.state.1
      {
      id=*
      state=toggle
      }

      And the device will toggle state from the HAH points of view, emitting an xAPBSC.event to indicate the new state.
      Note: For RF units we can't always know their current state if they have been manually turned on/off.


As always make a backup of your livebox sensitive data first, in case things go wrong.

  •  /etc/xap-livebox.ini
  •  /etc/plugboard (all scripts)

Firmware update Instructions

Build 251 is SVN release r51

CHANGELOG

  • Added missing BROADCOM ethernet drivers so the .DWB flashes without locking you out !  Kudos to BodgeIT who ran into this first, and point it out to me.
  • Kloned web menu system internal logic overhaul
  • Renamed web server "Basic Setup" tab to "Management", REBOOT button on this page is always shown.
  • Removed printer support from kernel and busybox (lpd,lpr,lpq)
  • LCD now reports as an xAP input device, instead of an output device.
  • remove .svn directories from final flash file system build.
  • issue 5 - DHCP script now honours NTP server setting.
  • Various kernel modifications.
    • - Removed PPP support from the kernel
    • - Removed Sound support from the kernel
    • - Removed bluetooth support from kernel (may put it back when its properly supported)
    • - Removed USB network device support
    • + FTDI drivers changed from a module to compiled in for better Arduino support.
  • issue 8 - Bug fix for Web-server not driving RF units > 4
  • issue 11 - Relays, RFs and Inputs now report DisplayText= as part of their xAPBSC.info and xAPBSC.event messages.  This is populated with the label as defined in the INI file by the webserver
  • issue 4 - Clear /tmp directory of klone_sess files on reboot.
  • Internal code restructure of the xap-livebox daemon for xAPBSC.event sending.

Using the "My Account" hyperlink in the left hand side, located in the "Site Navigator" box, you will now find a Subscriptions TAB that enables you to automatically subscribe to sections of the website - changes will be emailed to you.

This is great for following the forums without having to login and out to check if somebody has replied.

Brett

Some folks had reported difficulty in finding the IP address that the HAH had been assigned via DHCP. This can usually be had by looking at your DHCP allocation log, but this can be tricky as the MAC address of the HAH isn't that which is shown on the label on the box.

Of course, we'd prefer you to consider buying the LCD and supporting hardware - the IP address is automatically displayed on the LCD as the unit starts up ... but if you don't have the LCD, you can download a small Windows application that will help you find the HAH.

Download link is here - http://www.dbzoo.com/livebox/hah#try_the_hah_firmware

For now, this application will capture ALL UDP broadcasts, so do disable other UDP enabled devices on your LAN before using it.

Major update

  • BSC compliance changes to xap-livebox and xap-currentcost.
  • Setting LCD message via web interface now generates a BSC event.
  • 1-wire data value change generates a BSC event.

NOTE: This firmware update will break your existing xap-pachube web setting for monitoring the temperature values from 1-wires devices and the xap-currentcost.

Here is how a 1-wire temperate event now looks:

xAP-header
{
v=12
hop=1
uid=FF00DB0A
class=xAPBSC.event
source=dbzoo.livebox.Controller:1wire.1
}
input.state
{
state=on
text=21.0
displaytext=Inside 21.0
}

Previously, that is pre build 250, the temperature value was only emitted as an BSC INFO message using an invalid state= tag.  When it should have been an event when a change is detected as well as the periodic INFO message. Here's how it use to look:

xAP-header
{
v=12
hop=1
uid=FF00DB0A
class=xAPBSC.info
source=dbzoo.livebox.Controller:1wire.1

}
input.state
{
state=21.0
}

This is in violation of the BSC specification.  A state= tag should only contain on/off or ?.  As a result the value has been moved into a text= tag.  In addition if a label has been assignedto the 1wire device, via the webserver interface, this will be shown in the displaytext= tag.

The xap-pachube wiki section has been updated to reflect this change.

Firmware update Instructions

Build 250 is svn release r40

Build 248 is a minor patch release to fix a couple of niggling issues

  • The Graph menu option should only be shown when Pachube is enabled.
  • Increase the wait time when programming the AVR RF-subsystem from 50ms to 100ms.  For future increase this variable has been parameterized into the [rf] section as eedelay.

As always the latest firmware can be found at http://hah.dbzoo.com/upgrade/hah-firmware.dwb

Or if you've already flashed just run the auto updater /etc/init.d/update