Node Red: A widget based dashboard working with Homey trough MQTT

Who can help me the text white instead of black
image

@Benno_Berreboom
Try to set the Dashboard theme to “Dark” instead of “Light”.

@Satoer @Tangodelta

Guys i’ve got the Cam working but with a 1:1 script from Tangodelta i got some strange lines.
Any idea? you guys usually perform magic so if someone knows…

Yes thanks

1 Like

Just a small question, I want to put a Nest Hub in every room in the future, which can then serve as an alarm clock for the kids and as a bell that we will eat :slight_smile: What I wonder with Node Red is also for every user to cast a separate screen? Homey Dash does this by creating several family members and then casting the correct ID so that everyone can see and operate their “own” screen. Or should I make multiple Node Red servers (if I can at all)? Greetings Marius

Thanks to all the tutorials and tips in this topic, I’ve managed to put together a nice basic dashboard for my home. One thing I can’t seem to fix though, are the sliders that control my lights. When I use a slider to set a light to let’s say 60% brightness, the sliders starts jumping around after I let go of it. This lasts for a few seconds, and then the slider settles on a value.

[
{
    "id": "ae143277.7ac31",
    "type": "mqtt in",
    "z": "6565bb43.7585a4",
    "name": "MQTT receiver",
    "topic": "homie/homey-topic/office/dim",
    "qos": "2",
    "datatype": "auto",
    "broker": "5172e388.b0d61c",
    "x": 420,
    "y": 200,
    "wires": [
        [
            "37ad688b.1295b8"
        ]
    ]
},
{
    "id": "37ad688b.1295b8",
    "type": "ui_slider",
    "z": "6565bb43.7585a4",
    "name": "Office_dimmer",
    "label": "Office",
    "tooltip": "",
    "group": "c8120b8a.407038",
    "order": 2,
    "width": "7",
    "height": 1,
    "passthru": true,
    "outs": "all",
    "topic": "homie/homey-topic/office/dim/set",
    "min": 0,
    "max": "100",
    "step": "1",
    "x": 900,
    "y": 200,
    "wires": [
        [
            "645a00a9.954a5"
        ]
    ]
},
{
    "id": "645a00a9.954a5",
    "type": "mqtt out",
    "z": "6565bb43.7585a4",
    "name": "MQTT Light transmit",
    "topic": "",
    "qos": "",
    "retain": "",
    "broker": "5172e388.b0d61c",
    "x": 1340,
    "y": 240,
    "wires": []
},
{
    "id": "5172e388.b0d61c",
    "type": "mqtt-broker",
    "z": "",
    "name": "Homey MQTT",
    "broker": "192.168.1.121",
    "port": "1883",
    "clientid": "",
    "usetls": false,
    "compatmode": true,
    "keepalive": "60",
    "cleansession": true,
    "birthTopic": "",
    "birthQos": "0",
    "birthPayload": "",
    "closeTopic": "",
    "closeQos": "0",
    "closePayload": "",
    "willTopic": "",
    "willQos": "0",
    "willPayload": ""
},
{
    "id": "c8120b8a.407038",
    "type": "ui_group",
    "z": "",
    "name": "Lights",
    "tab": "9caa644f.969818",
    "order": 1,
    "disp": true,
    "width": "8",
    "collapse": false
},
{
    "id": "9caa644f.969818",
    "type": "ui_tab",
    "z": "",
    "name": "Homey Dashboard",
    "icon": "dashboard",
    "disabled": false,
    "hidden": false
}

]

Any ideas?

I think this is because when you slide the slider, it outputs MQTT messages with values to Homey. Homey sets the new values of the lights brightness. Because it changes the value, it also outputs an MQTT message with this new value…

But you are probably still sliding the slider, and the slider is already on a new value before node red receives this new (now old) value back from Homey. This will make the slider jump between value’s.

A solution is to adjust the slider node to only send the new value on release (there’s a setting for it). Or, if you want a more dynamic control, you could start a timer to ignore incoming brightness messages for X seconds.

I’ve switched it to only sending values on release, it’s the easier option for now. Will look into setting timers. Thanks :slight_smile:

Good morning all.
I am preparing my dashboard, I progress little by little with my weak knowledge.
Thank you for this forum which is of great help.
However I try to create a Weather group and there I block a bit.
I have the open weather nodes, a valid API but I don’t know what to output to have a pleasant view with the temperature of the day, the weather conditions, and the forecast over a few days.
Does anyone have an example of flow?
thank you in advance

