From 3a8a0e48d02e79bd0bc0308ab29bcf662704ab39 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Tue, 9 Dec 2025 01:09:56 -0600 Subject: [PATCH] set up other moes pad --- apps/drivers/moes.yaml | 4 ++++ apps/drivers/moes_pad.py | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/drivers/moes.yaml b/apps/drivers/moes.yaml index 02dcd10..67ce8dd 100644 --- a/apps/drivers/moes.yaml +++ b/apps/drivers/moes.yaml @@ -2,6 +2,10 @@ moes_driver: module: moes_pad class: MoesBridge +moes1: + module: moes_pad + class: MoesPad + moes2: module: moes_pad class: MoesPad \ No newline at end of file diff --git a/apps/drivers/moes_pad.py b/apps/drivers/moes_pad.py index 3c64062..f6d29f0 100644 --- a/apps/drivers/moes_pad.py +++ b/apps/drivers/moes_pad.py @@ -49,6 +49,8 @@ class MoesBridge(ADBase): class MoesPad(ADBase): + """Specfic implementation of a Moes Pad.""" + def initialize(self): self.adapi = self.get_ad_api() self.log = self.adapi.log @@ -70,4 +72,8 @@ class MoesPad(ADBase): case MoesButtons.TOP_RIGHT: self.adapi.call_service('light/toggle', entity_id='light.bedroom_john') case MoesButtons.BOTTOM_LEFT: - self.adapi.call_service('light/toggle', entity_id='light.h6076_2') + self.adapi.call_service('light/toggle', entity_id='light.bedroom_stick') + case MoesButtons.BOTTOM_RIGHT: + for e in ('bedroom_stick', 'bedroom_john', 'bedroom_sydney'): + if self.adapi.get_state(e) == 'on': + self.adapi.call_service('light/toggle', entity_id=e)