binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 12:30:14 -05:00
parent 6a4a203e77
commit 7373fe052c
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

View File

@ -207,33 +207,43 @@ namespace ratgdo {
case REBOOT1: case REBOOT1:
fixed = 0x400000000; fixed = 0x400000000;
data = 0x0000618b; data = 0x0000618b;
break;
case REBOOT2: case REBOOT2:
fixed = 0; fixed = 0;
data = 0x01009080; data = 0x01009080;
break;
case REBOOT3: case REBOOT3:
fixed = 0; fixed = 0;
data = 0x0000b1a0; data = 0x0000b1a0;
break;
case REBOOT4: case REBOOT4:
fixed = 0; fixed = 0;
data = 0x01009080; data = 0x01009080;
break;
case REBOOT5: case REBOOT5:
fixed = 0x300000000; fixed = 0x300000000;
data = 0x00008092; data = 0x00008092;
break;
case REBOOT6: case REBOOT6:
fixed = 0x300000000; fixed = 0x300000000;
data = 0x00008092; data = 0x00008092;
break;
case DOOR1: case DOOR1:
fixed = 0x200000000; fixed = 0x200000000;
data = 0x01018280; data = 0x01018280;
break;
case DOOR2: case DOOR2:
fixed = 0x200000000; fixed = 0x200000000;
data = 0x01009280; data = 0x01009280;
break;
case LIGHT: case LIGHT:
fixed = 0x200000000; fixed = 0x200000000;
data = 0x00009281; data = 0x00009281;
break;
case LOCK: case LOCK:
fixed = 0x0100000000; fixed = 0x0100000000;
data = 0x0000728c; data = 0x0000728c;
break;
default: default:
ESP_LOGD(TAG, "ERROR: Invalid command"); ESP_LOGD(TAG, "ERROR: Invalid command");
return; return;