Skip to content

Commit c34eeb1

Browse files
committed
Version bump to 8.22, update readme
1 parent c6f8d49 commit c34eeb1

File tree

10 files changed

+34
-20
lines changed

10 files changed

+34
-20
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ include_directories(${PROJECT_NAME}
4040
)
4141

4242
set(SRCFILES
43-
Pins.h
4443
Config.h
4544
CharBuffer.cpp
4645
Network.cpp

Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#define NUKI_HUB_VERSION "8.22-pre-1"
3+
#define NUKI_HUB_VERSION "8.22"
44

55
#define MQTT_QOS_LEVEL 1
66
#define MQTT_CLEAN_SESSIONS false

Gpio.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <esp32-hal.h>
22
#include "Gpio.h"
33
#include "Arduino.h"
4-
#include "Pins.h"
54
#include "Logger.h"
65
#include "PreferencesKeys.h"
76
#include "RestartReason.h"

Network.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Network::Network(Preferences *preferences, const String& maintenancePathPrefix,
1919
_buffer(buffer),
2020
_bufferSize(bufferSize)
2121
{
22+
// Remove obsolete W5500 hardware detection configuration
23+
if(_preferences->getInt(preference_network_hardware_gpio) != 0)
24+
{
25+
_preferences->remove(preference_network_hardware_gpio);
26+
}
27+
2228
_inst = this;
2329
_hostname = _preferences->getString(preference_hostname);
2430

@@ -719,7 +725,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
719725
"reset",
720726
uidString,
721727
"_reset",
722-
"Reset",
728+
"Restart NUKI Hub",
723729
name,
724730
baseTopic,
725731
mqtt_topic_reset,

Pins.h

Lines changed: 0 additions & 5 deletions
This file was deleted.

PreferencesKeys.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define preference_ip_gateway "ipgtw"
2626
#define preference_ip_dns_server "dnssrv"
2727
#define preference_network_hardware "nwhw"
28+
#define preference_network_hardware_gpio "nwhwdt" // obsolete
2829
#define preference_rssi_publish_interval "rssipb"
2930
#define preference_hostname "hostname"
3031
#define preference_network_timeout "nettmout"
@@ -42,7 +43,7 @@
4243
#define preference_cred_user "crdusr"
4344
#define preference_cred_password "crdpass"
4445
#define preference_publish_authdata "pubauth"
45-
#define preference_gpio_locking_enabled "gpiolck"
46+
#define preference_gpio_locking_enabled "gpiolck" // obsolete
4647
#define preference_gpio_configuration "gpiocfg"
4748
#define preference_publish_debug_info "pubdbg"
4849
#define preference_presence_detection_timeout "prdtimeout"

README.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ As an alternative to Wifi, the following ESP32 modules with wired ethernet are s
2323
[M5Stack PoESP32 Unit](https://docs.m5stack.com/en/unit/poesp32)<br>
2424
[LilyGO-T-ETH-POE](https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-POE)<br>
2525

26+
<br>
27+
<b>Note for users upgrading from 8.21 or lower:</b> Please go to "MQTT and Network Configuration" and select
28+
"Wifi only" as the network device (unless you use other network hardware).
2629

2730
## Installation
2831

@@ -176,14 +179,27 @@ For example, to add a code:
176179

177180
## GPIO lock control (optional)
178181

179-
The lock can be controlled via GPIO. For security reasons, this has to be enabled in
180-
the configuration portal (check "Enable control via GPIO" in the NUKI configuration
181-
section). The Pins use pullup configuration, so they have to be connected to ground to
182-
trigger the action.<br><br>
183-
The Pin configuration is:<br>
184-
32: Lock<br>
185-
33: Unlock<br>
186-
27: Unlatch
182+
The lock can be controlled via GPIO. To enable GPIO control, go the the "GPIO Configuration" page where each GPIO
183+
can be configured for a specific role:
184+
185+
- Disabled: The GPIO is disabled
186+
- Input: Lock: When connect to Ground, a lock command is sent to the lock
187+
- Input: Unlock: When connect to Ground, an unlock command is sent to the lock
188+
- Input: Unlatch: When connect to Ground, an unlatch command is sent to the lock
189+
- Input: Electric strike actuation: When connect to Ground, an electric strike actuation command is sent to the opener (open door for configured amount of time)
190+
- Input: Activate RTO: When connect to Ground, Ring-to-open is activated (opener)
191+
- Input: Activate CM: When connect to Ground, Continuous mode is activated (opener)
192+
- Input: Deactivate RTO/CM: Disable RTO or CM, depending on which is active
193+
- Output: High when locked: Outputs a high signal when the door is locked
194+
- Output: High when unlocked: Outputs a high signal when the door is unlocked
195+
- Output: High when motor blocked: Outputs a high signal when the motor is blocked (lock)
196+
- Output: High when RTO active: Outputs a high signal when ring-to-open is active (opener)
197+
- Output: High when CM active: Outputs a high signal when continuous mode is active (opener)
198+
- Output: High when RTO or CM active: Outputs a high signal when either ring-to-open or continuous mode is active (opener)
199+
200+
Note: The old setting "Enable control via GPIO" is removed. If you had enabled this setting before upgrading to 8.22, the PINs are automatically configured to be
201+
compatible with the previously hard-coded PINs.
202+
187203

188204
## Connecting via LAN (Optional)
189205

main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "Arduino.h"
2-
#include "Pins.h"
32
#include "NukiWrapper.h"
43
#include "NetworkLock.h"
54
#include "WebCfgServer.h"

networkDevices/W5500Device.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <Arduino.h>
22
#include <WiFi.h>
33
#include "W5500Device.h"
4-
#include "../Pins.h"
54
#include "../PreferencesKeys.h"
65
#include "../Logger.h"
76
#include "../MqttTopics.h"

webflash/nuki_hub.bin

6.94 KB
Binary file not shown.

0 commit comments

Comments
 (0)