Skip to content

Commit 9a6397f

Browse files
committed
Make Zigbee2MQTT naming consistent
1 parent 22c24a1 commit 9a6397f

11 files changed

+21
-21
lines changed

.github/ISSUE_TEMPLATE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Before submitting an issue make sure you've searched for a similar issue and rea
33
44
Rules (don't ignore these, your issue will be closed without further notice):
55
- English only
6-
- Make sure you are on the latest Zigbee2mqtt version
6+
- Make sure you are on the latest Zigbee2MQTT version
77
- Provide a clear description of the problem
88
- DON'T copy logs directly here, post a link to https://hastebin.com/ or https://pastebin.com/.
99
- Make sure you are running the latest firmware https://github.com/koenkk/z-stack-firmware.
1010
1111
Did you read the FAQ?
1212
- https://www.zigbee2mqtt.io/information/FAQ.html
1313
14-
Zigbee2mqtt fails to start?
14+
Zigbee2MQTT fails to start?
1515
- https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start
1616
1717
Having issues when using a CC2531?
@@ -41,6 +41,6 @@ Bug report?
4141
## How to reproduce it (minimal and precise)
4242

4343
## Debug Info
44-
Zigbee2mqtt version:
44+
Zigbee2MQTT version:
4545
Adapter hardware: CC2531, CC2530, CC26X2R1 or CC1352P-2
4646
Adapter firmware version:

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<img src="https://img.shields.io/npm/v/zigbee2mqtt">
3434
</a>
3535
</div>
36-
<h1>Zigbee2mqtt 🌉 🐝</h1>
36+
<h1>Zigbee2MQTT 🌉 🐝</h1>
3737
<p>
3838
Allows you to use your Zigbee devices <b>without</b> the vendors bridge or gateway.
3939
</p>
@@ -48,7 +48,7 @@ The [documentation](https://www.zigbee2mqtt.io/) provides you all the informatio
4848
If you aren't familiar with **Zigbee** terminology make sure you [read this](https://www.zigbee2mqtt.io/information/zigbee_network.html) to help you out.
4949

5050
## [Integrations](https://www.zigbee2mqtt.io/#integration)
51-
Zigbee2mqtt integrates well with (almost) every home automation solution because it uses MQTT. However the following integrations are worth mentioning:
51+
Zigbee2MQTT integrates well with (almost) every home automation solution because it uses MQTT. However the following integrations are worth mentioning:
5252

5353
<img align="left" height="100px" width="100px" src="https://user-images.githubusercontent.com/7738048/40914297-49e6e560-6800-11e8-8904-36cce896e5a8.png">
5454

@@ -67,7 +67,7 @@ Zigbee2mqtt integrates well with (almost) every home automation solution because
6767
![Architecture](images/architecture.png)
6868

6969
### Internal Architecture
70-
Zigbee2mqtt is made up of three modules, each developed in its own Github project. Starting from the hardware (adapter) and moving up; [zigbee-herdsman](https://github.com/koenkk/zigbee-herdsman) connects to your Zigbee adapter an makes an API available to the higher levels of the stack. For e.g. Texas Instruments hardware, zigbee-herdsman uses the [TI zStack monitoring and test API](https://github.com/koenkk/zigbee-herdsman/raw/master/docs/Z-Stack%20Monitor%20and%20Test%20API.pdf) to communicate with the adapter. Zigbee-herdsman handles the core Zigbee communication. The module [zigbee-herdsman-converters](https://github.com/koenkk/zigbee-herdsman-converters) handles the mapping from individual device models to the Zigbee clusters they support. [Zigbee clusters](https://github.com/Koenkk/zigbee-herdsman/raw/master/docs/07-5123-06-zigbee-cluster-library-specification.pdf) are the layers of the Zigbee protocol on top of the base protocol that define things like how lights, sensors and switches talk to each other over the Zigbee network. Finally, the zigbee2mqtt module drives zigbee-herdsman and maps the zigbee messages to MQTT messages. Zigbee2mqtt also keeps track of the state of the system. It uses a `database.db` file to store this state; a text file with a JSON database of connected devices and their capabilities.
70+
Zigbee2MQTT is made up of three modules, each developed in its own Github project. Starting from the hardware (adapter) and moving up; [zigbee-herdsman](https://github.com/koenkk/zigbee-herdsman) connects to your Zigbee adapter an makes an API available to the higher levels of the stack. For e.g. Texas Instruments hardware, zigbee-herdsman uses the [TI zStack monitoring and test API](https://github.com/koenkk/zigbee-herdsman/raw/master/docs/Z-Stack%20Monitor%20and%20Test%20API.pdf) to communicate with the adapter. Zigbee-herdsman handles the core Zigbee communication. The module [zigbee-herdsman-converters](https://github.com/koenkk/zigbee-herdsman-converters) handles the mapping from individual device models to the Zigbee clusters they support. [Zigbee clusters](https://github.com/Koenkk/zigbee-herdsman/raw/master/docs/07-5123-06-zigbee-cluster-library-specification.pdf) are the layers of the Zigbee protocol on top of the base protocol that define things like how lights, sensors and switches talk to each other over the Zigbee network. Finally, the Zigbee2MQTT module drives zigbee-herdsman and maps the zigbee messages to MQTT messages. Zigbee2MQTT also keeps track of the state of the system. It uses a `database.db` file to store this state; a text file with a JSON database of connected devices and their capabilities.
7171

7272
## Supported devices
7373
See [Supported devices](https://www.zigbee2mqtt.io/information/supported_devices.html) to check whether your device is supported. There is quite an extensive list, including devices from vendors like Xiaomi, Ikea, Philips, OSRAM and more.

azure-pipelines.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ steps:
7676
displayName: 'Docker build release'
7777
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), ne(variables['Build.Reason'], 'PullRequest'))
7878

79-
# Trigger Home Assistant Zigbee2mqtt addon build
79+
# Trigger Home Assistant Zigbee2MQTT addon build
8080
- bash: |
8181
curl -s \
8282
--request POST \

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const engines = require('./package.json').engines;
33

44
const version = engines.node;
55
if (!semver.satisfies(process.version, version)) {
6-
console.log(`\t\tZigbee2mqtt requires node version ${version}, you are running ${process.version}!\n`); // eslint-disable-line
6+
console.log(`\t\tZigbee2MQTT requires node version ${version}, you are running ${process.version}!\n`); // eslint-disable-line
77
}
88

99
// Validate settings

lib/controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Controller {
103103
this.state.start();
104104

105105
const info = await utils.getZigbee2mqttVersion();
106-
logger.info(`Starting zigbee2mqtt version ${info.version} (commit #${info.commitHash})`);
106+
logger.info(`Starting Zigbee2MQTT version ${info.version} (commit #${info.commitHash})`);
107107

108108
// Start zigbee
109109
try {

lib/extension/homeassistant.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ class HomeAssistant extends Extension {
18501850

18511851
async onPublishEntityState(data) {
18521852
/**
1853-
* In case we deal with a lightEndpoint configuration Zigbee2mqtt publishes
1853+
* In case we deal with a lightEndpoint configuration Zigbee2MQTT publishes
18541854
* e.g. {state_l1: ON, brightness_l1: 250} to zigbee2mqtt/mydevice.
18551855
* As the Home Assistant MQTT JSON light cannot be configured to use state_l1/brightness_l1
18561856
* as the state variables, the state topic is set to zigbee2mqtt/mydevice/l1.
@@ -2037,7 +2037,7 @@ class HomeAssistant extends Extension {
20372037

20382038
// Set availability payload
20392039
// When using availability_timeout each device has it's own availability topic.
2040-
// If not, use the availability topic of zigbee2mqtt.
2040+
// If not, use the availability topic of Zigbee2MQTT.
20412041
if (settings.get().advanced.availability_timeout) {
20422042
payload.availability_topic = `${settings.get().mqtt.base_topic}/${friendlyName}/availability`;
20432043
} else {
@@ -2184,7 +2184,7 @@ class HomeAssistant extends Extension {
21842184
return {
21852185
identifiers: [`zigbee2mqtt_${resolvedEntity.settings.ID}`],
21862186
name: resolvedEntity.settings.friendlyName,
2187-
sw_version: `Zigbee2mqtt ${zigbee2mqttVersion}`,
2187+
sw_version: `Zigbee2MQTT ${zigbee2mqttVersion}`,
21882188
model: `${resolvedEntity.definition.description} (${resolvedEntity.definition.model})`,
21892189
manufacturer: resolvedEntity.definition.vendor,
21902190
};

lib/util/logger.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const transportsToUse = [
4646
winston.format.printf(/* istanbul ignore next */(info) => {
4747
let {timestamp, level, message} = info;
4848
level = level === 'warning' ? 'warn' : level;
49-
const prefix = colorizer.colorize(level, `zigbee2mqtt:${levelWithCompensatedLength[level]}`);
49+
const prefix = colorizer.colorize(level, `Zigbee2MQTT:${levelWithCompensatedLength[level]}`);
5050
return `${prefix} ${timestamp.split('.')[0]}: ${message}`;
5151
}),
5252
),
@@ -83,7 +83,7 @@ if (output.includes('file')) {
8383
if (output.includes('syslog')) {
8484
require('winston-syslog').Syslog;
8585
const options = {
86-
app_name: 'zigbee2mqtt',
86+
app_name: 'Zigbee2MQTT',
8787
format: winston.format.printf(/* istanbul ignore next */(info) => {
8888
return `${info.message}`;
8989
}),

lib/util/settings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const defaults = {
7272
* Home Assistant requires ALL attributes to be present in ALL MQTT messages send by the device.
7373
* https://community.home-assistant.io/t/missing-value-with-mqtt-only-last-data-set-is-shown/47070/9
7474
*
75-
* Therefore zigbee2mqtt BY DEFAULT caches all values and resend it with every message.
75+
* Therefore Zigbee2MQTT BY DEFAULT caches all values and resend it with every message.
7676
* advanced.cache_state in configuration.yaml allows to configure this.
7777
* https://www.zigbee2mqtt.io/configuration/configuration.html
7878
*/

scripts/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22
function zigbee2mqtt-show-short-info {
3-
echo "Setup for Zigbee2mqtt bridge."
3+
echo "Setup for Zigbee2MQTT bridge."
44
}
55

66
function zigbee2mqtt-show-long-info {
7-
echo "This script installs the Zigbee2mqtt bridge"
7+
echo "This script installs the Zigbee2MQTT bridge"
88
}
99

1010
function zigbee2mqtt-show-copyright-info {
@@ -20,7 +20,7 @@ if [ -z "${node}" ]; then #Installing NodeJS if not already installed.
2020
apt install -y nodejs
2121
fi
2222

23-
echo "Cloning Zigbee2mqtt git repository"
23+
echo "Cloning Zigbee2MQTT git repository"
2424
git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
2525
chown -R pi:pi /opt/zigbee2mqtt
2626

test/homeassistant.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const HomeAssistant = require('../lib/extension/homeassistant');
1212
describe('HomeAssistant extension', () => {
1313
beforeEach(async () => {
1414
this.version = await require('../lib/util/utils').getZigbee2mqttVersion();
15-
this.version = `Zigbee2mqtt ${this.version.version}`;
15+
this.version = `Zigbee2MQTT ${this.version.version}`;
1616
jest.useRealTimers();
1717
data.writeDefaultConfiguration();
1818
settings._reRead();

update.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22

3-
echo "Stopping zigbee2mqtt..."
3+
echo "Stopping Zigbee2MQTT..."
44
sudo systemctl stop zigbee2mqtt
55

66
echo "Creating backup of configuration..."
@@ -17,7 +17,7 @@ echo "Restore configuration..."
1717
cp -R data-backup/* data
1818
rm -rf data-backup
1919

20-
echo "Starting zigbee2mqtt..."
20+
echo "Starting Zigbee2MQTT..."
2121
sudo systemctl start zigbee2mqtt
2222

2323
echo "Done!"

0 commit comments

Comments
 (0)