public interface ShellyPlug extends DigitalOutput, OpenemsComponent, org.osgi.service.event.EventHandler
Modifier and Type | Interface and Description |
---|---|
static class |
ShellyPlug.ChannelId |
Modifier and Type | Method and Description |
---|---|
default void |
_setActivePower(int value)
Internal method to set the 'nextValue' on
ShellyPlug.ChannelId.ACTIVE_POWER
Channel. |
default void |
_setActivePower(java.lang.Integer value)
Internal method to set the 'nextValue' on
ShellyPlug.ChannelId.ACTIVE_POWER
Channel. |
default void |
_setRelay(boolean value)
Internal method to set the 'nextValue' on
ShellyPlug.ChannelId.RELAY Channel. |
default void |
_setSlaveCommunicationFailed(boolean value)
Internal method to set the 'nextValue' on
ShellyPlug.ChannelId.SLAVE_COMMUNICATION_FAILED Channel. |
default Value<java.lang.Integer> |
getActivePower()
Gets the Active Power in [W].
|
default IntegerReadChannel |
getActivePowerChannel()
Gets the Channel for
ShellyPlug.ChannelId.ACTIVE_POWER . |
default Value<java.lang.Boolean> |
getRelay()
Gets the Relay Output 1.
|
default BooleanWriteChannel |
getRelayChannel()
Gets the Channel for
ShellyPlug.ChannelId.RELAY . |
default Value<java.lang.Boolean> |
getSlaveCommunicationFailed()
Gets the Slave Communication Failed State.
|
default StateChannel |
getSlaveCommunicationFailedChannel()
Gets the Channel for
ShellyPlug.ChannelId.SLAVE_COMMUNICATION_FAILED . |
default void |
setRelay(boolean value)
Sets the Relay Output.
|
digitalOutputChannels
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getModbusSlaveNatureTable, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
default BooleanWriteChannel getRelayChannel()
ShellyPlug.ChannelId.RELAY
.default Value<java.lang.Boolean> getRelay()
ShellyPlug.ChannelId.RELAY
.Value
default void _setRelay(boolean value)
ShellyPlug.ChannelId.RELAY
Channel.value
- the next valuedefault void setRelay(boolean value) throws OpenemsError.OpenemsNamedException
ShellyPlug.ChannelId.RELAY
.value
- the next write valueOpenemsError.OpenemsNamedException
- on errordefault IntegerReadChannel getActivePowerChannel()
ShellyPlug.ChannelId.ACTIVE_POWER
.default Value<java.lang.Integer> getActivePower()
ShellyPlug.ChannelId.ACTIVE_POWER
.Value
default void _setActivePower(java.lang.Integer value)
ShellyPlug.ChannelId.ACTIVE_POWER
Channel.value
- the next valuedefault void _setActivePower(int value)
ShellyPlug.ChannelId.ACTIVE_POWER
Channel.value
- the next valuedefault StateChannel getSlaveCommunicationFailedChannel()
ShellyPlug.ChannelId.SLAVE_COMMUNICATION_FAILED
.default Value<java.lang.Boolean> getSlaveCommunicationFailed()
ShellyPlug.ChannelId.SLAVE_COMMUNICATION_FAILED
.Value
default void _setSlaveCommunicationFailed(boolean value)
ShellyPlug.ChannelId.SLAVE_COMMUNICATION_FAILED
Channel.value
- the next value