Skip to content

Commit 2e27a99

Browse files
committed
feat: support power notifications
1 parent 4813d0b commit 2e27a99

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/store/socket/actions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ export const actions: ActionTree<SocketState, RootState> = {
368368
async notifyMetadataUpdate (_, payload) {
369369
console.debug('metadataUpdate', payload)
370370
},
371+
async notifyPowerChanged ({ dispatch }, payload) {
372+
dispatch('gpio/onStatus', { [payload.device]: payload.status }, { root: true })
373+
},
371374

372375
/**
373376
* ==========================================================================

0 commit comments

Comments
 (0)