There’s been a major update to pydantic. As a matter of fact, the atag one library does not run anymore.
Traceback (most recent call last):
File "/opt/atagone-mqtt-bridge/app.py", line 5, in <module>
from atagmqtt.atag_interaction import main
File "/opt/atagone-mqtt-bridge/atagmqtt/atag_interaction.py", line 8, in <module>
from .device_atagone import DeviceAtagOne
File "/opt/atagone-mqtt-bridge/atagmqtt/device_atagone.py", line 17, in <module>
from .configuration import Settings
File "/opt/atagone-mqtt-bridge/atagmqtt/configuration.py", line 4, in <module>
from pydantic_settings import BaseSettings
ModuleNotFoundError: No module named 'pydantic_settings'
I will update as soon as I have a chance. In the meantime I suppose you could install an older version of the pydantic module to get things running. Alternatively, you could use the docker image of you are familiar with docker.
I’ve updated the Dockerfile and fixed the code so it runs with a recent version of pydantic-settings. So everything should be working either directly in Python on your RPi or in a self built Docker container.
I’m recently seeing the following warnings in OpenHab
2024-01-19 11:54:19.392 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command 'manual' from channel 'mqtt:homie300:2a29288b20:atagone:centralheating#mode' not supported by type 'TextValue': Value manual not within range
2024-01-19 11:54:19.398 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command 'manual' from channel 'mqtt:homie300:2a29288b20:atagone:controls#ch_2Dmode' not supported by type 'TextValue': Value manual not within range
I found the issue, can’t explain the root cause though.
What I see in the mqtt format is that available values are: manual,automatic,vacation,extend,fireplace
In Openhab I however see Auto,away,Extend,Manual,boost in the channel configuration.
I updated the channel configuration to match the mqtt format and the warning is gone.
is the library also intended to update the ATAG One unit (e.g. changing target temperature, changing the mode) and if so, how because changing the mode do vacation or fireplace requires additional parameters like the duration.
Yes, you can set the target temperature for both central heating and domestic hot water. You can also set the central heating mode (manual, automatic, vacation, extend, fireplace). However setting the additional parameters is not supported. This is because the underlying python library pyatag has no support for this.