Access to serial port and dropdown in widget
Posted: 19 Nov 2015 13:04
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?
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?