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

Creation of a topic for 1-wire thermometers using an alias #522

Closed
krzbor opened this issue Sep 8, 2024 · 8 comments
Closed

Creation of a topic for 1-wire thermometers using an alias #522

krzbor opened this issue Sep 8, 2024 · 8 comments
Labels

Comments

@krzbor
Copy link

krzbor commented Sep 8, 2024

A very interesting feature of Heishamon is reading the temperature via 1-wire and sharing this value through MQTT. A special topic is created, for example: panasonic_heat_pump/1wire/2861755fb1220712. This topic can be used by various types of automation. However, the problem arises when replacing a faulty sensor with another one. In such a case, a new topic is generated, and the entire automation needs to be adjusted. Heishamon has a mechanism for assigning aliases to 1-wire sensors. Is it possible to add a new topic in the format: panasonic_heat_pump/1wire_alias/water_temperature, where "water_temperature" is the alias for the 1-wire sensor? This type of topic would only be available if the alias has been assigned, is unique, and complies with MQTT rules.

@geduxas
Copy link
Contributor

geduxas commented Sep 8, 2024

I am also vote for this feature, and also would like to extend with calibration possibility.

@IgorYbema
Copy link
Contributor

That i indeed the reason why I added the alias option. Currently it is added as a subtopic of the dallas-id in mqtt but that doesn't make it very usefull yet.
For backwards compatibility I'll keep adding the current method but I'll add the alias mqtt topic you described.

@krzbor
Copy link
Author

krzbor commented Sep 8, 2024

I'm very glad that the idea was well received. I wrote that the alias should comply with MQTT rules. I meant special characters. I'm wondering if it might be worth making one exception – for the "/" character. This would make it easy to create a subtopic.

@jllussa
Copy link

jllussa commented Sep 11, 2024

I'm also using 1-wire sensor inside rules... so an alias would be great if ever needs to be "hardware" replaced.

on timer=2 then
$SensorBuffer = round(ds18b20#28ff641e8537c1eb);

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Oct 15, 2024
@krzbor
Copy link
Author

krzbor commented Oct 16, 2024

Do you happen to know when this feature will be available?

@github-actions github-actions bot removed the Stale label Oct 21, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Nov 20, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
@krzbor
Copy link
Author

krzbor commented Nov 25, 2024

I have prepared the appropriate change in the program:
#590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants