diff --git a/README.md b/README.md index b2d1db5..c60c271 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ This is a port of the ratgdo software for the v2 board to esphome. -[Visit the github.io page to purchase boards](https://paulwieland.github.io/ratgdo/). +[Visit the github.io page to purchase boards](https://paulwieland.github.io/ratgdo/#order) -This project is not affiliated with RATGDO or Paul Wieland. Please buy his boards to support his excellent work. +This project is not affiliated with ratgdo or Paul Wieland. Please buy his boards to support his excellent work. # ESPHome config diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 8ecc3d7..acd3d22 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -124,7 +124,7 @@ namespace ratgdo { ESP_LOGV(TAG, "Motion: %d (toggle)", this->motionState); } else { // 0x84 -- is it used? - ESP_LOGV(TAG, "Unknown command: %04x", cmd); + ESP_LOGV(TAG, "Unknown command: cmd=%04x nibble=%02d byte1=%02d byte2=%02d", cmd, nibble, byte1, byte2); } return cmd; } @@ -432,9 +432,6 @@ namespace ratgdo { return; } toggleLight(); - // We don't always get the state back so be optimistic - this->previousLightState = this->lightState; - this->lightState = LightState::LIGHT_STATE_ON; } void RATGDOComponent::lightOff() @@ -444,9 +441,6 @@ namespace ratgdo { return; } toggleLight(); - // We don't always get the state back so be optimistic - this->previousLightState = this->lightState; - this->lightState = LightState::LIGHT_STATE_OFF; } void RATGDOComponent::toggleLight() diff --git a/library.json b/library.json index b7396be..d26b2fa 100644 --- a/library.json +++ b/library.json @@ -5,14 +5,13 @@ "keywords": "ratgdo, esphome", "repository": { "type": "git", - "url": "https://github.com/bdraco/esphome-ratgdo" + "url": "https://github.com/esphome-ratgdo/esphome-ratgdo" }, "authors": [], "license": "GPLv3", - "homepage": "https://github.com/bdraco/esphome-esphome", + "homepage": "https://github.com/esphome-ratgdo/esphome-esphome", "dependencies": { - "secplus": "*", - "espsoftwareserial": "*" + "secplus": "*" }, "frameworks": "arduino", "platforms": "*" diff --git a/static/index.html b/static/index.html index 3b89fd6..fe90709 100644 --- a/static/index.html +++ b/static/index.html @@ -185,7 +185,7 @@ Please support his excellent work by buying his boards. Buy boards from Paul