aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* small visibility fixesv0.1.0diogo4642025-12-093-16/+26
|
* fixed warnings/lintsdiogo4642025-12-096-53/+60
|
* moved embedded-mqtt crate to a modulediogo4642025-12-0911-6/+1335
|
* added some documentationdiogo4642025-12-091-0/+13
|
* formatting and improved timeout handlingdiogo4642025-12-086-88/+233
|
* code style changediogo4642025-12-071-404/+406
|
* Clear socket timeout after successful connectiondiogo4642025-12-061-0/+2
| | | | | | | | The timeout is now only applied to the connection attempt itself, allowing MQTT communication to proceed without artificial timeouts during normal operation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
* Implement connect_and_run helper functiondiogo4642025-12-061-1/+102
| | | | | | | | | | | | | Added a convenience function to handle connection lifecycle with automatic reconnection. The function supports: - Parsing addresses as IP:port, IP with default port (1883), or hostname with DNS resolution - Filtering DNS results for IPv4 addresses only - Automatic reconnection with 5-second delay on failures - Comprehensive error logging for DNS, TCP, and device run failures - TCP socket timeout of 10 seconds 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
* Fix availability handling with MQTT retain flagdiogo4642025-12-061-1/+9
| | | | | | | | | | | | | Added retain flag support to MQTT messages to properly handle device availability in Home Assistant. Both the availability "online" publish and the last will "offline" message now use retain=true, ensuring HA always sees the current device status even when subscribing after the messages were sent. Changes: - Added will_retain field to embedded_mqtt::ConnectParams - Set retain=true for availability publish using publish_with() - Set will_retain=true in connect params for last will message 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
* Complete error handling for availability publishdiogo4642025-12-061-8/+63
| | | | | | | | Added proper error logging and return for availability publish failure, following the same pattern as other MQTT operations in the codebase. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
* Refactor sensor API to support generic sensor types with configurable ↵diogo4642025-12-063-15/+25
| | | | | | | | | | display precision Replaced TemperatureSensor with a generic Sensor type that accepts sensor class, state class, unit, and display precision to support various sensor types. Added suggested_display_precision field to control decimal places in Home Assistant UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
* added SensorClass enumdiogo4642025-12-061-0/+123
|
* added state class constants/enumdiogo4642025-12-062-0/+22
|
* added queue_publish logic to switch set methoddiogo4642025-12-051-4/+17
| | | | | | | | | | Updates switch's set method to only queue publish when the state value actually changes, matching the behavior in entity_number. This prevents unnecessary MQTT publishes when setting the same state multiple times. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
* added publish_on_command option to numberdiogo4642025-12-052-8/+42
|
* reworked loggingdiogo4642025-12-052-25/+152
|
* added publish_on_command option to switchdiogo4642025-12-052-3/+28
|
* changed verbosity of some log messagesdiogo4642025-12-051-5/+5
|
* improved error handling and log messagesdiogo4642025-12-052-86/+173
|
* removed unused commentdiogo4642025-12-051-118/+0
|
* reworked entity storagediogo4642025-12-058-114/+335
|
* reworked entity creationdiogo4642025-12-0511-274/+1846
|
* added monetary constantsdiogo4642025-12-051-0/+17
|
* added new publish functions to Entitydiogo4642025-12-051-0/+13
|
* added basic binary sensor examplediogo4642025-12-042-12/+101
|
* added switch examplediogo4642025-12-042-1/+98
|
* added number examplediogo4642025-12-042-335/+109
|
* use device id as mqtt client iddiogo4642025-12-041-1/+1
|
* fixed temperature unitsdiogo4642025-12-042-4/+7
|
* initdiogo4642025-12-044-0/+1112