Skip to content

Explain how mqtt sensors are influenced with expire_after option when a retained payload was used #40043

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

Open
wants to merge 5 commits into
base: current
Choose a base branch
from

Conversation

jbouwh
Copy link
Contributor

@jbouwh jbouwh commented Jul 17, 2025

Proposed change

Explain how mqtt sensors are influenced with expire_after option when a retained payload was used

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

@home-assistant home-assistant bot added the current This PR goes into the current branch label Jul 17, 2025
Copy link

netlify bot commented Jul 17, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit e98bfdc
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/687a2d83bc2725000854e402
😎 Deploy Preview https://deploy-preview-40043--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@c0ffeeca7 c0ffeeca7 marked this pull request as draft July 18, 2025 05:20
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
@jbouwh jbouwh marked this pull request as ready for review July 18, 2025 11:14
@jbouwh
Copy link
Contributor Author

jbouwh commented Jul 18, 2025

@c0ffeeca7 Thanks for reviewing, may be you can have a final look?

@c0ffeeca7
Copy link
Contributor

What is meant by "Note that when a sensor's value was sent retained to the MQTT broker"?

@jbouwh
Copy link
Contributor Author

jbouwh commented Jul 18, 2025

What is meant by "Note that when a sensor's value was sent retained to the MQTT broker"?

The sensors state is sent to a topic. The user can set a "retain" flag to retain the last send value at the broker. When a client subscribes to that topic, it will receive the last retained value upon subscription. When there is no retain flag clients will only receive live values after they have subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
current This PR goes into the current branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MQTT sensors' expire_after ignored on config reloads and restarts
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy