binary sensor
This commit is contained in:
parent
6a4a203e77
commit
7373fe052c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue