mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
Berry/Zigbee add web hook per device for customized status display (#20542)
This commit is contained in:
parent
30c3165b6f
commit
860f3857d5
@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Command ``TimedPower<index> <milliseconds>[,ON|OFF|TOGGLE|BLINK]`` executes ``Power<index> [ON|OFF|TOGGLE|BLINK] `` and after <millisecond> executes ``Power<index> [OFF|ON|TOGGLE|BLINK_OFF]``
|
- Command ``TimedPower<index> <milliseconds>[,ON|OFF|TOGGLE|BLINK]`` executes ``Power<index> [ON|OFF|TOGGLE|BLINK] `` and after <millisecond> executes ``Power<index> [OFF|ON|TOGGLE|BLINK_OFF]``
|
||||||
- Berry solidification of strings longer than 255 bytes (#20529)
|
- Berry solidification of strings longer than 255 bytes (#20529)
|
||||||
- Berry syntax coloring for Notepad++ (by FransO)
|
- Berry syntax coloring for Notepad++ (by FransO)
|
||||||
|
- Berry/Zigbee add web hook per device for customized status display
|
||||||
|
|
||||||
### Breaking Changed
|
### Breaking Changed
|
||||||
|
|
||||||
|
@ -2211,6 +2211,7 @@ void ZigbeeShow(bool json)
|
|||||||
|
|
||||||
uint32_t now = Rtc.utc_time;
|
uint32_t now = Rtc.utc_time;
|
||||||
|
|
||||||
|
// iterate through devices by alphabetical order
|
||||||
for (uint32_t i = 0; i < zigbee_num; i++) {
|
for (uint32_t i = 0; i < zigbee_num; i++) {
|
||||||
const Z_Device &device = zigbee_devices.devicesAt(sorted_idx[i]);
|
const Z_Device &device = zigbee_devices.devicesAt(sorted_idx[i]);
|
||||||
uint16_t shortaddr = device.shortaddr;
|
uint16_t shortaddr = device.shortaddr;
|
||||||
@ -2365,6 +2366,10 @@ void ZigbeeShow(bool json)
|
|||||||
}
|
}
|
||||||
WSContentSend_P(PSTR("{e}"));
|
WSContentSend_P(PSTR("{e}"));
|
||||||
}
|
}
|
||||||
|
#ifdef USE_BERRY
|
||||||
|
// Berry hook to display additional customized information
|
||||||
|
callBerryZigbeeDispatcher("web_device_status", nullptr, nullptr, shortaddr);
|
||||||
|
#endif // USE_BERRY
|
||||||
}
|
}
|
||||||
|
|
||||||
WSContentSend_P(msg[ZB_WEB_LINE_END]); // Terminate current multi column table and open new table
|
WSContentSend_P(msg[ZB_WEB_LINE_END]); // Terminate current multi column table and open new table
|
||||||
|
Loading…
x
Reference in New Issue
Block a user