MQTT IO v2.0.0 beta testing #178
flyte
started this conversation in
Announcements
Replies: 3 comments 26 replies
-
Hi @flyte, I just gave it a try:
But my temp, humidity and distance module work and sending mqtt messages. |
Beta Was this translation helpful? Give feedback.
7 replies
-
Hey @flyte, Got it swapped over and it appears to be working, however it doesn't appear to be using the log file that's defined in the conf file (same log as the old version actually) |
Beta Was this translation helpful? Give feedback.
8 replies
-
While testing install on a Pi Zero W I came up with this error:
I found a solution to be able to bypass it by doing the following:
Just an FYI! |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've spent quite a while rebuilding the project using asyncio, which I'd like people to help me test before I inflict it on the general public. It's on PyPI as mqtt-io. The code for it exists within
feature/asyncio
, and for the most part, it should work with existing config files.This version only supports Python 3.6+, so if you're on a Raspberry Pi, you'll either need to make sure you're using
python3
, or if your version of Raspbian is too old, you might need to upgrade to a newer version of Raspberry Pi OS.Please use this discussion or Discord to give feedback and discuss your experiences.
Installation
Usage
Run the program, replacing
config.yml
with the path to your config file:Config Changes
See the new documentation.
Existing config files are mostly compatible, but I've taken the liberty of making some improvements:
MQTT section
ha_discovery
section.All IO sections
These changes affect the
digital_inputs
,digital_outputs
andsensor_inputs
sections.<IO section>.*.ha_discovery
section as documented here (digital_inputs
), here (digital_outputs
) and here (sensor_inputs
).Sensors
sensor_inputs.*.unit_of_measurement
in favour of adding it implicitlysensor_inputs.*.ha_discovery.unit_of_measurement
sensor_inputs.*.expire_after
explicitly tosensor_inputs.*.ha_discovery.expire_after
.Streams
stream_reads
andstream_writes
in favour of just listing streams instream_modules
withread
andwrite
booleans to enable or disable the functionality.Logging
If you use a
logging
section, you'll need to update themqtt_gpio
logger tomqtt_io
as the module name has changed.Beta Was this translation helpful? Give feedback.
All reactions