📜 ⬆️ ⬇️

Wiren Board 4 - controller for automation

image

A year ago, we released the Wiren Board Smart Home controller. Due to the low price and wide opportunities, he was a success among enthusiasts.

Therefore, we decided not to stop and released a new version - a controller for the automation of Wiren Board 4, to which we also wrote a new software.
')
Despite the name, customers often used Wiren Board Smart Home for non-domestic tasks: collecting climatic parameters, polling meters and sensors, and remotely controlling equipment — that is, as a universal logic controller.

Wiren Board 4 (both in hardware and software) is better suited for such tasks. Home users have this also touched - the controller has become more reliable.

Iron


image

Electronics controller has undergone deep processing. At the same time, where possible, compatibility with the previous version remained.
The changes are mainly related to the elimination of the identified deficiencies:



Production of the controller even with minimal modifications is very expensive, both in time and in money.

Therefore, in order to make it more flexible, we left room for expansion scarves, and allocated 3 terminals for it. Power, UART, I2C, SPI are output to the extension connector. Now there are scarves with RS-232, also planned with CAN and DAC (0-10V).

expansion


Web interface



web interface

For the release of Wiren Board 4, we have released a new web interface.
Initially, we assumed that the controller will be used with third-party interfaces. It turned out that existing systems are poorly suited - their capabilities are either not enough, or they are slow, or they cannot be expanded.

In our local HomeUI web interface, the standard automation concepts are supported: “rooms”, dashboards, and the view is detached from the physical connection. The interface is written in Angular using web sockets and Bootstrap, it works quickly, does not load the controller and looks decent on mobile devices.

Of course, the existing options for connecting to third-party systems Majordomo and OpenHAB continue to work.

Rule engine


We also made a powerful wb-rules rule system. The rule engine deserves a separate story, and we will soon write an article about it. The engine allows you to write rules and scripts, create virtual devices, schedule actions for a specified time, handle events.

The rules are written in JavaScript, and a person with no programming skills can easily figure it out.
Rule example
defineRule("motion_detector", { whenChanged: "wb-gpio/D1_IN", then: function (newValue, devName, cellName) { dev["wb-gpio"]["Relay_2"] = newValue; dev["wb-mrm2_6"]["Relay 1"] = newValue; } }); 


 defineRule("crontest_hourly", { when: cron("@hourly"), then: function () { log("@hourly rule fired"); } }); 



Peripherals


A lot of work has been done in the system software - in the drivers for embedded devices and external peripherals:

In beta testing (testers are invited):


Cloud Wiren Board Cloud


The local web interface is good, but very often you need access via the Internet. To do this, we made a cloudy web interface that runs on our servers.

With the server, the Wiren Board controllers exchange only data, so everything works quickly and even over GPRS.

Additionally, you can connect several controllers to one interface, which for example allows you to make “mini-SCADA” systems for dispatching.

See in action here: demo.contactless.ru .

Developer Discount


We made a 20% discount on samples of all our production devices for developers. The discount applies to 1 copy of each device for individuals.

All the details are on the website and in the documentation center .

We welcome comments!

Source: https://habr.com/ru/post/257977/


All Articles