-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove DeviceID from Config * Removed device ID from appsettings. * YAML.NET added in preperation for #23 * Created YAML representation of configuration.... with optimizations. * All Configuration models updated to be compatible with YAML. * Refactored application startup, and configuration discovery. * Renamed helper class, to be more descriptive of its name. * Removed Configuration from appsettings.json * Added custom configuration to override list, for now. This- branch is not yet completed. But, will implement both #17, and #23 when done. [skip ci] * Created config object for connection. Credentials for PDU moved to PDU, from Actions. * Flattened configuration for actions. * Added better error handling, and messages for configuration-related issues. * Use "config.yaml", instead of "configuration.yaml" * Set default values. * Tweaked yaml deserializing settings. * Added ability to set scheme via configuration. * Cleaned up logic for setting names, overrides, etc. * Created a helper, which contains default naming methods for entities. * Updated helpers to compensate for changes. Removed a few unused extesions. Added a few extension. * Re-enable discovery message publish- was disabled for testing. * #16 - Specify automatic reconnect. * #16 - Log an error if the broker is disconnected when publishing a message. * Set URL on RootData, and pass to discovery service. * Verified that Measurement / Outlet naming is working as expected post-changes. * Moved logic, to cleanup top-level. * Added default "deviceclass" when we are unable to determine the correct Device Class. * Use int-based key for outlets. * Since, entity has both a label, and name, inherit EntityWithNameAndLabel * Refactored a bit- still lots of cleanup to do here. Key notes- entities will inherit "Device" name, and not the name of the entity. * This logic was moved to base discovery. * Renamed Sensor, to Sensor Discovery, to be better named. * Set key, to be parsed as int, make it much easier to find the root entity. * Discoveries are now handled recursively. The logic flows a bit better this way. Also- each discover publishes, instead of batching messages.
- Loading branch information
1 parent
9f542b1
commit 7dfe106
Showing
37 changed files
with
841 additions
and
633 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -363,3 +363,4 @@ MigrationBackup/ | |
FodyWeavers.xsd | ||
|
||
/rPDU2MQTT/appsettings.Development.json | ||
/rPDU2MQTT/config.yaml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.