Other

Description

Other questions about the HAH platform

Forums

I've been working on some changes over the xmas break for the next HAH firmware release.
One of the items is the refactoring of the /etc/xap-livebox.ini file into separate files which will be contained in the new directory /etc/xap.d/

I've completed my first pass at modifying all the code, and there was a lot, and my livebox is up and running using this new location.   Everything looks ok but I want to check that I caught everything before I release a beta.  The upgrade will be complete automated and there will be nothing for you to do except verify that the migration process worked and then do some remedial delete's which I wanted to leave as manual processes.

I'm not sure how this will address the corruptions have been occuring but is has to help somewhat having many files instead of the one single file.

The other change, which is more subtle, is that the "hostname" of the unit will be used to identify the deviceID.

Recall the source/target strings are formed like this:  VendorID.DeviceID.Instance

By default the DeviceID is hardcoded to "livebox" this makes moving the software to other platforms, or indeed standing up another livebox, difficult as you get namespace collisions.   To resolve this I've done a couple of things.

The DeviceID defaults to being the "hostname", which by default for your livebox is "livebox" unless you have changed it. It is also possible to override this by using a configuration setting which is also exposed on the web gui.

/etc/xap.d/system.ini
[xap]
instance='deviceid'

This has always been in the system but its interpretation has been slightly adjusted.  Previously this "instance" setting would do this to your target/source.

dbzoo.livebox.2.Controller - where the number 2 is an injected value from the instance= setting.  This is not strictly xAP compliant so I have removed this interpretation.

If you have multiple liveboxes and have used this encoding all is not lost as after the upgrade instead of having this

instance=2

You would need to change it (below) to keep this 'old' interpretation and reduce the impact of the upgrade.

instance=livebox.2

Until such time as you can correct your addressing and set a new hostname for your livebox.

All these changes are quite under the covers and from a usage point of view there will not be any impact, however what it does do is set the system up for being able to be easily migrated and compiled to different platforms as such the PI or Linux without having "livebox" encoded anywhere.  Its all part of a larger push I want to do in 2014.

Brett

Forums

Does anyone have experience of Byron HE206 remote control light pendants. They come with dire warnings about not using energy saving light bulbs. Some people seem to suggest that as long as you only use them as on/off devices, and don't use the dimming function, then it is OK. Anyone have any real world knowledge of this?

Forums

I've now got the WH1080 weather station added to my Corona app.

I have a node modified for 433Mhz OOK that is monitoring the transmissions fro the WH1080. This is connected via serial to the HAH.

I'm having a bit of an issue with plugboard stopping but here are the screen shots so far.

A write up will follow on here. I will add to wiki if allowed.

Forums

Hi my google calendar has stopped working; it had been running my central heating for the last 2 weeks with no problems. Luckily I have left all the old CH controls in place.

I do not see the aliasmsg arrive at the HAH. All other functions are fine (Twitter Cron etc etc). I can send a requirement to google cal and it is registered in the calendar. Heartbeat is seen.

I normally send a “relay 2 on” Alias msg  for 3 minutes to ensure operation.

I know I could use cron, but the GoogleCal GUI, using different colours makes it easy for the other half to see what is going on.

I have probably fiddled with something, but for the life of me cannot see what. I have now exhausted my limited knowledge on how to move on and resolve the problem.

What I have done is

Reloaded known working backups. 

Performed a Clean build 

Started from a virgin ini and rebuilt my configuration.

Created new GoogleCal account

Tried setting the calendar event aliasmsg time 1 hour before and 1 hour after real time just in case there is a problem with time zones.

 

Below is a log/debug file hopefully someone will be able to tell me if they can see any problems.

# xap-googlecal -d 6 -i br0

Google Calendar Connector for xAP v12

Copyright (C) DBzoo 2009-2010

[inf][init.c:118:discoverBroadcastNetwork] br0: address 192.168.1.87

[inf][init.c:130:discoverBroadcastNetwork] br0: netmask 255.255.255.0

