diff options
author | Kaufman Home Automation <[email protected]> | 2022-03-16 07:23:12 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-16 07:23:12 -0700 |
commit | cbba12580552c8ac7fecb4ad3ff72fcee650991b (patch) | |
tree | d46aa6dcd0aa784c55392a5b444fe570819513a6 | |
parent | f31c3eade5471dace3884efaab8bfba32190d449 (diff) | |
download | PLF10-cbba12580552c8ac7fecb4ad3ff72fcee650991b.tar.gz PLF10-cbba12580552c8ac7fecb4ad3ff72fcee650991b.zip |
add blue led light entity to hash table
-rw-r--r-- | components/esp8266/preferences.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/esp8266/preferences.cpp b/components/esp8266/preferences.cpp index 9508693..6a52abf 100644 --- a/components/esp8266/preferences.cpp +++ b/components/esp8266/preferences.cpp @@ -193,14 +193,15 @@ class ESP8266Preferences : public ESPPreferences { uint32_t start; - uint32_t start_free = 44; + uint32_t start_free = 56; // ESPHome just assigns addresses as they pop up, but we want to preserve all addresses so they always remain // the same after an update and then saved values are always loaded properly after update. Address is based on // type/hash we receive, which will always be the same for each entity based on its name. Except WiFi, which // is based on compile time but we have hard coded to the original compile time of the first public release. - if ( type == 817087403 ) { start = 0; } // v1.5 - Blue LED - else if ( type == 41191675 ) { start = 2; } // v1.5 - Relay + + //if ( type == 817087403 ) { start = 0; } // v1.5 - Blue LED + if ( type == 41191675 ) { start = 2; } // v1.5 - Relay else if ( type == 3932521563 ) { start = 4; } // v1.5 - Use Threshold else if ( type == 1903527169 ) { start = 6; } // v1.5 - Total Daily Energy else if ( type == 1432266978 ) { start = 8; } // v1.5 - WiFi Credentials @@ -210,6 +211,7 @@ class ESP8266Preferences : public ESPPreferences { else if ( type == 629479035 ) { start = 38; } // v1.6 - Force AP Global Variable else if ( type == 3755051405 ) { start = 40; } // v1.7 - First Boot - for factory testing else if ( type == 657159011 ) { start = 42; } // v1.8 - HTTP-Only switch + else if ( type == 3831461887 ) { start = 44; } // v1.8 - Blue LED Light Entity // temporary workaround for always using same address for wifi even with random hash else if ( length_words == 25 ) { start = 8; } |