WolkGateway module for connecting Z-Wave devices to WolkAbout IoT Platform by communicating with WolkGateway.
- Python 3.7
This project was built using PyZwaver that handles all Z-Wave communication and WolkGatewayModule-SDK-Python that manages the connection to WolkGateway.
They can be installed by running:
sudo ./setup.sh
Edit configuration.json with the serial_port
where the primary controller is connected,
and setup the host
and port
to refer to the WolkGateway's MQTT broker.
module_name
is used to uniquely identify a module on WolkGateway.
{
"serial_port": "/dev/ttyACM0", // Primary Z-Wave controller
"host": "localhost", // Host address of WolkGateway
"port": 1883, // Port of WolkGateway's MQTT broker
"module_name": "Z-Wave Module" // Unique module identifier
}
Managing the communication with Z-Wave nodes can be seen in demo.py
that uses Aeotec Z-Stick controller and Aeotec Smart Dimmer 6.
The example gets the current energy consumption periodically from the smart plug and accepts commands from WolkAbout IoT Platform to change the current value of the dimmer.