Metadata-Version: 2.4
Name: moat-link-wago
Version: 0.9.1
Summary: Wago controller connector for MoaT-Link
Author-email: Matthias Urlichs <matthias@urlichs.de>
Project-URL: homepage, https://m-o-a-t.org
Project-URL: repository, https://github.com/M-o-a-T/moat
Keywords: MoaT
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: AsyncIO
Classifier: Framework :: Trio
Classifier: Framework :: AnyIO
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: anyio~=4.2
Requires-Dist: asyncclick~=8.3
Requires-Dist: asyncwago~=0.31.6
Requires-Dist: moat-util~=0.63.0
Requires-Dist: moat-link~=0.9.0
Requires-Dist: moat-lib-config~=0.2.0
Dynamic: license-file

# Wago controller connector

% start synopsis
Connects MoaT-Link to Wago bus controllers via the asyncwago library.
% end synopsis

% start main

This module bridges MoaT-Link values and Wago controller ports, in both
directions, via the ``asyncwago`` library.  It replaces the legacy
``moat-kv-wago`` package.

## Quick start

1. Configure a Wago controller:

   ```shell
   moat link wago myctrl add -h 10.0.0.1
   ```

2. Map a port to a MoaT-Link path:

   ```shell
   moat link wago myctrl at input 1 3 add -m read -s dest .data.lamp.kitchen
   ```

3. Run the connector:

   ```shell
   moat link wago myctrl monitor
   ```

## Deprecation

This package supersedes ``moat-kv-wago``.  The address tree now lives in
MoaT-Link under the ``wago.<NAME>`` prefix; ports are stored as
``input`` or ``output`` type, then card number, then port number.

% end main
