Merge branch 'main' into dev
This commit is contained in:
commit
13d4d025f9
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
This is a port of the ratgdo software for the v2 board to esphome.
|
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
|
# ESPHome config
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ namespace ratgdo {
|
||||||
ESP_LOGV(TAG, "Motion: %d (toggle)", this->motionState);
|
ESP_LOGV(TAG, "Motion: %d (toggle)", this->motionState);
|
||||||
} else {
|
} else {
|
||||||
// 0x84 -- is it used?
|
// 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;
|
return cmd;
|
||||||
}
|
}
|
||||||
|
@ -432,9 +432,6 @@ namespace ratgdo {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
toggleLight();
|
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()
|
void RATGDOComponent::lightOff()
|
||||||
|
@ -444,9 +441,6 @@ namespace ratgdo {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
toggleLight();
|
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()
|
void RATGDOComponent::toggleLight()
|
||||||
|
|
|
@ -5,14 +5,13 @@
|
||||||
"keywords": "ratgdo, esphome",
|
"keywords": "ratgdo, esphome",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/bdraco/esphome-ratgdo"
|
"url": "https://github.com/esphome-ratgdo/esphome-ratgdo"
|
||||||
},
|
},
|
||||||
"authors": [],
|
"authors": [],
|
||||||
"license": "GPLv3",
|
"license": "GPLv3",
|
||||||
"homepage": "https://github.com/bdraco/esphome-esphome",
|
"homepage": "https://github.com/esphome-ratgdo/esphome-esphome",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"secplus": "*",
|
"secplus": "*"
|
||||||
"espsoftwareserial": "*"
|
|
||||||
},
|
},
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "*"
|
"platforms": "*"
|
||||||
|
|
|
@ -185,7 +185,7 @@
|
||||||
|
|
||||||
Please support his excellent work by buying his boards.
|
Please support his excellent work by buying his boards.
|
||||||
<a
|
<a
|
||||||
href="https://paulwieland.github.io/ratgdo/"
|
href="https://paulwieland.github.io/ratgdo/#order"
|
||||||
>Buy boards from Paul</a>
|
>Buy boards from Paul</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue