Python 3 package to interface devices from STALL WIFFI.
pip3 install wiffi
- Set "CCU-IP Adresse myCCUIP" to the IP address of Home Assistant.
- Set port for JSON telegrams to configured server port using parameter "send_json".
class WiffiIntegrationApi:
def __init__(self, hass, config_entry):
self._server = WiffiTcpServer(8189, self)
async def __call__(self, device, metrics):
# device is of type WiffiDevice
print(f"mac address = {device.mac_address}")
for metric in metrics:
# metric is of type WiffiMetric
print(f"value = {metric.value} {metric.unit_of_measurement")