Update documentation for Home Assistant light management and room configuration

- Added a new section in README.md for creating and managing lights by room in Home Assistant, linking to a focused guide.
- Enhanced the all-lights-and-rooms.md documentation with a reference to the new guide for clarity on entity creation and room assignment.
- Made minor adjustments to the room-config.js file, commenting out outdated device-to-room mappings to improve code clarity.

This update improves the documentation and usability for users managing lights and rooms in Home Assistant.
This commit is contained in:
2026-02-08 23:15:10 +02:00
parent d64d0f8923
commit 23439e1cd0
4 changed files with 132 additions and 5 deletions

View File

@@ -56,10 +56,10 @@ const ROOM_CONFIG = {
// out_side: 'outSide',
},
// Zigbee: friendly_name → single room (fallback when switchBindings missing).
deviceToRoom: {
'Office Switch': 'cmd_livingroom',
},
// // Zigbee: friendly_name → single room (fallback when switchBindings missing).
// deviceToRoom: {
// 'Office Switch': 'cmd_livingroom',
// },
// When using a multi-device Zigbee node, payload is keyed by IEEE (e.g. 0xa4c138a5b9771b05). Map IEEE → friendly name so switchBindings by name still works.
deviceIdToName: {
@@ -79,7 +79,7 @@ const ROOM_CONFIG = {
switchBindings: {
'Office Switch': {
1: { room: 'cmd_livingroom', light: 1 }, // button 1 → light 1
2: { room: 'cmd_livingroom', light: 1 }, // button 2 → light 1 (same light; other switches could do button 2 → light 2)
2: { room: 'cmd_livingroom', light: 2 }, // button 2 → light 1 (same light; other switches could do button 2 → light 2)
},
},
};