Version 2

Discussions about RaZberry - Z-Wave board for Raspberry computer
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Version 2

Post by pofs »

zoic22 wrote:I don't see any big difference in API for now
We tried to keep z-wave API as much compatible as possible. But there's actually a lot of changes under the hood.

Key changes are:
1) The system is now fully modular. Everything (even web server and z-wave core) is now a JS object available in HA, and can be loaded and unloaded any time.
2) Added a new proxy API to access resources from intranet (like IP cameras streams) even when accessing RaZberry remotely.
3) Support for native modules which are loaded dynamically. You may write a C++ library, and it will be exposed to JS.
4) All requests are now handled inside JS. So it is possible to add custom JS handler for any url, not only under /ZAutomation. A new parser processes requests and parses forms (both application/x-www-form-urlencoded and multipart/form-data) into JS objects, so it very easy to access forms data now.
5) Support for WebSockets, so you can push changes to client (it is not yet implemented in HA though).
6) Initial support of HomeKit. It is still under development, but it is already possible to experiment with it.
7) A brand new Expert UI for network management (the old one is still available).
8) Redesigned module dependency mechanism in HA.
9) And a lot of improvements in Z-Wave core for better devices support, of course.

We also made a huge effort on stability improvements. Please monitor memory and CPU usage to see if there are some problems remaining.
Last edited by pofs on 02 Oct 2014 15:17, edited 1 time in total.

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

PoltoS wrote:

Code: Select all

LD_LIBRARY_PATH=/opt/z-way-server/libs find /opt/z-way-server/config/zddx -name "*.xml" -exec /opt/z-way-server/z-cfg-update {} \;
This works now without producing an error. I tried with both `blue` interfaces, but the old version continues to say that the server hasn´t started yet. The new Expert interface has a pink warning field ìndicates:

Code: Select all

Error handling data from server 
The log is below

Code: Select all

