|
248 | 248 | "type": "number", |
249 | 249 | "title": "Baudrate", |
250 | 250 | "requiresRestart": true, |
251 | | - "description": "Baud rate speed for serial port, this can be anything firmware support but default is 115200 for Z-Stack and EZSP, 38400 for Deconz, however note that some EZSP firmware need 57600", |
252 | | - "examples": [38400, 57600, 115200] |
| 251 | + "description": "Baud rate speed for the serial port. This must match what the firmware on your adapter supports (most commonly 115200).", |
| 252 | + "examples": [115200, 921600, 460800, 230400, 57600, 38400] |
253 | 253 | }, |
254 | 254 | "rtscts": { |
255 | 255 | "type": "boolean", |
|
291 | 291 | "type": "object", |
292 | 292 | "properties": { |
293 | 293 | "enddevice": { |
294 | | - "type": "string" |
| 294 | + "type": "string", |
| 295 | + "default": "#fff8ce" |
295 | 296 | }, |
296 | 297 | "coordinator": { |
297 | | - "type": "string" |
| 298 | + "type": "string", |
| 299 | + "default": "#e04e5d" |
298 | 300 | }, |
299 | 301 | "router": { |
300 | | - "type": "string" |
| 302 | + "type": "string", |
| 303 | + "default": "#4ea3e0" |
301 | 304 | } |
302 | 305 | } |
303 | 306 | }, |
304 | 307 | "font": { |
305 | 308 | "type": "object", |
306 | 309 | "properties": { |
307 | 310 | "enddevice": { |
308 | | - "type": "string" |
| 311 | + "type": "string", |
| 312 | + "default": "#000000" |
309 | 313 | }, |
310 | 314 | "coordinator": { |
311 | | - "type": "string" |
| 315 | + "type": "string", |
| 316 | + "default": "#ffffff" |
312 | 317 | }, |
313 | 318 | "router": { |
314 | | - "type": "string" |
| 319 | + "type": "string", |
| 320 | + "default": "#ffffff" |
315 | 321 | } |
316 | 322 | } |
317 | 323 | }, |
318 | 324 | "line": { |
319 | 325 | "type": "object", |
320 | 326 | "properties": { |
321 | 327 | "active": { |
322 | | - "type": "string" |
| 328 | + "type": "string", |
| 329 | + "default": "#009900" |
323 | 330 | }, |
324 | 331 | "inactive": { |
325 | | - "type": "string" |
| 332 | + "type": "string", |
| 333 | + "default": "#994444" |
326 | 334 | } |
327 | 335 | } |
328 | 336 | } |
|
515 | 523 | "enum": ["console", "file", "syslog"] |
516 | 524 | }, |
517 | 525 | "title": "Log output", |
518 | | - "description": "Output location of the log, leave empty to suppress logging" |
| 526 | + "description": "Output location of the log, leave empty to suppress logging", |
| 527 | + "default": ["console", "file"] |
519 | 528 | }, |
520 | 529 | "log_directory": { |
521 | 530 | "type": "string", |
|
530 | 539 | "requiresRestart": true, |
531 | 540 | "description": "Log file name, can also contain timestamp", |
532 | 541 | "examples": ["zigbee2mqtt_%TIMESTAMP%.log"], |
533 | | - "default": "log.txt" |
| 542 | + "default": "log.log" |
534 | 543 | }, |
535 | 544 | "log_level": { |
536 | 545 | "type": "string", |
|
659 | 668 | ], |
660 | 669 | "title": "Pan ID", |
661 | 670 | "requiresRestart": true, |
662 | | - "description": "ZigBee pan ID, changing requires re-pairing all devices!" |
| 671 | + "description": "ZigBee pan ID, changing requires re-pairing all devices!", |
| 672 | + "default": 6754 |
663 | 673 | }, |
664 | 674 | "ext_pan_id": { |
665 | 675 | "oneOf": [ |
|
677 | 687 | ], |
678 | 688 | "title": "Ext Pan ID", |
679 | 689 | "requiresRestart": true, |
680 | | - "description": "Zigbee extended pan ID, changing requires re-pairing all devices!" |
| 690 | + "description": "Zigbee extended pan ID, changing requires re-pairing all devices!", |
| 691 | + "default": [221, 221, 221, 221, 221, 221, 221, 221] |
681 | 692 | }, |
682 | 693 | "channel": { |
683 | 694 | "type": "number", |
|
695 | 706 | "type": ["number", "null"], |
696 | 707 | "minimum": 1, |
697 | 708 | "maximum": 64, |
| 709 | + "default": null, |
698 | 710 | "description": "Adapter concurrency (e.g. 2 for CC2531 or 16 for CC26X2R1) (default: null, uses recommended value)" |
699 | 711 | }, |
700 | 712 | "adapter_delay": { |
|
703 | 715 | "title": "Adapter delay", |
704 | 716 | "minimum": 0, |
705 | 717 | "maximum": 1000, |
| 718 | + "default": null, |
706 | 719 | "description": "Adapter delay" |
707 | 720 | }, |
708 | 721 | "cache_state": { |
|
752 | 765 | ], |
753 | 766 | "title": "Network key", |
754 | 767 | "requiresRestart": true, |
755 | | - "description": "Network encryption key, changing requires re-pairing all devices!" |
| 768 | + "description": "Network encryption key, changing requires re-pairing all devices!", |
| 769 | + "default": [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13] |
756 | 770 | }, |
757 | 771 | "timestamp_format": { |
758 | 772 | "type": "string", |
759 | 773 | "title": "Timestamp format", |
760 | 774 | "requiresRestart": true, |
761 | 775 | "description": "Log timestamp format", |
762 | | - "examples": ["YYYY-MM-DD HH:mm:ss"] |
| 776 | + "default": "YYYY-MM-DD HH:mm:ss", |
| 777 | + "examples": ["YYYY-MM-DD HH:mm:ss.SSS"] |
763 | 778 | }, |
764 | 779 | "transmit_power": { |
765 | 780 | "type": ["number", "null"], |
|
773 | 788 | "type": "string", |
774 | 789 | "enum": ["attribute_and_json", "attribute", "json"], |
775 | 790 | "title": "MQTT output type", |
776 | | - "description": "Examples when 'state' of a device is published json: topic: 'zigbee2mqtt/my_bulb' payload '{\"state\": \"ON\"}' attribute: topic 'zigbee2mqtt/my_bulb/state' payload 'ON' attribute_and_json: both json and attribute (see above)" |
| 791 | + "description": "Examples when 'state' of a device is published json: topic: 'zigbee2mqtt/my_bulb' payload '{\"state\": \"ON\"}' attribute: topic 'zigbee2mqtt/my_bulb/state' payload 'ON' attribute_and_json: both json and attribute (see above)", |
| 792 | + "default": "json" |
777 | 793 | } |
778 | 794 | } |
779 | 795 | }, |
|
827 | 843 | "description": "Sets the MQTT Message Expiry in seconds, Make sure to set mqtt.version to 5" |
828 | 844 | }, |
829 | 845 | "qos": { |
830 | | - "type": "number", |
| 846 | + "type": ["number"], |
| 847 | + "enum": [0, 1, 2], |
831 | 848 | "title": "QoS", |
832 | 849 | "description": "QoS level for MQTT messages of this device" |
833 | 850 | }, |
|
917 | 934 | "type": "boolean" |
918 | 935 | }, |
919 | 936 | "qos": { |
920 | | - "type": "number" |
| 937 | + "type": ["number"], |
| 938 | + "enum": [0, 1, 2], |
| 939 | + "title": "QoS", |
| 940 | + "description": "QoS level for MQTT messages of this group" |
921 | 941 | }, |
922 | 942 | "off_state": { |
923 | 943 | "type": ["string"], |
924 | 944 | "enum": ["all_members_off", "last_member_state"], |
925 | 945 | "title": "Group off state", |
926 | | - "default": "auto", |
| 946 | + "default": "all_members_off", |
927 | 947 | "requiresRestart": true, |
928 | 948 | "description": "Control when to publish state OFF or CLOSE for a group. 'all_members_off': only publish state OFF/CLOSE when all group members are in state OFF/CLOSE, 'last_member_state': publish state OFF whenever one of its members changes to OFF" |
929 | 949 | }, |
|
0 commit comments