Interface Shelly25
-
- All Superinterfaces:
DigitalOutput
,org.osgi.service.event.EventHandler
,OpenemsComponent
- All Known Implementing Classes:
Shelly25Impl
public interface Shelly25 extends DigitalOutput, OpenemsComponent, org.osgi.service.event.EventHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Shelly25.ChannelId
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
_setRelay1(java.lang.Boolean value)
Internal method to set the 'nextValue' onShelly25.ChannelId.RELAY_1
Channel.default void
_setRelay2(java.lang.Boolean value)
Internal method to set the 'nextValue' onShelly25.ChannelId.RELAY_2
Channel.default void
_setSlaveCommunicationFailed(boolean value)
Internal method to set the 'nextValue' onShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
Channel.default Value<java.lang.Boolean>
getRelay1()
Gets the Relay Output 1.default BooleanWriteChannel
getRelay1Channel()
Gets the Channel forShelly25.ChannelId.RELAY_1
.default Value<java.lang.Boolean>
getRelay2()
Gets the Relay Output 2.default BooleanWriteChannel
getRelay2Channel()
Gets the Channel forShelly25.ChannelId.RELAY_2
.default Value<java.lang.Boolean>
getSlaveCommunicationFailed()
Gets the Slave Communication Failed State.default StateChannel
getSlaveCommunicationFailedChannel()
Gets the Channel forShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
.default void
setRelay1(boolean value)
Sets the Relay Output 1.default void
setRelay2(boolean value)
Sets the Relay Output 2.-
Methods inherited from interface io.openems.edge.io.api.DigitalOutput
digitalOutputChannels
-
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
-
-
-
Method Detail
-
getRelay1Channel
default BooleanWriteChannel getRelay1Channel()
Gets the Channel forShelly25.ChannelId.RELAY_1
.- Returns:
- the Channel
-
getRelay1
default Value<java.lang.Boolean> getRelay1()
Gets the Relay Output 1. SeeShelly25.ChannelId.RELAY_1
.- Returns:
- the Channel
Value
-
_setRelay1
default void _setRelay1(java.lang.Boolean value)
Internal method to set the 'nextValue' onShelly25.ChannelId.RELAY_1
Channel.- Parameters:
value
- the next value
-
setRelay1
default void setRelay1(boolean value) throws OpenemsError.OpenemsNamedException
Sets the Relay Output 1. SeeShelly25.ChannelId.RELAY_1
.- Parameters:
value
- the next write value- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getRelay2Channel
default BooleanWriteChannel getRelay2Channel()
Gets the Channel forShelly25.ChannelId.RELAY_2
.- Returns:
- the Channel
-
getRelay2
default Value<java.lang.Boolean> getRelay2()
Gets the Relay Output 2. SeeShelly25.ChannelId.RELAY_2
.- Returns:
- the Channel
Value
-
_setRelay2
default void _setRelay2(java.lang.Boolean value)
Internal method to set the 'nextValue' onShelly25.ChannelId.RELAY_2
Channel.- Parameters:
value
- the next value
-
setRelay2
default void setRelay2(boolean value) throws OpenemsError.OpenemsNamedException
Sets the Relay Output 2. SeeShelly25.ChannelId.RELAY_2
.- Parameters:
value
- the next write value- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getSlaveCommunicationFailedChannel
default StateChannel getSlaveCommunicationFailedChannel()
Gets the Channel forShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
.- Returns:
- the Channel
-
getSlaveCommunicationFailed
default Value<java.lang.Boolean> getSlaveCommunicationFailed()
Gets the Slave Communication Failed State. SeeShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
.- Returns:
- the Channel
Value
-
_setSlaveCommunicationFailed
default void _setSlaveCommunicationFailed(boolean value)
Internal method to set the 'nextValue' onShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
Channel.- Parameters:
value
- the next value
-
-