Class ShellyDataSource
java.lang.Object
energy.eddie.aiida.models.datasource.DataSource
energy.eddie.aiida.models.datasource.mqtt.MqttDataSource
energy.eddie.aiida.models.datasource.mqtt.shelly.ShellyDataSource
-
Field Summary
Fields inherited from class energy.eddie.aiida.models.datasource.mqtt.MqttDataSource
accessControlEntry, externalHost, internalHost, TABLE_NAME, TOPIC_PREFIX, userFields inherited from class energy.eddie.aiida.models.datasource.DataSource
asset, countryCode, enabled, icon, id, image, name, permissions, type, userId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method creates the Access Control Entry for a MQTT data source using the ID of the data source.protected StringThis method formats the topic to correctly display it to the user in the UI.Methods inherited from class energy.eddie.aiida.models.datasource.mqtt.MqttDataSource
configure, createMqttUser, internalHost, password, postPersist, topic, updatePassword, usernameMethods inherited from class energy.eddie.aiida.models.datasource.DataSource
asset, countryCode, createFromDto, enabled, icon, id, image, name, permissions, setEnabled, setImage, type, update, userId
-
Constructor Details
-
ShellyDataSource
protected ShellyDataSource() -
ShellyDataSource
-
-
Method Details
-
createAccessControlEntry
protected void createAccessControlEntry()Description copied from class:MqttDataSourceThis method creates the Access Control Entry for a MQTT data source using the ID of the data source. This is the default behaviour of a MQTT data source.- Overrides:
createAccessControlEntryin classMqttDataSource
-
topicFormattedForUi
Description copied from class:MqttDataSourceThis method formats the topic to correctly display it to the user in the UI. This topic can then be copied by the user without making any changes to it.- Overrides:
topicFormattedForUiin classMqttDataSource- Returns:
- The topic formatted for the UI
-