Access to serial port and dropdown in widget

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
CopyCat73
Posts: 10
Joined: 19 Nov 2015 12:54

Access to serial port and dropdown in widget

Post by CopyCat73 »

Hi,

I've recently purchased a razberry after using various other HA systems over the last 10 years, and I have seriously fallen in love with the zway platform. I've started planning a move from Fibaro HCL to zway, but for that I need some new widgets that I am building at the moment and will publish later in the recipes section. I've built netatmo weather and welcome widgets, a telegram chat bot and am planning Nest, smart meter cable and Youless ones. Some stuff you can already find on github. For the moment I have two questions:

- Does anyone have an example to access a serial port from server side javascript? I would like to query my smart meter via usb cable. It's currently connected to another pi so I could write a simple api, but I would like to plug the cable into my zway server directly.

- I'm planning to build a simple home status widget, but the binary state of a device bugs me. Instead of on/off we obvously need "home/away/vacation" in a drop down. The module itself supports a mode for that, but I'd like to see a dropdown in the GUI. I've looked at the wiki and saw the registerWidgetClass method, but that information seems outdated. Is there still an option to extend the standard widget?
Last edited by CopyCat73 on 19 Nov 2015 14:28, edited 1 time in total.
remoticz
Posts: 45
Joined: 07 Oct 2015 20:35
Location: no

Re: Access to serial port and dropdown in widget

Post by remoticz »

> Some stuff you can already find on github.
Where?
v2.1.1 raspi2
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Access to serial port and dropdown in widget

Post by pofs »

CopyCat73 wrote:Does anyone have an example to access a serial port from server side javascript? I would like to query my smart meter via usb cable. It's currently connected to another pi so I could write a simple api, but I would like to plug the cable into my zway server directly.
Not from the box, but a native module can be written.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Access to serial port and dropdown in widget

Post by PoltoS »

@CopyCat73 you can find an example of native module here: http://razberry.z-wave.me/index.php?id=15

As for custom widgets, we are thinking about "drop down list" widget for quite some time - this is in our schedule, but far from prior ;(

You can unfortunatelly not make your own widgets via API, since you will also need all Apps/UIs to also know about them. But if you change all of them accordingly, it is possible.
Post Reply