[inf][init.c:137:discoverBroadcastNetwork] Autoconfig: xAP broadcasts on 192.168.1.255:3639

[ntc][init.c:54:discoverHub] Broadcast socket port 3639 in use

[inf][init.c:55:discoverHub] Assuming a hub is active

[ntc][init.c:64:discoverHub] Socket port 3640 in use

[ntc][init.c:64:discoverHub] Socket port 3641 in use

[ntc][init.c:64:discoverHub] Socket port 3642 in use

[ntc][init.c:64:discoverHub] Socket port 3643 in use

[ntc][init.c:64:discoverHub] Socket port 3644 in use

[ntc][init.c:64:discoverHub] Socket port 3645 in use

[ntc][init.c:64:discoverHub] Socket port 3646 in use

[inf][init.c:66:discoverHub] Discovered port 3647

[inf][googlecal.c:461:main] Connecting to google

[inf][filter.c:34:xapAddFilter] section=xap-header key=target value=dbzoo.livebox.GoogleCal

[inf][filter.c:34:xapAddFilter] section=xap-header key=class value=google.calendar

[inf][filter.c:34:xapAddFilter] section=event key=title value=XAP_FILTER_ANY

[inf][filter.c:34:xapAddFilter] section=event key=start value=XAP_FILTER_ANY

[inf][filter.c:195:xapAddFilterAction] section=event key=start value=XAP_FILTER_ANY data=0

[inf][tx.c:19:xapSend] send

xap-hbeat

{

v=12

hop=1

uid=FF00DA00

class=xap-hbeat.alive

source=dbzoo.livebox.GoogleCal

interval=60

port=3647

pid=192.168.1.87:337

}

 

[inf][tx.c:19:xapSend] send

xap-hbeat

{

v=12

hop=1

uid=FF00DA00

class=xap-hbeat.alive

source=dbzoo.livebox.GoogleCal

interval=60

port=3647

pid=192.168.1.87:337

}

Many thanks in advance.

Forums

Just wondering if anyone has experimented with Bluetooth presence detection on the HAH? I searched the forums and found that although the LiveBox may have Bluetooth it cannot be used due to lack of drivers?

Could an external Bluetooth dongle be added via the USB host port (and a USB hub as this port is already used for CurrentCost and JeeNodes)?

Another process would need to be setup with a corresponding ini file that has a list of known Bluetooth MAC addresses. This process could then use the hcitool to poll for the list of Bluetooth MACs. Each address in the list would become a xap endpoint with on/off for present and value for ping time (which gives an indicator of proximity).

xAP-header
{
v=12
hop=1
uid=xxxxxxxx
class=xAPBSC.event
source=dbzoo.livebox.BluetoothPresence:Entry.1

}
input.state
{
state=on
text=120.4

displaytext='Charlie' present ping=120.4ms

}

With this in place it would be possible to create LUA scripts that react to the number of and even who is present in the house.

- Fire a RF relay to unlock a gate

- Turn on some lights as you arrive home

- Tweet that somebody is home

- Start playing your playlist on your squeezeserver

http://www.dreamgreenhouse.com/projects/2012/rpibt/index.php

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=47059&p=415030

Forums

I was going crazy trying to understand why when I changed the slider to output level=x/y format that the xFXViewer always showed level=xy and was dropping the / character.  Turns out I undercover a bug in the iServer tokenizer.  (ouch).
I wonder how many of you have scratched their heads of this one like I did ?
I'll run some more tests and then push up a beta - if others want to also check out this behaviour with iServer feel free.

Brett

Forums

I would be very grateful if someone could confirm Xively is fully functional. I have read on the forum that there have been some issues with Feed ID number of 10 digits and graphs not working. I have just set up Xively for the first time and run into a problem.

Please note I am a relative novice to HAH.

