Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending home assistant and standard mqtt messages together #935

Closed
M0ebiu5 opened this issue Apr 1, 2024 · 8 comments
Closed

Sending home assistant and standard mqtt messages together #935

M0ebiu5 opened this issue Apr 1, 2024 · 8 comments
Labels
invalid Marks a PR or issue that is missing information

Comments

@M0ebiu5
Copy link

M0ebiu5 commented Apr 1, 2024

It would be nice, if one could enable home assistant and standard protocoll for the same unit.

Use case is, if you want to migrate from one to another, it's much easier not to have to switch between protocolls...

@bachya
Copy link
Owner

bachya commented Apr 1, 2024

(Related to #640 in that it's about another publisher type.)

I'm not familiar with the Homematic protocol. Can you share more information or documentation?

@bachya bachya added the incomplete Marks a PR or issue that is missing information label Apr 1, 2024
@M0ebiu5 M0ebiu5 changed the title Sending homematic and standard mqtt messages together Sending home assistant and standard mqtt messages together Apr 1, 2024
@M0ebiu5
Copy link
Author

M0ebiu5 commented Apr 1, 2024

sorry - it should be home assistant...

@bachya
Copy link
Owner

bachya commented Apr 1, 2024

This was added in 2023.06.0 (via #606). Are you experiencing a bug?

@M0ebiu5
Copy link
Author

M0ebiu5 commented Apr 1, 2024

If i switch to home assistant, i dont get the "normal" mqtt messages...i cant enable both. I've tried setting up 2 different sections in the config file, but then i get duplicate key...if this constraint would be removed, mabe it would work?

@bachya
Copy link
Owner

bachya commented Apr 1, 2024

I would need to see your config file to comment further there.

I just spun up a 2024.01.2 instance, and everything worked as expected:

ecowitt2mqtt --mqtt-broker 127.0.0.1 --mqtt-user ecowitt --mqtt-password password --mqtt-topic Test --hass-discovery
2024-04-01 11:36:43,000 | INFO | Starting ecowitt2mqtt (version 2024.01.2)
2024-04-01 11:36:46,361 | INFO | Published to Test
2024-04-01 11:36:46,363 | INFO | Published to Home Assistant MQTT Discovery

Notice how I'm providing both --mqtt-topic and --hass-discovery flags. With this configuration, I see all expected topics:

CleanShot 2024-04-01 at 11 36 22

@M0ebiu5
Copy link
Author

M0ebiu5 commented Apr 2, 2024

This is the command line i had to run it as a service. I also provided mqtt-topic and hass-discovery. You can see in the output, that it only sends hass messages.

ecowitt2mqtt --mqtt-broker=big --mqtt-username=*** --mqtt-password="***" --mqtt-topic=eco1 --input-data-format=ecowitt --port 8282 --output-unit-system metric --hass-discovery

2024-04-02 13:14:40,666 | INFO | Starting ecowitt2mqtt (version 2023.05.0)
2024-04-02 13:16:06,393 | INFO | Published to Home Assistant MQTT Discovery
2024-04-02 13:18:14,200 | INFO | Published to Home Assistant MQTT Discovery

@bachya
Copy link
Owner

bachya commented Apr 2, 2024

This is the command line i had to run it as a service. I also provided mqtt-topic and hass-discovery. You can see in the output, that it only sends hass messages.

ecowitt2mqtt --mqtt-broker=big --mqtt-username=*** --mqtt-password="***" --mqtt-topic=eco1 --input-data-format=ecowitt --port 8282 --output-unit-system metric --hass-discovery



2024-04-02 13:14:40,666 | INFO | Starting ecowitt2mqtt (version 2023.05.0)

2024-04-02 13:16:06,393 | INFO | Published to Home Assistant MQTT Discovery

2024-04-02 13:18:14,200 | INFO | Published to Home Assistant MQTT Discovery

Your logs show that you are running 2023.05.0. As I mentioned above, the functionality you're looking for was released in 2023.06.0.

@M0ebiu5
Copy link
Author

M0ebiu5 commented Apr 2, 2024

I just saw that i was running an older version...sorry!

Thanks for your support and your efforts with ecowitt2mqtt!

@M0ebiu5 M0ebiu5 closed this as completed Apr 2, 2024
@bachya bachya added invalid Marks a PR or issue that is missing information and removed incomplete Marks a PR or issue that is missing information labels Apr 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid Marks a PR or issue that is missing information
Projects
None yet
Development

No branches or pull requests

2 participants