|
|
@ -30,10 +30,20 @@ static uint8_t node_id PROGMEM= { NODE_ID }; |
|
|
|
static OW_switch_t switches[N_SWITCHES] PROGMEM={ |
|
|
|
// nick, addr[8], event_tag[pioA_FALL, pioA_RISE, pioB_FALL, pioB_RISE]
|
|
|
|
// { 255, { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }, { 0, 0, 0, 0 } },
|
|
|
|
{ 11, { 0x12, 0xF2, 0x2A, 0x66, 0x0, 0x0, 0x0, 0x41 }, { 31, 31, 0, 0 } }, // EZ -> Flur
|
|
|
|
{ 12, { 0x12, 0x37, 0x8A, 0x4F, 0x0, 0x0, 0x0, 0xE5 }, { 32, 32, 32, 32 } }, // im keller TEST
|
|
|
|
{ 13, { 0x12, 0x71, 0x51, 0x57, 0x0, 0x0, 0x0, 0x28 }, { 32, 32, 0, 0 } }, // Küche Kühlschank
|
|
|
|
{ 14, { 0x12, 0x5e, 0xff, 0x55, 0x0, 0x0, 0x0, 0x2c }, { 32, 32, 33, 33 } }, // Küche Terasse
|
|
|
|
|
|
|
|
{ 21, { 0x12, 0x86, 0xB4, 0x54, 0x0, 0x0, 0x0, 0x5F }, { 23, 23, 37, 37 } }, // Flur
|
|
|
|
{ 22, { 0x12, 0xCE, 0x6E, 0xCA, 0x0, 0x0, 0x0, 0x9C }, { 22, 22, 21, 21 } }, // WZ
|
|
|
|
{ 23, { 0x12, 0x15, 0xD4, 0x86, 0x0, 0x0, 0x0, 0xA0 }, { 31, 31, 32, 32 } }, // EZ -> Küche
|
|
|
|
// { 22, { 0x12, 0xC7, 0x2F, 0xCF, 0x0, 0x0, 0x0, 0xAF }, { 22, 22, 21, 21 } }, // WZ
|
|
|
|
// { 22, { 0x12, 0x5E, 0xFF, 0x55, 0x0, 0x0, 0x0, 0x2C }, { 21, 21, 22, 22 } }, // WZ
|
|
|
|
|
|
|
|
//{ 21, { 0x12, 0x86, 0xB4, 0x54, 0x0, 0x0, 0x0, 0x5F }, { 3, 3, 4, 4 } },
|
|
|
|
// { 31, { 0x12, 0x88, 0xDD, 0x53, 0x0, 0x0, 0x0, 0x28 }, { 210, 211, 220, 221 } }, // Rolladenschalter (A - UP, B - DOWN)
|
|
|
|
{ 31, { 0x12, 0x8F, 0xE2, 0x86 ,0x0, 0x0, 0x0, 0xC6}, { 220, 221, 210, 211 } }, // Rolladenschalter (A - UP, B - DOWN)
|
|
|
|
{ 0, { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }, { 0, 0, 0, 0 } } // END MARK
|
|
|
|
}; |
|
|
|
static uint8_t switches_state[N_SWITCHES]; |
|
|
@ -57,15 +67,22 @@ static uint8_t outputs_state[N_OUTPUTS]; |
|
|
|
static event_t tx_events[N_EVENTS] PROGMEM={ |
|
|
|
// | --- ID --- |
|
|
|
|
// tag, prio, dst, cmd, data
|
|
|
|
{ 13, 0x03, 0x01, TOGGLE, 0x03}, |
|
|
|
{ 14, 0x03, 0x01, TOGGLE, 0x04}, |
|
|
|
{ 15, 0x03, 0x01, TOGGLE, 0x05}, |
|
|
|
{ 16, 0x03, 0x01, TOGGLE, 0x06}, |
|
|
|
{ 18, 0x03, 0x01, TOGGLE, 0x08}, |
|
|
|
{ 21, 0x03, 0x02, TOGGLE, 0x01}, |
|
|
|
{ 22, 0x03, 0x02, TOGGLE, 0x02}, |
|
|
|
{ 23, 0x03, 0x02, TOGGLE, 0x03}, |
|
|
|
{ 13, 0x03, 0x01, TOGGLE, 0x03}, |
|
|
|
{ 14, 0x03, 0x01, TOGGLE, 0x04}, |
|
|
|
{ 5, 0x03, 0x01, TOGGLE, 0x05}, |
|
|
|
{ 6, 0x03, 0x01, TOGGLE, 0x06}, |
|
|
|
{ 31, 0x03, 0x03, TOGGLE, 0x01}, |
|
|
|
{ 32, 0x03, 0x03, TOGGLE, 0x02}, |
|
|
|
{ 33, 0x03, 0x03, TOGGLE, 0x03}, |
|
|
|
{ 34, 0x03, 0x03, TOGGLE, 0x04}, |
|
|
|
{ 35, 0x03, 0x03, TOGGLE, 0x05}, |
|
|
|
{ 36, 0x03, 0x03, TOGGLE, 0x06}, |
|
|
|
{ 37, 0x03, 0x03, TOGGLE, 0x07}, |
|
|
|
{ 8, 0x03, 0x01, TOGGLE, 0x08}, |
|
|
|
{ 38, 0x03, 0x03, TOGGLE, 0x08}, |
|
|
|
{ 11, 0x03, 0x01, ON, 0x01}, |
|
|
|
{ 12, 0x03, 0x01, ON, 0x02}, |
|
|
|
{ 210, 0x03, 0xff, OFF, 0x06}, |
|
|
|