tag:blogger.com,1999:blog-41494544355687237662024-02-15T10:44:42.880+01:00NetHomeServerThis is a work progress blog for the NetHomeServer and ProtocolAnalyzer projects. It may also contain random rambling by Stefan...Unknownnoreply@blogger.comBlogger98125tag:blogger.com,1999:blog-4149454435568723766.post-32763741009965855572023-01-07T15:03:00.001+01:002023-01-07T15:20:51.744+01:00Maintenance The development activity has been low on this project lately, but I get reports that the servers keep running out there... The web sites however were in kind of a bade state due to missing upgrades. This has been fixed now, so <a href="http://opennethome.org/" target="_blank">http://opennethome.org/</a>, <a href="http://wiki.nethome.nu" target="_blank">http://wiki.nethome.nu</a> and <a href="http://forum.opennethome.org" target="_blank">http://forum.opennethome.org</a> are up and running again!Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-4149454435568723766.post-74837305524652149132018-03-25T21:41:00.001+02:002018-03-25T21:41:41.307+02:00More MQTTI have been receiving feedback and requests for more MQTT-Support in OpenNetHome. After some discussions and feedback rounds I have ended up with two new Items:<br />
<br />
<b><a href="http://wiki.nethome.nu/doku.php/mqttcommander" target="_blank">MqttCommander</a></b><br />
This is item has four command-actions and when an action is triggered a corresponding MQTT-Message is sent to a configured topic.<br />
<br />
<b><a href="http://wiki.nethome.nu/doku.php/mqttlamp" target="_blank">MqttLamp</a></b><br />
The MqttLamp behaves like a standard lamp, and controls a lamp/switch via MQTT. You configure the topic of the device you want to control and the messages used to turn the device on or off. The MqttLamp will also listen on that topic for those messages to update the state if it is changed from another source.<br />
<br />
These Items makes it possible to include devices controlled via MQTT as Home Items.<br />
<br />
As usual, the Items are available in the nightly buildUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-77764216097559991822017-11-09T20:54:00.000+01:002017-11-09T20:54:28.199+01:00IKEA Increases security<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcyRaOtcT0UUvVz4DjN7rQyIQIgF3NghLONW_OZXSVDzWIMr6a0JKG1d2dxuUA9VFxVs-D3hyphenhypheny_NNqSjq-CDEYmX7ls_DJ33HmNK5MS-bbJOl4z5KXZBlzI8PcGM-NeFKPBEPNVlePCh-o/s1600/IKEA_Total.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="261" data-original-width="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcyRaOtcT0UUvVz4DjN7rQyIQIgF3NghLONW_OZXSVDzWIMr6a0JKG1d2dxuUA9VFxVs-D3hyphenhypheny_NNqSjq-CDEYmX7ls_DJ33HmNK5MS-bbJOl4z5KXZBlzI8PcGM-NeFKPBEPNVlePCh-o/s1600/IKEA_Total.jpg" /></a></div>
In the latest firmware update of their gateway, IKEA has increased security by introducing DTLS Identities which means that each client (such as OpenNetHome) has to use its own client identity and has to request its own pre shared security key from the gateway.<br />
<br />
Unfortunately this change is not backwards compatible, so as soon as you do a firmware upgrade of your gateway, the old IkeaGateway-Item in OpenNetHome stops working.<br />
<br />
I have now implemented the needed changes in the IkeaGateway-Item, and it is available in the nightly build. When you upgrade, the IkeaGateway-Item will automatically request the client security key from the gateway. According to IKEA's recommendations the IkeaGateway-Item no longer stores the original security code once the client code is generated.<br />
<br />
The new ClientName attribute does not normally have to be changed from the default value when you create a new IkeaGateway-Item, but if you have multiple Items connecting to the same gateway, each Item must have a different ClientName.<br />
<br />
I think it is good that IKEA takes IoT-security seriously and works actively to increase it in their solutions.<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-90504340742623060002017-07-31T12:18:00.000+02:002017-07-31T12:18:23.563+02:00NetHomeServer 3.0<div class="separator" style="clear: both; text-align: center;">
<a href="http://opennethome.org/download/releasenotes-nethomeserver-3-0/" target="_blank"><img border="0" data-original-height="1016" data-original-width="1231" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYPSRkcpv-j-U1ohRBclTWBB3YoeggDH6X_lAnYKCxTtU7CAAYJ-i2hpkedxsvKEGVvy8t3XHy5Nw4bvFkG1bGAKWGr881oxhxIEJbiJZivKSSd2vs387fLH-D5CIOQoO51RlLbBw60hRd/s320/FeaturesSite.png" width="320" /></a></div>
I am happy to announce a new official release of NetHomeServer! Originally the plan was to call the next release 2.1, but now so many new things has been added since the last release, so it made more sense to call it 3.0. All new features are listed in the <a href="http://opennethome.org/download/releasenotes-nethomeserver-3-0/" target="_blank">release notes here</a>, and the major additions are the <a href="http://opennethome.org/download/" target="_blank">Raspberry Pi installation</a>, the <a href="http://nethomeserver.blogspot.se/2014/09/give-your-home-rest.html" target="_blank">REST interface</a> and the <a href="http://nethomeserver.blogspot.se/2017/05/support-for-ikea-tradfri.html" target="_blank">support for IKEA Trådfri</a>. As usual, the features have already been available in the nightly build for a while.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://opennethome.org/features/" target="_blank"><img border="0" data-original-height="170" data-original-width="609" height="89" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN_qVcBuYTKrt5fQ-CZ72Dg4CysNYkln5kkAKtD_t4lK6AVOVaqe48Jhp1IzCBIOn8-K7gq2FH6idUs7MWaAi1r4kNl_9bVco7lIHFQjvLwWTGG6GgimBvNBBE2C-xjLbDKY5PkYfcc4uF/s320/features.png" width="320" /></a></div>
<br />
<br />
A new part of the WEB-Site is the <a href="http://opennethome.org/features/" target="_blank">Feature Index</a>. This is a way to try to visualize all the features that are available in OpenNetHome, and to guide you to the proper HomeItems to use that feature. Welcome in to browse around the features!<br />
<br />
<br />Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-4149454435568723766.post-56515336878044726182017-07-21T22:46:00.002+02:002017-07-21T22:46:57.081+02:00Customizing Plan View<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7wUwAfB0or1WJ4r7EbdbKG3JOQU1YpPvBmXKAaIvUUHNFIbgx3fTkOBtAEKL7bkZ-Inm8feO9oNgw_Ej3mcQTlMbhRQdnwCtrlvNUAz9RxcL3Kpts33sbEVkWbUCApr9riP8GzhgpjQaE/s1600/CustomCss.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="302" data-original-width="313" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7wUwAfB0or1WJ4r7EbdbKG3JOQU1YpPvBmXKAaIvUUHNFIbgx3fTkOBtAEKL7bkZ-Inm8feO9oNgw_Ej3mcQTlMbhRQdnwCtrlvNUAz9RxcL3Kpts33sbEVkWbUCApr9riP8GzhgpjQaE/s1600/CustomCss.PNG" /></a></div>
I have for long time had requests to be able to change the Icons for Items in the Plan view. A typical example is that a remote switch may for example control a coffee maker, but the Item used is actually a NexaLamp (which in reality is a remote switch) which has a lamp bulb as Icon.<br />
<br />
I have been a bit reluctant to add this, because it is a bit of work and other features has always felt more important. Now I got requests to customize other aspects of the plan view as well, and then I realized that the easiest way to be able to customize anything is to allow a custom css file to be added. This is now added in the nightly build.<br />
<br />
So, to change the Icon for a specific Item to a coffee maker, you first upload the image file (<span style="font-family: "Courier New", Courier, monospace; font-size: x-small;">coffee32.png</span>) to the media library (in settings). Then you find out the ID of the Item by looking at the Item details page (Id is 44 in this example) and make a small css-file that looks like this:<br />
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#ID44 li.icon.lamp_off {</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> background: url(coffee32.png) no-repeat center;</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">}</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#ID44 li.icon.lamp_on {</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"> background: url(coffee32.png) no-repeat center;</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">}</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: inherit;">You upload the .css file in the media library, go to the plan page, click "edit this page" and select the css-file.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">This is just one example a what can be changed this way.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;"><br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-65154155476355307662017-07-19T15:23:00.001+02:002017-07-19T15:23:48.579+02:00Custom LampI have got some vacation hacking time, so I have also added an other HomeItem on a user request. A number of users use OpenNetHome partly as a GUI front end for their own implemented hardware, which is exactly what one of the goals with the project is. In this case the user had connected a number of relays which are controlled via shell scripts, and wanted them to be presented as Lamps in the GUI.<br />
<br />
I added the CustomLamp-Item, which behaves like a lamp, but you can configure the on- and off-actions in the Item. Those actions can be to call actions in other Items or as in this case to call external shell scripts.<br />
<br />
The CustomLamp-Item is in the nightly buildUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-330928436605520702017-07-19T11:33:00.000+02:002017-07-19T11:33:01.047+02:00Prologue Thermometer<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB8O4Www4Mflo2IE5uTVvw1GV3QrRiBQfII_5_LBJq9rhltu554lq5CdOwqxUFxB4KPXOOpNHIcAfGd4Ik0bBoS34B_5HAbggeqxxT51zTRxHHqXrI1R_RWRay4pSif6gbIGkLeDL8N5ft/s1600/Prologue720.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="608" data-original-width="720" height="270" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB8O4Www4Mflo2IE5uTVvw1GV3QrRiBQfII_5_LBJq9rhltu554lq5CdOwqxUFxB4KPXOOpNHIcAfGd4Ik0bBoS34B_5HAbggeqxxT51zTRxHHqXrI1R_RWRay4pSif6gbIGkLeDL8N5ft/s320/Prologue720.JPG" width="320" /></a></div>
Since Clas Ohlson in Sweden has a sale on Prologe wireless thermometers (<a href="http://www.clasohlson.com/se/Termometer/36-4741" target="_blank">http://www.clasohlson.com</a>), I added support for their wireless sensors in OpenNetHome. It is in the nightly build and the Item is called PrologueThermometer. It supports auto create, so as soon as a sensor is detected it pops up on the Detected Devices Window ready to use.<br />
<br />
Unfortunately, Telldus has not (yet) added support for it in the TellstickDuo firmware, so it can not be used if you are using TellstickDuo as RF receiver.Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-4149454435568723766.post-30037721663283491572017-06-05T21:38:00.000+02:002017-06-05T21:38:32.417+02:00Warm DimIn the <a href="http://wiki.nethome.nu/doku.php?id=IkeaColorTemperatureLamp" target="_blank">IkeaColorTemperatureLamp</a>, the Item for controlling IKEA Trådfri's white spectrum lamps the new feature WarmDim is now added. When WarmDim is activated, the color temperature is automatically turned warmer the more dimmed the light is, to emulate the way normal incandescent bulbs turns orange when dimmed low. This makes the dimming look more natural.<br />
<br />
You can still set a color temperature for the lamp, which will be used when the lamp is at full power, but the more it is dimmed the warmer the light will get, starting from the set value.<br />
<br />
The feature is in the nightly build.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-88900123311490547342017-05-21T00:03:00.001+02:002017-06-05T21:46:30.537+02:00Instruction film for IKEAI have now made a short instruction film for how to configure and control IKEA Trådfri lamps in OpenNetHome. It is available on YouTube on the OpenNetHome.org-channel.<br />
<br />
<iframe allowfullscreen="1" frameborder="0" height="281" src="https://www.youtube.com/embed/xv4VHMGsOQA?rel=0&showinfo=0?ecver=1" width="450"></iframe>
<br />
I tried to get approval from IKEA to use the sound track from their instruction films, as it felt more "genuine", but IKEA did not allow it :-(. Maybe just as well, this track is a lot less annoying then theirs...Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-4149454435568723766.post-27991665670905832232017-05-07T15:01:00.000+02:002017-05-07T15:06:01.605+02:00Support for IKEA Trådfri<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdE962IZ5iybqAXHuN-xyDL7f2TagQRxYyQBgU_fi0VrNOFO3y3dtVX2BI70HQQGeMyzi61JlN7DfNCYrImCSZvRaBzOJ8aonQeE_dDpmRxrsoClZZeyPSqE2kc9N4EGkjyFr_56MgXfk5/s1600/IKEA_Total.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdE962IZ5iybqAXHuN-xyDL7f2TagQRxYyQBgU_fi0VrNOFO3y3dtVX2BI70HQQGeMyzi61JlN7DfNCYrImCSZvRaBzOJ8aonQeE_dDpmRxrsoClZZeyPSqE2kc9N4EGkjyFr_56MgXfk5/s1600/IKEA_Total.jpg" /></a></div>
<br />
IKEA has made a slightly unexpected entry in the Home Automation space with the new product line Trådfri. Currently it includes a variety of different remote controlled LED-bulbs and some interesting LED-surfaces. They can be controlled via a set of different remote controls or via an app (requires a gateway). All of them are very aggressively priced and best of all, the LED-bulbs are very powerful, with a max of 1000lm which is like a 75W incandescent bulb!<br />
<br />
I have now added support for controlling the IKEA lamps with OpenNetHome. It requires the Trådfri Gateway to work (as the app do), but no other hardware.<br />
<br />
The IkeaGateway-Item supports auto create, so when the gateway is connected in your local network, it shows up in the create-page as a detected device. When you create the IkeaGateway-Item, you have to enter the security code that is printed on the bottom of the Gateway.<br />
<br />
Once the Gateway Item is created, all connected lamps will be auto detected and also show up as detected devices.<br />
<br />
There are two lamp types supported, IkeaLamp and IkeaColorTemperatureLamp. The IkeaLamp represents the standard dimmable lamp with fixed color temperature where the brightness can be set between 0 and 100%. The IkeaColorTemperatureLamp represents the lamps with variable color temperature and for them the color temperature can be set between 0 and 100%, where 0 represents the coldest light. They both support the standard features with four configurable preset dim levels,<br />
<br />
All Items are available in the Nightly build.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-4149454435568723766.post-6836837432347864482016-08-17T21:17:00.000+02:002016-08-17T23:01:34.520+02:00MQTTI have received a new great contribution to the project - MQTT-support! MQTT is a standard for sending and receiving small messages, or events via an MQTT server. It is being used more and more for IoT (Internet of Things), to send messages from small devices like sensors or thermometers.<br />
Support for MQTT is something that has been asked for by other users, but I have not had the time to learn about it and build the support. Now this contribution solves the problem!<br />
<br />
The contribution consists of four new HomeItems:<br />
<br />
<b>MqttClient</b><br />
This is the item which actually listens to MQTT. Here you can specify the address to your MQTT broker, and the topic on which OpenNetHome subscribes.<br />
<br />
<b>MqttHygrometer</b><br />
A moisture sensor, listening on a specific MQTT topic.<br />
<br />
<b>MqttThermometer</b><br />
A temperaturesensor, listening on a specific MQTT topic.<br />
<br />
<b>MqttRemapButton</b><br />
Listens to a specific topic, and can execute six different actions depending on the message received.<br />
<br />
These functions are contributed by <a href="https://github.com/Jocke-G" target="_blank">Jocke G</a> and <a href="https://github.com/patrik-gustavsson" target="_blank">Patrik Gustavsson</a> - thanks a lot guys!<br />
<br />
The Items are in the nightly build.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-4149454435568723766.post-15659630860809450692016-03-25T23:59:00.000+01:002016-03-25T23:59:13.242+01:00JeeLink<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO2DvV7Yo5_lE_v8AR9rIdL-UQ3JjtBubsSoR0n31_WY47XKc09lod9V2E2mFuu1Lj6nyvnOCbSn9zLCYFZilIt3QUgXJdmJsDYMRN_OMoUIDxgKINM_9IkWuU6npOy4XHh5ttdZrZ2P-a/s1600/JeeLink600.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO2DvV7Yo5_lE_v8AR9rIdL-UQ3JjtBubsSoR0n31_WY47XKc09lod9V2E2mFuu1Lj6nyvnOCbSn9zLCYFZilIt3QUgXJdmJsDYMRN_OMoUIDxgKINM_9IkWuU6npOy4XHh5ttdZrZ2P-a/s200/JeeLink600.jpg" width="200" /></a></div>
<br />
The best radio interface available for controlling 433MHz devices is in my opinion the Tellstick Duo. Unfortunately this device is not sold in the US/Canada. So to have something that is possible to use there, I have added support for the <a href="http://www.digitalsmarties.net/products/jeelink-classic" target="_blank">JeeLink classic</a>. JeeLink is an Arduino compatible programmable radio transmitter/receiver sold by <a href="http://www.digitalsmarties.net/" target="_blank">JeeLabs/Digital Smarties</a>. I have developed a small firmware for JeeLink that allows it to act as a generic 433MHz transmitter for OpenNetHome. It does unfortunately not support reception, but on the other hand it is quite inexpensive (€32.50).<br />
To use it, you have to install the OpenNetHome firmware on it, see <a href="http://opennethome.org/hardware/hardwareinstall-jeelink/" target="_blank">this page</a> for more instructions. Support is implemented in the nightly build.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-4149454435568723766.post-43446530795375150702016-02-28T22:35:00.000+01:002016-02-29T07:12:10.774+01:00Logging to databaseIn OpenNethome Items like thermometers can log the values to file, so they can be presented as graphs. The values are stored in flat text files which get quite big after a while, and then the graphs gets slower to present.<br />
<br />
Now we have got a great contribution from Peter Lagerhem; He has implemented a database home item (H2DatabaseTCPServer) and the ability to log to the database and generate the graphs from there. Since the database is much more efficient in finding values for a time period, the graphs are generated much faster. It is also easier to access the values from other programs.<br />
<br />
The database file can be specified in two ways: either for each Item as you do for log files or one central database file which then is automatically used by all Items that log values. The central database file is configured on the settings page in the GlobalLogger field:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeHC9GJkCYWuLIwayL6ySh7EhMeYzDE5Klcj3_GOt7T_aXl7vT4b7gZuY4VHhuy8KwM266cLWu927gEoo80fCv_8VMjhB3C7O3NRJOQqqqo0ljJ4IX68Koh8j1EUKMBqQOkcl_umIe_cIH/s1600/databaselog.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="291" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeHC9GJkCYWuLIwayL6ySh7EhMeYzDE5Klcj3_GOt7T_aXl7vT4b7gZuY4VHhuy8KwM266cLWu927gEoo80fCv_8VMjhB3C7O3NRJOQqqqo0ljJ4IX68Koh8j1EUKMBqQOkcl_umIe_cIH/s320/databaselog.png" width="320" /></a></div>
<br />
<br />
To specify A database log, the log name has the format:<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">jdbc:h2:tcp://127.0.1.1:9092//usr/share/data/logs/sqllog.log</span><br />
<br />
Where <span style="font-family: "courier new" , "courier" , monospace;">/usr/share/data/logs/sqllog.log</span> in this case is the name of the actual file and <span style="font-family: 'courier new', courier, monospace;">jdbc:h2:tcp://127.0.1.1:9092/</span> is the database connection address which you can see on the H2DatabaseTCPServer-Item.<br />
<br />
When specify the database file name as logger, the database with data model is automatically created. You also have to create a H2DatabaseTCPServer-Item which implements the database server.<br />
<br />
Peter also included a feature to migrate all existing log data from the text files into the database and this is done with the "UpdateGlobalLogger"-button. Note that if you have a lot of logged data this migration can take a couple of minutes.<br />
<br />
The changes are in the nightly build - thanks Peter!Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-4149454435568723766.post-87690246324997971192016-01-31T21:18:00.002+01:002016-01-31T21:18:45.774+01:00Background Images<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkKxZaxyTFx7DIpVQZJvfxU7ydEH7GYwG9Q62lJHidsNOA84_Nl6qO9BAsbgcBvWLJ3ab1WcGiR9_dODQMZEmYCe-YZq78hR4NhmTmOB7LOcIhg8JMMwEtVsM9uZ6Jv4uOnTshhAcnKjyv/s1600/media.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkKxZaxyTFx7DIpVQZJvfxU7ydEH7GYwG9Q62lJHidsNOA84_Nl6qO9BAsbgcBvWLJ3ab1WcGiR9_dODQMZEmYCe-YZq78hR4NhmTmOB7LOcIhg8JMMwEtVsM9uZ6Jv4uOnTshhAcnKjyv/s320/media.png" width="320" /></a></div>
<br />
In the plan view, it is possible to add your own background image. Up until now that has been a bit messy to do that, since you have had to manually put the background image file in the correct media directory of the OpenNetHome-server and then edit the Plan item to set it.<br />
<br />
Now I have added a media image view under settings, where it is easy to upload new background images from the GUI. When you set the Plan-view in edit mode you can select any of the uploaded files from a drop down menu.<br />
The changes are in the nightly build.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-6889610919682246532016-01-16T16:00:00.000+01:002016-01-16T16:00:13.949+01:00The power of open sourceI have been a bit lazy with blogging lately, but I will try to make it up...<br />
During the last month, the project has received two contributions of new functions to the server!<br />
<br />
<ul>
<li>Jari Särkkä has added an integration with Python script language, so it is possible to write actions and functions in Python for HomeItems</li>
<li>Peter Lagerhem has added functions to write log data from HomeItems to an SQL-database instead of text files which speeds up the graphs and makes it easier to process and access log data from other programs.</li>
</ul>
<div>
I will be writing more about both contributions in blogs to come when I have added some more documentation, but this is a real proof of the benefits of open source, when people can share their efforts and features. Thanks a lot both of you!</div>
<div>
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-55855954600718452122015-11-13T23:15:00.000+01:002015-11-13T23:17:44.019+01:00Save color<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-Gc_qS8aYdU3VVVxwA80JKfol2mJGxMfvysFbOcVYTfnnUg5nufui1Y5f5s1MdeuQQ4M0o7XDisJ634sALZg_6wOBds9IrXAMXhkCkRl3jWBzrSlDYffoRGMijjWI5sddWCyjSFK8BuCj/s1600/HueColor.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-Gc_qS8aYdU3VVVxwA80JKfol2mJGxMfvysFbOcVYTfnnUg5nufui1Y5f5s1MdeuQQ4M0o7XDisJ634sALZg_6wOBds9IrXAMXhkCkRl3jWBzrSlDYffoRGMijjWI5sddWCyjSFK8BuCj/s1600/HueColor.jpg" /></a></div>
I have now added the possibility to save a color and dim setting as a preset dim value in the HueLamp-Item. You simply set the color and dim level via the Hue phone app for example, and then press the new "LearnDim1"-button in the Home Item. The current settings will then be stored in the Dim1 position and can later be recalled by selecting "Dim1". The HueLamp-Item has four Dim-positions where you can store color/dim-values.<br />
<br />
I have also adapted the HueBridge-Item for the coming security changes in the Hue API. I must take the opportunity to thank the PhilipsHue developer support team for their excellent support! They have sent out mails and described the coming changes, but they have even looked in my source code and given detailed advice on how to adapt for the changes. Look at <a href="https://github.com/NetHome/NetHomeServer/issues/2" target="_blank">this support ticket</a> to see what I mean. Really great developer support!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-42737242908368679552015-11-05T21:01:00.001+01:002015-11-05T21:01:40.246+01:00Oregon Wind<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtzlObC5bGQIj3sVTUHiNCdU8kYCaIshncOp-z952gSN3bpPq2FUGM8WzFOsHZVN_rJ-b8O9-h6iri_0Rs1n2pONh2Tcf-JvjoMbH_7O-Jxccjk5UiNNORuMBIzXzhZ8uKvKSCQr9hExt4/s1600/oregonWind.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtzlObC5bGQIj3sVTUHiNCdU8kYCaIshncOp-z952gSN3bpPq2FUGM8WzFOsHZVN_rJ-b8O9-h6iri_0Rs1n2pONh2Tcf-JvjoMbH_7O-Jxccjk5UiNNORuMBIzXzhZ8uKvKSCQr9hExt4/s200/oregonWind.gif" width="200" /></a></div>
I have now added a Home Item for Oregon Scientific's wind meters. The protocol decoders have had support for a while, but I do not have one myself, so I have not been able to do a proper Home Item. With help of some users who wanted the support I have now added the OregonWind-Item which can display the average wind, wind gusts and wind direction. It is in the nightly build.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-15712224500381384042015-04-26T12:42:00.000+02:002015-04-26T12:42:44.743+02:00Belkin Wemo supported<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVvDPidYm3u4MHruI1U0kd6AluLKt7eCldt0I9UXPCYVJnWCBWOycoHwxsDmLoZRQ3nGr3XUcFq5OBmTaZpk4YRyfWWEnTrpNeKzSOItX0sPffyA65_WRQCihcMQjuInYrIqmrl1QR2pmq/s1600/BelkinWemo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVvDPidYm3u4MHruI1U0kd6AluLKt7eCldt0I9UXPCYVJnWCBWOycoHwxsDmLoZRQ3nGr3XUcFq5OBmTaZpk4YRyfWWEnTrpNeKzSOItX0sPffyA65_WRQCihcMQjuInYrIqmrl1QR2pmq/s1600/BelkinWemo.jpg" height="170" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
Support for Belkin Wemo is now added to OpenNetHome. The Wemo product line is a series of home automation devices which are controlled via WLAN. This means that you do not need any separate hardware in OpenNetHome to control them, they are controlled via the normal network. Normally you control the devices via a phone app, but now you can also control them via OpenNetHome. The devices that are currently supported are:<br />
<br />
<ul>
<li>Wemo Switch - a remote switch</li>
<li>Wemo Insight Switch - a remote switch that also measures power consumption.</li>
<li>Wemo Smart LED Bulb (Including Wemo Link)</li>
</ul>
<div>
The power measurement values from the insight switch can be used in OpenNetHome for graphs and to trigger actions. </div>
<div>
<br /></div>
<div>
All Items support auto creation, so when they are plugged in and connected to the network, OpenNetHome will automatically list them in the Item Creation page ready to be used. </div>
<div>
Since the LED Bulbs communicate via the Wemo Link (Bridge), you have to add the Wemo Bridge-Item before the LED Bulbs show up in the creation page.</div>
<div>
<br /></div>
<div>
The new functions are currently in the nightly build</div>
Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-4149454435568723766.post-3952939769344924112015-03-19T22:33:00.000+01:002015-03-19T22:34:43.438+01:00RollerTrol<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5TyHPj6pcCp16BvYzi7pzyrfF11tPPAyTvtgU5hsvzO3uCygix5_JdsXPxhxvgoX7tC12M8TkXwkdAE-LZXyIgu5_Ldh0hUTaUEttTsJ8-QCYcM6w1kBYr5pM9mcSjp3OFxcWQALrAYTQ/s1600/RollerTrol.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5TyHPj6pcCp16BvYzi7pzyrfF11tPPAyTvtgU5hsvzO3uCygix5_JdsXPxhxvgoX7tC12M8TkXwkdAE-LZXyIgu5_Ldh0hUTaUEttTsJ8-QCYcM6w1kBYr5pM9mcSjp3OFxcWQALrAYTQ/s1600/RollerTrol.jpg" height="270" width="320" /></a></div>
<br />
I have now added support for the first actuator in OpenNetHome - the <a href="http://rollertrol.com/" target="_blank">RollerTrol</a> automation systems. RollerTrol manufactures motors for automating shades and blinds. Most of their products are very DIY-friendly, and one of their more popular products is a small tubular motor that fits in the <a href="http://rollertrol.com/DIY-make-remote-control-projector-screen-from-blind" target="_blank">IKEA Tupplur Blind</a>.<br />
RollerTrol uses remote controls on the 433MHz band, so they can be controlled with Tellstick, Bitbanger or home made RF-Transmitters from OpenNetHome.<br />
<br />
The RollerTrolBlind-Item in OpenNetHome, can send the standard Up, Down and Stop commands, but also the configuration commands: Confirm, Limit and Reverse.<br />
The Item presents the current position of the blind in real time, as percentage of the full travel. You can also define two custom stop positions where you can send the blind.<br />
The Item is available in the nightly build.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-56470801223835384392015-03-10T21:36:00.000+01:002015-03-10T21:36:52.058+01:00Hue Lux<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNQgcwkuJehY3hRr2NJDCmLUZfUhP0J7U6YowJYiAH9mu8SZ25958dNn-kOactnB62993-ct84LDqd9uoFUY2CtqncKw5SE0YKZH0YrzhLKKwWI-NKy6G3DAmYTFsLEQIYd3umVIVlhVP-/s1600/HueLux.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNQgcwkuJehY3hRr2NJDCmLUZfUhP0J7U6YowJYiAH9mu8SZ25958dNn-kOactnB62993-ct84LDqd9uoFUY2CtqncKw5SE0YKZH0YrzhLKKwWI-NKy6G3DAmYTFsLEQIYd3umVIVlhVP-/s1600/HueLux.jpg" /></a></div>
<br />
I have added support for the monochrome lamps in the Philips Hue range called Hue Lux. These are a lower cost version of the lamps in the Hue series that does not support different colors, only dimming. I actually implemented this support without having access to a lamp myself, just using the excellent specs on Philips' site. With help from members on the <a href="http://forum.opennethome.org/" target="_blank">forum</a> I could get the feature verified and tested - thanks for the help! The lamps support auto detection like the ordinary Hue-lamps.<br />
It is in the nightly build.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-7240513720789246552014-12-14T08:54:00.000+01:002014-12-14T09:00:45.058+01:00Forum addedI thought I would make it easier to share answers to questions I get, and also have a place where other users can comment, so I have added a forum to to the site. I have been asked about this before and had actually prepared a forum plugin on the site for a while, but now I went for phpBB instead. The forum is available at <a href="http://forum.opennethome.org/" target="_blank">http://forum.opennethome.org</a>, welcome!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4149454435568723766.post-51650068745944673722014-12-07T15:39:00.000+01:002014-12-07T15:39:18.760+01:00Nethome is listening<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBFYD_6uD9032EVk_sgAnfv66ba2SSeKyFWBnlSVJJNnC90PQFWHgRSyT-9G64xKrrOFaOuswp32X0_9_oGaMoTchDAfxUNqwVndjXsAXWH4q-l8H_6DJ0MGeLBa2q8GDnkTmeH_BlVpVI/s1600/MessageInteractor.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBFYD_6uD9032EVk_sgAnfv66ba2SSeKyFWBnlSVJJNnC90PQFWHgRSyT-9G64xKrrOFaOuswp32X0_9_oGaMoTchDAfxUNqwVndjXsAXWH4q-l8H_6DJ0MGeLBa2q8GDnkTmeH_BlVpVI/s1600/MessageInteractor.png" height="320" width="159" /></a></div>
<br />
It is now possible to send messages to Nethome and trigger actions and responses. In the new MessageInteractor-Item you can specify trigger strings, and if Nethome receives a chat message containing the trigger string the MessageInteractor-Item can trigger any action and also generate an answer which may contain attribute values from other Items.<br />
<br />
In the example above, the trigger string of one Item is "<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">whats</span>" and the configured reply string is: "<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">Nothing much... Outside temperature is ${Balcony.Temperature} degrees and the fridge is at ${Freezer.Temperature} degrees. The bedroom window lamp is ${Bedroomwindow.State}.</span>"<br />
<br />
One advantage with using an xmpp chat client to access Nethome is that you do not have to open up your firewall to access it from the outside. The xmpp-client item can connect out through firewalls. In the XmppClient-item you can also specify from which senders you accept messages.<br />
<br />
The MessageInteractor-item is available in the nightly build.Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-4149454435568723766.post-50329061594263634202014-11-09T22:06:00.002+01:002014-11-09T22:06:16.844+01:00Nethome Sending Messages<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS-5qofQM6j5jAO0mLDREf49wZVLZk8oCLbqr4fUVQl44R8GfQAhq3YlLVHx-GTPxOOLPo03WDMn35a5ZVLUdGKyvEW1QaZpJwMKEAMp6vxoAHaZlat9t__rI34YLH55kPaqvYswtMNPFz/s1600/xmpp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS-5qofQM6j5jAO0mLDREf49wZVLZk8oCLbqr4fUVQl44R8GfQAhq3YlLVHx-GTPxOOLPo03WDMn35a5ZVLUdGKyvEW1QaZpJwMKEAMp6vxoAHaZlat9t__rI34YLH55kPaqvYswtMNPFz/s1600/xmpp.png" height="320" width="156" /></a></div>
Nethome now have the ability to send messages! I have been wanting to add this for quite some time, but now it is done. I have been looking at a number of ways of communication, but I finally chose XMPP (Jabber). First I looked at ordinary mail, but messages from Nethome would typically be more of real time messages. Then I looked at SMS, but the problem is that you need to have payed accounts to have reliable service for that. XMPP is an instant messaging protocol, and there are a number of free XMPP (Jabber) servers available where you can get an account. There are also a number of clients for IPhone and Android. Messages pop up in your phone just like SMS (provided that you have internet connection).<br />
<br />
There are two new Items added for this: <b>XmppClient</b>, which has the configuration for the connection to the server and <b>Message</b> which holds a message and has the <i>send</i>-action.<br />
<br />
The message text may refer to attribute values of other Home Items, so the text in the picture above is really: "<i>Freezer is too warm, currently at ${Freezer.Temperature} degrees</i>"<br />
<br />
I am using the excellent <a href="http://sco0ter.bitbucket.org/babbler/" target="_blank">Babbler-library</a> by Christian Schudt for the xmpp-communication.<br />
<br />
So all you need to do is to create one account for your Nethome-server and one account for yourself at one of the jabber servers and then your nethome server can start sending messages to you.<br />
<br />
<br />Unknownnoreply@blogger.com8tag:blogger.com,1999:blog-4149454435568723766.post-55941043851736044532014-09-27T12:37:00.000+02:002014-09-27T12:37:31.337+02:00Give your home a RESTOpenNetHome have always had a TCP/IP interface for integration in the <a href="http://wiki.nethome.nu/doku.php/tcpcommandport" target="_blank">TCPCommandPort</a>-Item. But it is time to add a more modern interface to my home. I have now implemented a REST-interface with json encoding to OpenNetHome which exposes HomeItems as REST-resources. Since basically everything in OpenNetHome is HomeItems (lamps, thermometers, timers, web-server and so on) this means that most of the features in the server can be reached via this interface. The URL to turn off the lamp in my bedroom window is for example:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">POST http://ssgserver2:8020/rest/items/108/actions/off/invoke</span><br />
<br />
and to get the temperature on the balcony i do a get on the URL:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">GET http://ssgserver2:8020/rest/items/52</span><br />
<br />
The "108" and "52" are the identities of the corresponding HomeItems, and you can get the identities by listing all HomeItems in the server with:<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">GET http://ssgserver2:8020/rest/items</span><br />
<div>
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
This kind of interface works well with modern WEB-frameworks like ember.js and AngularJS but also for integration with phone apps and other home control systems.<br />
<br />
The full documentation of the interface is available <a href="http://opennethome.org/interfaces/rest" target="_blank">here</a> on the <a href="http://opennethome.org/" target="_blank">OpenNethome-site</a>. The implementation is as usual available in the nightly build. Note that details of the interface my still change and feedback on the interface is welcome!<br />
Unknownnoreply@blogger.com6tag:blogger.com,1999:blog-4149454435568723766.post-29580831472057071252014-09-13T10:42:00.000+02:002014-09-13T10:42:31.589+02:00Raspberry Pi Installation<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1_T_MfN-I7Cx2cviuYFhgpofzETPLM9adqjKmAV6KZDkVmHpGMe8y3omvDs3XmmOjG9SudzgMXjx66aVvch-Ky1gMb-QGRI7uxvdjoy5B2ogKJs4aNa5wYVnU_KjXS_IoppYV-WSGVUyM/s1600/nhlovepi.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1_T_MfN-I7Cx2cviuYFhgpofzETPLM9adqjKmAV6KZDkVmHpGMe8y3omvDs3XmmOjG9SudzgMXjx66aVvch-Ky1gMb-QGRI7uxvdjoy5B2ogKJs4aNa5wYVnU_KjXS_IoppYV-WSGVUyM/s1600/nhlovepi.png" /></a></div>
Since the majority of the OpenNetHome users are using raspberry pi as platform, I have made it easier to install and upgrade on that platform.<br />
I have now added a plug&play installation script for Raspberry Pi which installs the files in the appropriate locations in the file system, configures serial drivers and installs the OpenNetHome server as a daemon that runs in the background with its own user account. All you have to do is to run this script and then you can plug in a TellstickDuo and start controlling your home!<br />
<br />
A complete installation instruction including download of the release is:<br />
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">wget http://wiki.nethome.nu/lib/exe/fetch.php/nethomeservernightly.zip</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">unzip nethomeservernightly.zip</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">cd nethomeservernightly/install/raspbian/</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">chmod +x *.sh</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">sudo ./install.sh</span><br />
<div>
<br /></div>
<div>
Included is also an automated upgrade script, which will download the current nightly build and upgrade the installation to that. This script should be copied to your home directory and run whenever you want to upgrade your installation:</div>
<div>
<br /></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">sudo ./upgrade_nethome_nightly.sh</span></div>
<div>
<br /></div>
<div>
The daemon installation is built on the earlier nhs installation contributed by Peter Lagerhem, but is modified quite a bit, so if you are using that you have to uninstall it according to the instructions in the readme-file before you can do this installation.</div>
<div>
<br /></div>
<div>
The installation scripts are available in the nightly build</div>
Unknownnoreply@blogger.com12