[2014-10-02 11:46:34.998] [I] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2014-10-02 11:46:35.032] [I] [core] Executing script: ;!function(exports, undefined) { ...
[2014-10-02 11:46:35.150] [I] [core] Executing script: //     Underscore.js 1.6.0 ...
[2014-10-02 11:46:35.292] [I] [core] Actualizing config
[2014-10-02 11:46:35.312] [I] [core] Executing script: /*** Z-Way HA Virtual Device base class *************************************** ...
[2014-10-02 11:46:35.328] [I] [core] Executing script: /*** Z-Way DevicesCollection class ************************************ ...
[2014-10-02 11:46:35.427] [I] [core] Executing script: /*** Z-Way HA Controller class module ***************************************** ...
[2014-10-02 11:46:35.472] [I] [core] Executing script: /*** Z-Way HA Automation module base class ************************************ ...
[2014-10-02 11:46:35.483] [I] [core] Executing script: /*** Main Automation storage module ***************************************** ...
[2014-10-02 11:46:35.503] [I] [core] Executing script: /*** Main Automation webserver module ***************************************** ...
[2014-10-02 11:46:35.510] [I] [core] Executing script: // Make this testable by pulling in underscore from the parent module ...
[2014-10-02 11:46:35.520] [I] [core] Executing script: /*** Main Automation storage module ***************************************** ...
[2014-10-02 11:46:35.577] [I] [core] --- Loading ZAutomation classes
[2014-10-02 11:46:35.704] [I] [core] Starting ZWay Automation webserver
[2014-10-02 11:46:35.710] [I] [core] Loading modules...
[2014-10-02 11:46:35.737] [I] [core] Loading module AutoLock from modules/AutoLock
[2014-10-02 11:46:35.741] [I] [core] Executing script: /*** AutoLock Z-Way Home Automation module ************************************* ...
[2014-10-02 11:46:35.753] [I] [core] Loading module ZWave from modules/ZWave
[2014-10-02 11:46:35.757] [I] [core] Executing script: /*** Z-Wave Binding module ******************************************************** ...
[2014-10-02 11:46:35.810] [I] [core] Notification: error (core): Failed to load module ZWaveDeadDetection because ZWave was not instanciated
[2014-10-02 11:46:35.811] [I] [core] Loading module OpenWeather from modules/OpenWeather
[2014-10-02 11:46:35.816] [I] [core] Executing script: /*** OpenWeather Z-Way HA module ******************************************* ...
[2014-10-02 11:46:35.820] [I] [core] Loading module HomeKitGate from modules/HomeKitGate
[2014-10-02 11:46:35.826] [I] [core] Executing script: /* ...
[2014-10-02 11:46:35.829] [I] [core] Loading module SwitchControlGenerator from modules/SwitchControlGenerator
[2014-10-02 11:46:35.835] [I] [core] Executing script: /*** SwitchControlGenerator Z-Way HA module ******************************************* ...
[2014-10-02 11:46:35.838] [I] [core] Loading module DelayedScene from modules/DelayedScene
[2014-10-02 11:46:35.842] [I] [core] Executing script: /*** DelayedScene Z-Way HA module ******************************************* ...
[2014-10-02 11:46:35.844] [I] [core] Loading module Cron from modules/Cron
[2014-10-02 11:46:35.850] [I] [core] Executing script: /*** Cron ZAutomation module ************************************************** ...
[2014-10-02 11:46:35.885] [I] [core] Instantiating module 1 from class Cron
[2014-10-02 11:46:35.893] [I] [core] --- Starting module Cron scheduler
[2014-10-02 11:46:35.933] [I] [core] Loading module SensorsPolling from modules/SensorsPolling
[2014-10-02 11:46:35.937] [I] [core] Executing script: /*** SensorsPolling Z-Way HA module ******************************************* ...
[2014-10-02 11:46:35.940] [I] [core] Loading module ZWave from modules/ZWave
[2014-10-02 11:46:35.941] [I] [core] Executing script: /*** Z-Wave Binding module ******************************************************** ...
[2014-10-02 11:46:35.959] [I] [core] Notification: error (core): Failed to load module ZWaveGate because ZWave was not instanciated
[2014-10-02 11:46:35.961] [I] [core] Loading module SecurityMode from modules/SecurityMode
[2014-10-02 11:46:35.968] [I] [core] Executing script: /*** SecurityMode Z-Way HA module ******************************************* ...
[2014-10-02 11:46:35.971] [I] [core] Loading module OpenRemoteHelpers from modules/OpenRemoteHelpers
[2014-10-02 11:46:35.977] [I] [core] Executing script: /* RaZOR ...
[2014-10-02 11:46:35.989] [I] [core] Instantiating module 4 from class OpenRemoteHelpers
[2014-10-02 11:46:36.002] [I] [core] --- Starting module OpenRemote helper
[2014-10-02 11:46:36.027] [I] [core] Loading module CustomUserCodeLoader from modules/CustomUserCodeLoader
[2014-10-02 11:46:36.030] [I] [core] Executing script:   /*** CustomUserCodeLoader ZAutomation module **************************************** ...
[2014-10-02 11:46:36.033] [I] [core] Loading module LogicalRules from modules/LogicalRules
[2014-10-02 11:46:36.040] [I] [core] Executing script: /*** LogicalRules Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.043] [I] [core] Loading module ImportRemoteHA from modules/ImportRemoteHA
[2014-10-02 11:46:36.050] [I] [core] Executing script: /*** ImportRemoteHA Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.053] [I] [core] Loading module SensorValueLogging from modules/SensorValueLogging
[2014-10-02 11:46:36.057] [I] [core] Executing script: /*** SensorValueLogging Z-Way Home Automation module ************************************* ...
[2014-10-02 11:46:36.059] [I] [core] Loading module TagOnOff from modules/TagOnOff
[2014-10-02 11:46:36.062] [I] [core] Executing script: /*** TagOnOff Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.065] [I] [core] Loading module BindDevices from modules/BindDevices
[2014-10-02 11:46:36.069] [I] [core] Executing script: /*** BindDevices Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.071] [I] [core] Loading module GroupDevices from modules/GroupDevices
[2014-10-02 11:46:36.076] [I] [core] Executing script: /*** GroupDevices Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.078] [I] [core] Loading module LightScene from modules/LightScene
[2014-10-02 11:46:36.082] [I] [core] Executing script: /*** LightScene Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.085] [I] [core] Loading module HTTPDevice from modules/HTTPDevice
[2014-10-02 11:46:36.091] [I] [core] Executing script: /*** HTTPDevice Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.094] [I] [core] Loading module NotificationSMSru from modules/NotificationSMSru
[2014-10-02 11:46:36.097] [I] [core] Executing script: /*** NotificationSMSru Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.100] [I] [core] Loading module Notification from modules/Notification
[2014-10-02 11:46:36.103] [I] [core] Executing script: /*** Notification Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.107] [I] [core] Loading module CustomUserCode from modules/CustomUserCode
[2014-10-02 11:46:36.110] [I] [core] Executing script:   /*** CustomUserCode ZAutomation module **************************************** ...
[2014-10-02 11:46:36.112] [I] [core] Loading module DummyDevice from modules/DummyDevice
[2014-10-02 11:46:36.116] [I] [core] Executing script: /*** DummyDevice Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.118] [I] [core] Loading module Camera from modules/Camera
[2014-10-02 11:46:36.123] [I] [core] Executing script: /*** Camera Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.146] [I] [core] Loading module AutoOff from modules/AutoOff
[2014-10-02 11:46:36.150] [I] [core] Executing script: /*** AutoOff Z-Way Home Automation module ************************************* ...
[2014-10-02 11:46:36.152] [I] [core] Loading module RoundRobinScenes from modules/RoundRobinScenes
[2014-10-02 11:46:36.156] [I] [core] Executing script: /*** RoundRobinScenes Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.159] [I] [core] Loading module ScheduledScene from modules/ScheduledScene
[2014-10-02 11:46:36.163] [I] [core] Executing script: /*** ScheduledScene Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.165] [I] [core] Loading module CodeDevice from modules/CodeDevice
[2014-10-02 11:46:36.171] [I] [core] Executing script: /*** CodeDevice Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.173] [I] [core] Loading module RGB from modules/RGB
[2014-10-02 11:46:36.178] [I] [core] Executing script: /*** RGB Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.181] [I] [core] Loading module BatteryPolling from modules/BatteryPolling
[2014-10-02 11:46:36.186] [I] [core] Executing script: /*** BatteryPolling Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.188] [I] [core] Loading module YandexProbki from modules/YandexProbki
[2014-10-02 11:46:36.193] [I] [core] Executing script: /*** YandexProbki Z-Way HA module ******************************************* ...
[2014-10-02 11:46:36.196] [I] [core] Loading module ZWave from modules/ZWave
[2014-10-02 11:46:36.197] [I] [core] Executing script: /*** Z-Wave Binding module ******************************************************** ...
[2014-10-02 11:46:36.200] [I] [core] Starting automation...
[2014-10-02 11:46:36.323] [I] [core] Starting storage...
[2014-10-02 11:46:36.327] [I] [core] ZWay Automation started
[2014-10-02 11:46:36.328] [I] [core] Z-Way object is not loaded. Skipping Z-Way Utilities
[2014-10-02 11:46:48.359] [I] [core] Executing script: zway.devices[11].instances[0].NodeNaming.data.nodename.value
[2014-10-02 11:46:48.442] [E] [core] result: Error: ReferenceError: zway is not defined
    at <anonymous>:1:1
    at ZWaveAPI.Run (automation/main.js:132:14)
    at WebServerRequestHandler (automation/main.js:239:10)
[2014-10-02 11:46:48.474] [I] [core] Executing script: zway.devices[11].instances[0].NodeNaming.data.location.value
[2014-10-02 11:46:48.483] [E] [core] result: Error: ReferenceError: zway is not defined
    at <anonymous>:1:1
    at ZWaveAPI.Run (automation/main.js:132:14)
    at WebServerRequestHandler (automation/main.js:239:10)
Since 29-12-2016 I am no longer a moderator for this forum

pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Version 2

Post by pofs »

@pz1 do you have Z-Wave Binding module enabled (or even present) in HA?

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

No, I had not enabled that one. There were four others that seemed predefined, I did enable those.
After your previous post I did add the Zway binding module and changed the post to /dev/ttyAMA0 as suggested by zoic22.
Seems to work now. Further testing later today
Thanks
Since 29-12-2016 I am no longer a moderator for this forum

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

One of my StellaZ thermostats suddenly has a different set of modes. I am not aware of issuing a forced re-interview. I do not see the modes 1 and 11 for StellaZ. I quess I'll have to Re- interview or re-include.
edit20141009: re-interview fixed it

PS1: As I am testing anyhow, does it make sense for me to upgrade to RC9 that was released yesterday?
PS2: I could comment on the new blue interface, but I guess it is not yet completely finished?
modes.PNG
modes.PNG (21.42 KiB) Viewed 4991 times
Since 29-12-2016 I am no longer a moderator for this forum

pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Version 2

Post by pofs »

@pz1 btw, how's the memory usage on 2.0?

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

pofs wrote:@pz1 btw, how's the memory usage on 2.0?
The usage patterns in 2.0 are not changing much at superficial checking. I should take a closer look and collect some data again.

Presently I am more 'obsessed' with the awkward spikes in the temperature readings from both my Fibaro Universal Sensors. I am wondering if that comes from "your" end, or from the wiring again. At the moment I am playing a bit with RC10
Pieter
Since 29-12-2016 I am no longer a moderator for this forum

pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Version 2

Post by pofs »

Actually we haven't changed anything in SensorMultilevel reports, so it is probably wiring issue. Or firmware issue in sensor.

klirichek
Posts: 39
Joined: 02 Nov 2012 14:53

Re: Version 2

Post by klirichek »

Where all the deviced gone in Version 2 HA?

I've just tried to pick up the 'develop' branch, over 2.0.0-rc10.
I've found that 'htdocs' was moved away, and found where to pick them again.
I've loaded the HA UI, but there are no devices there...

Well, I've added modules 'z-wave gate device creator', 'z-wave-binding' and 'Cron scheduler', but it doesn't help.
There are no warnings or errors in log. On restart z-way initialized working of z-way system (so, expert ui works well). But the 'gate device creator' is just loaded, and nothing essential happens. I.e., no device creation. What is to fix there?

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

A week ago I noticed the same. And not only the devices had gone, but also the OpenRemoteHelpers were no longer functional. In other threads the developers have warned that these releases should be handled with care.
I did revert to rc8, which still has all the devices. I do get the feeling that there is still a massive recoding activity.

Talking about 'release candidates', I think the present rc's should rather be considered as alfa releases.
Since 29-12-2016 I am no longer a moderator for this forum

Post Reply