Hello who can help me with a smart meter with yield L1 L2 L3 and L1 L2 L3 consumption and volts L1 L2 L3 and totals of day week month and gas

What are you trying to achieve?

visual dashboard on the wall

What help do you need?

an example maybe someone has already made this

Can’t really know what you have and what you need help with. If you have a device that measures the values that you want to show it’s same as any other measurement brought to the dashboard.

I paste the nodered code that I have in use, but I’m affraid that won’t quite help you.

[{"id":"12d837be.b1dde8","type":"ui_gauge","z":"83cd7b2a.0122c8","name":"","group":"eb842aba.93e218","order":1,"width":7,"height":5,"gtype":"donut","title":"Yhteensä","label":"kW","format":"{{value/1000|number:1}}","min":0,"max":"15000","colors":["#2d72b8","#e6e600","#ca3838"],"seg1":"5000","seg2":"10000","x":660,"y":180,"wires":[]},{"id":"c2d195ef.ac6028","type":"mqtt in","z":"83cd7b2a.0122c8","name":"Sähkö 3-vaihe teho","topic":"homey/sahkomittari-3-vaihe/measure-power","qos":"0","datatype":"auto","broker":"b565f6e0.5e4dc8","x":190,"y":180,"wires":[["12d837be.b1dde8"]]},{"id":"99e4e294.406d","type":"mqtt in","z":"83cd7b2a.0122c8","name":"Sähkö L1 teho","topic":"homey/sahkomittari-l1/measure-power","qos":"0","datatype":"auto","broker":"b565f6e0.5e4dc8","x":170,"y":280,"wires":[["226d55be.cc775a"]]},{"id":"17b04699.f28869","type":"mqtt in","z":"83cd7b2a.0122c8","name":"Sähkö L2 teho","topic":"homey/sahkomittari-l2/measure-power","qos":"0","datatype":"auto","broker":"b565f6e0.5e4dc8","x":170,"y":340,"wires":[["423e2023.4ec69"]]},{"id":"8afa1609.d2f038","type":"mqtt in","z":"83cd7b2a.0122c8","name":"Sähkö L3 teho","topic":"homey/sahkomittari-l3/measure-power","qos":"0","datatype":"auto","broker":"b565f6e0.5e4dc8","x":170,"y":400,"wires":[["711bde73.e7eff"]]},{"id":"711bde73.e7eff","type":"ui_text","z":"83cd7b2a.0122c8","group":"eb842aba.93e218","order":5,"width":0,"height":0,"name":"","label":"L3","format":"{{msg.payload}} W","layout":"row-spread","x":390,"y":400,"wires":[]},{"id":"226d55be.cc775a","type":"ui_text","z":"83cd7b2a.0122c8","group":"eb842aba.93e218","order":3,"width":0,"height":0,"name":"","label":"L1","format":"{{msg.payload}} W","layout":"row-spread","x":390,"y":280,"wires":[]},{"id":"423e2023.4ec69","type":"ui_text","z":"83cd7b2a.0122c8","group":"eb842aba.93e218","order":4,"width":0,"height":0,"name":"","label":"L2","format":"{{msg.payload}} W","layout":"row-spread","x":390,"y":340,"wires":[]},{"id":"eb842aba.93e218","type":"ui_group","z":"","name":"Sähkömittari","tab":"f55170ad.1ca0e","order":1,"disp":true,"width":7,"collapse":false},{"id":"b565f6e0.5e4dc8","type":"mqtt-broker","z":"","name":"homey","broker":"192.168.11.152","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"f55170ad.1ca0e","type":"ui_tab","z":"","name":"Laaja","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

Hi @Roy_Hopman,

I really like your style sheet. Unfortunatlely css and me aren’t a great match, so would you like to share your code?

It’s already shared over here:

Oh I’m sorry, the last time I read the op it wasn’t there. But thanks a lot for sharing! :smiley:

I have a question: Is there any way to show the time of alarms set in Homey? And to change it? :slight_smile:
Johannes

I don’t even think it’s possible to change the time of Homey directly inside a flow? (I only see on / off). It’s probably doable, but I think you need the help of HomeyScript to do that.
NodeRed => HomeyFlow (activated on MQTT client) => Run HomeyScript => Change Alarm time

If you only set the alarm inside node-red, there’s no need to communicate changes with Node-red.

1 Like