canChangeStateEvent method
returns if user can change a particular state event by comparing ownPowerLevel
with possible overrides in events
, if not present compares ownPowerLevel
with state_default
Implementation
bool canChangeStateEvent(String action) {
return powerForChangingStateEvent(action) <= ownPowerLevel;
}