<feed xmlns='http://www.w3.org/2005/Atom'>
<title>embassy-ha/src/constants.rs, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/'/>
<entry>
<title>add mqtt helper functions and refactor buffer management</title>
<updated>2026-01-09T11:30:08+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2026-01-09T11:28:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=27779ecf0d7c00ae0acb650c0d75d28edcc3aa89'/>
<id>27779ecf0d7c00ae0acb650c0d75d28edcc3aa89</id>
<content type='text'>
Created helper functions to eliminate code duplication in MQTT operations:
- device_mqtt_subscribe: handles subscription with timeout and error logging
- device_mqtt_publish: handles publishing with optional retain flag
- mqtt_receive_data: handles data receiving with buffer validation and timeout
- publish_entity_discoveries: publishes all entity discoveries
- generate_entity_discovery: generates entity discovery payloads

Refactored buffer management by introducing DeviceBuffersOwned and
DeviceBuffers structures to group related buffers together, making them
easier to pass to helper functions.

Added MQTT_TIMEOUT constant at module level for consistent timeout handling.

Fixed bug where only the last entity's discovery was republished when Home
Assistant came back online. Now correctly republishes all entities by
subscribing to homeassistant/status and using publish_entity_discoveries
when the "online" status is received.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Created helper functions to eliminate code duplication in MQTT operations:
- device_mqtt_subscribe: handles subscription with timeout and error logging
- device_mqtt_publish: handles publishing with optional retain flag
- mqtt_receive_data: handles data receiving with buffer validation and timeout
- publish_entity_discoveries: publishes all entity discoveries
- generate_entity_discovery: generates entity discovery payloads

Refactored buffer management by introducing DeviceBuffersOwned and
DeviceBuffers structures to group related buffers together, making them
easier to pass to helper functions.

Added MQTT_TIMEOUT constant at module level for consistent timeout handling.

Fixed bug where only the last entity's discovery was republished when Home
Assistant came back online. Now correctly republishes all entities by
subscribing to homeassistant/status and using publish_entity_discoveries
when the "online" status is received.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>added device tracker entity</title>
<updated>2025-12-12T12:05:58+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-12T12:05:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=e041614b0607a0950be1446f595d85c93b501418'/>
<id>e041614b0607a0950be1446f595d85c93b501418</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added dBm unit for signal strength</title>
<updated>2025-12-09T23:08:48+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-09T23:08:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=56a728b44d3523f6139d0b5e1442845bd73b81a2'/>
<id>56a728b44d3523f6139d0b5e1442845bd73b81a2</id>
<content type='text'>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>added state class constants/enum</title>
<updated>2025-12-06T08:39:53+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-06T08:39:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=1bdeab31af0154fd3e66ae46ae510669be25b272'/>
<id>1bdeab31af0154fd3e66ae46ae510669be25b272</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>reworked entity storage</title>
<updated>2025-12-05T15:09:09+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-05T15:09:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=9696489d5f1807a507214d6fcdecac4d47e0356d'/>
<id>9696489d5f1807a507214d6fcdecac4d47e0356d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>reworked entity creation</title>
<updated>2025-12-05T12:17:01+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-05T12:17:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=0c86da392af50c7588b087c3f72602e8368af65e'/>
<id>0c86da392af50c7588b087c3f72602e8368af65e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added monetary constants</title>
<updated>2025-12-05T10:42:16+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-05T10:42:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=1d2ee64d0ec917a2c2b66f8d58e1f37dd174a89d'/>
<id>1d2ee64d0ec917a2c2b66f8d58e1f37dd174a89d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added basic binary sensor example</title>
<updated>2025-12-04T23:59:21+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-04T23:59:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=40a16d099c2bf2b3e5bf537aa14d37fdf9e52668'/>
<id>40a16d099c2bf2b3e5bf537aa14d37fdf9e52668</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added switch example</title>
<updated>2025-12-04T21:14:27+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-04T21:14:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=abdcb51d7e9d6ebfacdf17b32e5296464e0aa2d4'/>
<id>abdcb51d7e9d6ebfacdf17b32e5296464e0aa2d4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added number example</title>
<updated>2025-12-04T16:58:57+00:00</updated>
<author>
<name>diogo464</name>
<email>diogo464@d464.sh</email>
</author>
<published>2025-12-04T16:58:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy-ha/commit/?id=4a9d786fa776c1601f3f9e28870225a33c908604'/>
<id>4a9d786fa776c1601f3f9e28870225a33c908604</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
