# Getting a Problem to represent Lightings for a house with 3 floors

**URL:** https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096
**Category:** Dashboard
**Tags:** node-red-dashboard
**Created:** [3 January 2023 10:12 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096 "2023-01-03T10:12:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Vikas](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Vikas](https://discourse.nodered.org/u/Vikas)
#### Post date: [3 January 2023 10:12 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096/1 "2023-01-03T10:12:07Z")

</div>

Any assistance will be greatly appreciated. The Question is  
Q)-Create a flow that simulates light switches and lights in a house.

1. Search for suitable visualisation palettes that map a switch (on / off) and use it on the NodeRed  
dashboard.

2. A switch should send an MQTT message corresponding to the state of the light (on / off). (Depending on the switch library, you may only need to connect the switch to an MQTT Publisher!)

3. Find an LED representation, which then corresponds to the state of a lamp in the house. Connect the LED to an MQTT receiver in such a way that the state of the associated switch is indicated by the LED.

4. Create a dashboard visualisation for a house with 3 floors (basement, ground floor, 1st floor), each with 4 rooms and each containing a lamp. One canvas is sufficient for the whole house. (Group a set of Light Switches and the connected LEDs on the dashboard. )

5. Additionally add a label for each led - switch group.

6. Use a comment node to describe your set of Topics, discuss why you have developed the topic as you have done.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 January 2023 10:31 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096/2 "2023-01-03T10:31:33Z")

</div>

Welcome to the forum @Vikas

That sounds remarkably like a student exercise. If you need any specific help on a particular aspect of the problem we will be glad to help, but I don't think anyone is going to do your homework for you.

However, to get started, I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [3 January 2023 10:33 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096/3 "2023-01-03T10:33:15Z")

</div>

Hi, welcome to the forum.  
OK, how far have you got so far ?  
Please show us what you have developed and describe any specific problems that you are having.

---

<div class="post-metadata">

### Author: ![Vikas](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Vikas](https://discourse.nodered.org/u/Vikas)
#### Post date: [3 January 2023 10:44 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096/4 "2023-01-03T10:44:34Z")

</div>

Hello Thanku soo much for your reply. I have done till third part i have a led representation in dashboard which turns green and red as per on/off signals but i am getting struck in the floor representation. how to start with that

---

<div class="post-metadata">

### Author: ![Vikas](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Vikas](https://discourse.nodered.org/u/Vikas)
#### Post date: [3 January 2023 10:45 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096/5 "2023-01-03T10:45:30Z")

</div>

Yess you are correct sir its a basic exercise. I am getting struck in floor representtaions

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 January 2023 12:01 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096/6 "2023-01-03T12:01:42Z")

</div>

If you need the dashboard to overlay a diagram then you could look at [node-red-contrib-ui-svg (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-ui-svg). It is very powerful, but it is not trivial to use. I think if you search the forum for that node you will find some examples of what it can do. I have not used it myself. I suggest that you edit the thread title to make it more descriptive of your problem.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [2 February 2023 12:01 UTC](https://discourse.nodered.org/t/getting-a-problem-to-represent-lightings-for-a-house-with-3-floors/73096/7 "2023-02-02T12:01:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
