Page 1 of 1

Access to serial port and dropdown in widget

Posted: 19 Nov 2015 13:04
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?

Re: Access to serial port and dropdown in widget

Posted: 19 Nov 2015 13:40
by remoticz
> Some stuff you can already find on github.
Where?

Re: Access to serial port and dropdown in widget

Posted: 21 Nov 2015 20:08
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.

Re: Access to serial port and dropdown in widget

Posted: 29 Nov 2015 01:50
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.