Skip to content

Commit ef8d8d6

Browse files
Fix for power bars
1 parent 3527523 commit ef8d8d6

File tree

3 files changed

+52
-41
lines changed

3 files changed

+52
-41
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file. This projec
88

99
#### Changes
1010

11-
11+
- Fix for power bars with multiple relays and not all relays appearing
1212

1313
## 0.2.2 (2024-12-23)
1414

DEVICES.md

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,43 @@
11
<H1>Sample Device Configurations ( My personal collection )</H1>
22

33
<!--ts-->
4-
* [Sample Device Configurations ( My personal collection )](#sample-device-configurations--my-personal-collection-)
5-
* [My standard config after setting name and device configuration ](#my-standard-config-after-setting-name-and-device-configuration-)
6-
* [Tasmota Configuration](#tasmota-configuration)
7-
* [Sonoff IFAN03](#sonoff-ifan03)
8-
* [Tasmota Configuration](#tasmota-configuration-1)
9-
* [configuration override of discovery object to create a FAN ( post version 0.1.0 )](#configuration-override-of-discovery-object-to-create-a-fan--post-version-010-)
10-
* [configuration override of discovery object to create a FAN ( pre version 0.1.0 )](#configuration-override-of-discovery-object-to-create-a-fan--pre-version-010-)
11-
* [Slave a FEIT Wifi Dimmer Wall Switch to an iFan as a light switch](#slave-a-feit-wifi-dimmer-wall-switch-to-an-ifan-as-a-light-switch)
12-
* [BME280 Temperature Sensor - <a href="docs/MCUIOT.md">MCUIOT</a>](docs/MCUIOT.md)
13-
* [DHT11 Temperature Sensor - <a href="docs/MCUIOT.md">MCUIOT</a>](docs/MCUIOT.md)
14-
* [Water Leak Sensor with On/Off control](#water-leak-sensor-with-onoff-control)
15-
* [LEAK Tasmota configuration - <a href="docs/MCUIOT.md#dht-yl">DHT11</a>](docs/MCUIOT.md#dht-yl)
16-
* [Leak Tasmota configuration - <a href="docs/MCUIOT.md#dht-yl">BME280</a>](docs/MCUIOT.md#dht-yl)
17-
* [Motion + BME280 Temperature Sensor](#motion--bme280-temperature-sensor)
18-
* [PIR Motion + BME280 Temperature Sensor + BH1750 Lux Illuminance Sensor](#pir-motion--bme280-temperature-sensor--bh1750-lux-illuminance-sensor)
19-
* [ZMAi-90 Current Sensor Switch](#zmai-90-current-sensor-switch)
20-
* [MCULED Device with RGB+W Strip](#mculed-device-with-rgbw-strip)
21-
* [MCULED Device with RGB+W Strip - Version 2 ( Basement )](#mculed-device-with-rgbw-strip---version-2--basement-)
22-
* [MCULED Device with RGB+W Strip - Version 2 ( Cottage Sink )](#mculed-device-with-rgbw-strip---version-2--cottage-sink-)
23-
* [Tuya Dimmer Module as a FAN](#tuya-dimmer-module-as-a-fan)
24-
* [Trailer Relay Board](#trailer-relay-board)
25-
* [Gowfeel EN71 Water Valve](#gowfeel-en71-water-valve)
26-
* [Homebrew Doorbutton Button](#homebrew-doorbutton-button)
27-
* [Homebrew Garage Door Opener](#homebrew-garage-door-opener)
28-
* [CE SMART Wifi Dimmer](#ce-smart-wifi-dimmer)
29-
* [FEIT Wifi Dimmer](#feit-wifi-dimmer)
30-
* [Using a FEIT Wifi Dimmer as a remote switch to OpenBK RGBCCT Potlights](#using-a-feit-wifi-dimmer-as-a-remote-switch-to-openbk-rgbcct-potlights)
31-
* [Turn off after 30 minutes](#turn-off-after-30-minutes)
32-
* [Hampton Bay Fan/Light RF Remote Control ( 303.9 Mhz )](#hampton-bay-fanlight-rf-remote-control--3039-mhz-)
33-
* [Valor Fireplace Remote ( 315 Mhz )](#valor-fireplace-remote--315-mhz-)
34-
* [Treatlife DS03 Fan Controller and Light Dimmer](#treatlife-ds03-fan-controller-and-light-dimmer)
35-
* [OpenMQTTGateway devices](#openmqttgateway-devices)
36-
* [Hampton Bay Light](#hampton-bay-light)
37-
* [Hampton Bay FAN](#hampton-bay-fan)
38-
* [openMQTTGateway / PiLight temperature sensor](#openmqttgateway--pilight-temperature-sensor)
39-
* [Internet Connection WatchDog](#internet-connection-watchdog)
40-
* [Version 1 ( Uses node-red to monitor google.com and turn off the plug )](#version-1--uses-node-red-to-monitor-googlecom-and-turn-off-the-plug-)
41-
* [Version 2](#version-2)
42-
* [Version 3 - Do three checks before rebooting](#version-3---do-three-checks-before-rebooting)
4+
- [Sonoff IFAN03](#sonoff-ifan03)
5+
- [Tasmota Configuration](#tasmota-configuration-1)
6+
- [configuration override of discovery object to create a FAN ( post version 0.1.0 )](#configuration-override-of-discovery-object-to-create-a-fan--post-version-010-)
7+
- [configuration override of discovery object to create a FAN ( pre version 0.1.0 )](#configuration-override-of-discovery-object-to-create-a-fan--pre-version-010-)
8+
- [Slave a FEIT Wifi Dimmer Wall Switch to an iFan as a light switch](#slave-a-feit-wifi-dimmer-wall-switch-to-an-ifan-as-a-light-switch)
9+
- [BME280 Temperature Sensor - MCUIOT](#bme280-temperature-sensor---mcuiot)
10+
- [DHT11 Temperature Sensor - MCUIOT](#dht11-temperature-sensor---mcuiot)
11+
- [Water Leak Sensor with On/Off control](#water-leak-sensor-with-onoff-control)
12+
- [LEAK Tasmota configuration - DHT11](#leak-tasmota-configuration---dht11)
13+
- [Leak Tasmota configuration - BME280](#leak-tasmota-configuration---bme280)
14+
- [Motion + BME280 Temperature Sensor](#motion--bme280-temperature-sensor)
15+
- [PIR Motion + BME280 Temperature Sensor + BH1750 Lux Illuminance Sensor](#pir-motion--bme280-temperature-sensor--bh1750-lux-illuminance-sensor)
16+
- [ZMAi-90 Current Sensor Switch](#zmai-90-current-sensor-switch)
17+
- [MCULED Device with RGB+W Strip](#mculed-device-with-rgbw-strip)
18+
- [MCULED Device with RGB+W Strip - Version 2 ( Basement )](#mculed-device-with-rgbw-strip---version-2--basement-)
19+
- [MCULED Device with RGB+W Strip - Version 2 ( Cottage Sink )](#mculed-device-with-rgbw-strip---version-2--cottage-sink-)
20+
- [Tuya Dimmer Module as a FAN](#tuya-dimmer-module-as-a-fan)
21+
- [Trailer Relay Board](#trailer-relay-board)
22+
- [Gowfeel EN71 Water Valve](#gowfeel-en71-water-valve)
23+
- [Homebrew Doorbutton Button](#homebrew-doorbutton-button)
24+
- [Homebrew Garage Door Opener](#homebrew-garage-door-opener)
25+
- [CE SMART Wifi Dimmer](#ce-smart-wifi-dimmer)
26+
- [FEIT Wifi Dimmer](#feit-wifi-dimmer)
27+
- [Using a FEIT Wifi Dimmer as a remote switch to OpenBK RGBCCT Potlights](#using-a-feit-wifi-dimmer-as-a-remote-switch-to-openbk-rgbcct-potlights)
28+
- [Turn off after 30 minutes](#turn-off-after-30-minutes)
29+
- [Hampton Bay Fan/Light RF Remote Control ( 303.9 Mhz )](#hampton-bay-fanlight-rf-remote-control--3039-mhz-)
30+
- [Valor Fireplace Remote ( 315 Mhz )](#valor-fireplace-remote--315-mhz-)
31+
- [Treatlife DS03 Fan Controller and Light Dimmer](#treatlife-ds03-fan-controller-and-light-dimmer)
32+
- [Greeni GNC-SW003-199](#greeni-gnc-sw003-199)
33+
- [OpenMQTTGateway devices](#openmqttgateway-devices)
34+
- [Hampton Bay Light](#hampton-bay-light)
35+
- [Hampton Bay FAN](#hampton-bay-fan)
36+
- [openMQTTGateway / PiLight temperature sensor](#openmqttgateway--pilight-temperature-sensor)
37+
- [Internet Connection WatchDog](#internet-connection-watchdog)
38+
- [Version 1 ( Uses node-red to monitor google.com and turn off the plug )](#version-1--uses-node-red-to-monitor-googlecom-and-turn-off-the-plug-)
39+
- [Version 2](#version-2)
40+
- [Version 3 - Do three checks before rebooting](#version-3---do-three-checks-before-rebooting)
4341
<!--te-->
4442

4543
# My standard config after setting name and device configuration <!-- omit in toc -->
@@ -596,6 +594,16 @@ tuyamcu 62,3 --> 62 for 4 speeds fan controller (possible values 0,1,2,3)
596594
}
597595
```
598596

597+
# Greeni GNC-SW003-199
598+
599+
* Tasmota configuration
600+
601+
```
602+
backlog template {"NAME":"Geeni GNC-SW003-199","GPIO":[320,0,0,32,226,225,0,0,228,229,227,224,0,0],"FLAG":0,"BASE":18}; module 0
603+
backlog Friendlyname1 Switch 1; Friendlyname2 Switch 2; Friendlyname3 Switch 3; Friendlyname4 Switch 4; Friendlyname5 Switch 5; Friendlyname6 Switch 6
604+
Backlog MqttHost mqtt.local; topic tasmota_%06X; setoption57 1; setoption19 1
605+
```
606+
599607
# OpenMQTTGateway devices
600608

601609
I have been working on utilizing an OpenMQTTGateway device configured with a cc1101 RF Transceiver and the GatewayRF module. The goal is to control my Hampton Bay ( 303 Mhz ), and GE Fans ( 315 Mhz ) and other RF devices.

src/tasmotaSwitchService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class tasmotaSwitchService extends TasmotaService {
2020
) {
2121
super(platform, accessory, uniq_id);
2222

23+
/*
2324
if (this.accessory.getService(this.uuid)) {
2425
this.service = this.accessory.getService(this.uuid)!;
2526
} else if (this.accessory.getService(this.platform.Service.Outlet)) {
@@ -32,7 +33,9 @@ export class tasmotaSwitchService extends TasmotaService {
3233
this.service.subtype = this.uuid;
3334
}
3435
}
35-
this.service = this.service || this.accessory.addService(this.platform.Service.Outlet, accessory.context.device[this.uniq_id].name, this.uuid);
36+
*/
37+
38+
this.service = this.accessory.getService(this.uuid) || this.accessory.addService(this.platform.Service.Outlet, accessory.context.device[this.uniq_id].name, this.uuid);
3639
this.service?.setCharacteristic(this.platform.Characteristic.ConfiguredName, accessory.context.device[this.uniq_id].name);
3740

3841
this.service?.setPrimaryService(true);

0 commit comments

Comments
 (0)