My problem is once the data is up loaded to Xively (5 different 1 wire temperatures) they are registered and seen on Xively, but after a while, all uploaded data is the same as the first. i.e. same temperature straight line graphs. Each Xively Graph says “Last updated a few seconds ago”, so one would assume with the latest data, but it’s not. Bizarrely if there is a major change in temperature this is then uploaded ok, but again after a while this gets stuck on the same value.

I have observed the following:-

If you are issued with a 10 digit Feed ID and enter this into the Xively Web interface and “save” the configuration, only 9 digits are visible. The LSD is missing and HAH WEB I/F Graphs do not populate. If you are issued with a 9 digit Feed ID all appears to be OK including graphs.

I have to reboot the HAH to get the uploading process started. Saving then Restarting do not have this affect.

Also while configuring the Xively my HAH configuration has been corrupted a number of times. I have seen on the forum, that I am not the only one to have experienced this.

HAH ver 310/3.4

 

Many thanks. 

Forums

Cannot get CRON working.

I am a novice to the hah so please be gentle, I may have missed something obviouse to the expert eye.

I have followed the instructions in the cron wiki over and over, but still cannot get it to issue a command. The example I am using is as follows:- 

05 14 * * * aliasmsg "rf.2 -s on".

I can get rf 2 to turn on from the command prompt with   aliasmsg "rf.2 -s on". 

I have enable cron in the services.

Do I have to use vi ? Or can I cut and paste directly into the crontab root file. 

When I crontab –l, it all looks ok.

Any help would be much appreciated.


By the way:-

If I try # bscmsg, in the command prompt, i get the following error. I think this may be the same problem as issue 33.

/usr/bin/lua: /usr/share/lua/5.1/pl/lapp.lua:139: attempt to index upvalue 'types' (a nil value)

stack traceback:

        /usr/share/lua/5.1/pl/lapp.lua:139: in function 'add_type'

        /usr/bin/bscmsg:9: in main chunk

        [C]: ?

Forums

I have had the hah up and running for just over a week and half now and feel I have made some good progress, considering my very low level software knowledge.

I am very happy to report that I have tested the 4 relay outputs, 4 inputs, 3 RF outputs, 1 x 1 wire temperature sensor, clockapplet and Google Calendar without any major issues thanks to the level of expertise on the forum.

Twitter Problem. I can enter an Alias command (hah relay 1 on) directly into my new (hah) twitter account and this is received by the hah and relay 1 is operated. This tweet is sent to my old twitter account which I have set up to send me a SMS on receipt of a tweet from my new account. Hope this makes sense. The problem is I cannot generate a tweet directly from the hah. I have tried sending the script example Hello World below using xfx (cut and paste click send) to test, but nothing appears to happen. I am probably doing something obviously wrong to the trained eye.

xAP-header

{

v=12

hop=1

uid=FF00DB00

class=xAPBSC.cmd

source=dbzoo.acme.test

target=dbzoo.livebox.twitter

}

output.state.1

{

id=*

text=Hello World

}

My first hah challenge, is to get the hah via an applet to generate a tweet on activation of an input being triggered by either my burglar/fire alarm.

 

Any help would be much appreciated.

Forums

Well I have tried on and off for days.  Current cost is not working.  Microcom picks it up nicely.

I have killed xap-currentcost and then did the following

xap-currentcost -s /dev/ttyUSB0 -i br0 -d 7 > output.log and then zipped it - attached.

I'm using a CLASSIC2 - setting i.e. 9600 baud with all the xml history.

Don't see any cc output on xfx message viewer or xap-snoop -h.  All the other stuff is fine.

Serial Schema is not enabled

I thought it was my interface cable which was home made and was using the 3.6ish volts from the cc device itself. 

So before taking up people's time I went and bought a proper serial lead from cc.  Still the same symptoms.

Using v309/3.4 even tried beta 309.6

I had a look at the documentation but can't see anything obvious

Can anyone advise what I can do next?

Regards

 

Kim 

p.s. I have been laboriously rebuilding xap-livebox.ini which was messy - especially the xively stuff.