Node Red + Home Assistant -Master Class 4. How to control light dimming with Zigbee light and remote

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ย. 2020
  • In this video I'll show you how to use Home Assistant and Node Red to control dimming of a Zigbee controlled light from a Zigbee remote from IKEA called Symfonisk.
    You'll see how to Dim up and Dim down using the value stored within the Rotary Remote. If you don't have one of these, don't worry, you might be better off checking out Master Class 5 which uses a more standard remote with a hold function to dim up/down.
    Really want to show your appreciation? You can always "Buy me a beer"...
    www.buymeacoffee.com/homesight
    If you want the flow from this video I've uploaded it here for you:
    homesight.tech/?portfolio=nod...

ความคิดเห็น • 38

  • @user-vv9sp2dl7t
    @user-vv9sp2dl7t 3 ปีที่แล้ว +1

    Thank you very much, even without knowing English, everything is clear and intelligible

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว

      You’re welcome!

  • @sven1858
    @sven1858 2 ปีที่แล้ว

    Wow, that was really useful thank you

  • @jarednewall6328
    @jarednewall6328 3 ปีที่แล้ว +1

    Thank you so much for these videos. At the end of the video you said you could use a click to change the lights you're controlling. I wanted to click my dial and switch between the 3 dimmers in my bedroom. Have you made a video that covers this, or could you recommend a node? Either way, I'll shout you a beer. Cheers!

  • @adamcossey9609
    @adamcossey9609 2 ปีที่แล้ว +2

    Thanks for the turtorial. Not sure if it is just me but i have to use the following with standard brackes to allow it to work with my set up.
    {
    "entity_id": "*device*",
    "brightness": ((payload))
    }

  • @AnusornChumthong
    @AnusornChumthong 3 ปีที่แล้ว

    great video, thank you bro

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว

      You’re welcome!

  • @garysteo3398
    @garysteo3398 2 ปีที่แล้ว

    Hi Nice video, question did you use ZHA or zigbee2mqtt to interface to HA

  • @b100pech
    @b100pech ปีที่แล้ว

    I would say that using HA in between Node Red and Z2M is inefficient*** and you have an extra part of software that can malfunction... I would suspect that using Z2M > MQTT > Node-Red (using its build in mqtt client) would eliminate the most unreliable point of failure (HA)...
    That aside, your tutorials are very useful and a quick 101 on using node-red!
    (I just added some logic going from HA to MQTT, its just a bit more work but still very helpful)
    Thank you!
    *** I could be wrong, and there could be a very good reason to use HA in between if so could someone explain?

  • @TestTypeG
    @TestTypeG 3 ปีที่แล้ว +2

    These videos are fantastic, thanks so much! I've used them to learn how to use node-red and find uses for my ikea buttons.
    My only complaint is that your screen recording is a little blurry, I wish that the text and UI was a bit more crisp.
    One question, the message payloads you get from the buttons all have identifying words, i.e. play, pause, etc. I'm using the small two button ikea switch and the only messages it sends are numbers. Is that unique to that switch or is there something you are using that translates these codes into words? The switch is connected via a ConBee II, and my Home Assistant is running on a Pi 4 if that makes any difference.

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว

      Hi, i think I’ll have to start recording in 4K. All the Ikea ones I tried had identifiable words rather than numbers. I don’t see that it should make a difference with conbee, unless Zigbee2MQTT is doing something clever...

    • @TestTypeG
      @TestTypeG 3 ปีที่แล้ว +1

      Thanks for the very quick reply!
      4k might be good, but maybe not necessary as I've seen crisp 1080p screen recordings on TH-cam. Or perhaps they are recording in 4k and only making it available in 1080p on youtube. I still think your videos are great though.
      I see, once I get more switches I'll perhaps see if there is any difference, though if I remember correctly, your two button switch didn't give numbers like mine does. But yeah, perhaps zigbee2mqtt is doing something to assign words to those numbers.

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว

      Hi, I think it’s because I’m downscaling at my end, I’m recording a high res screen and outputting at 1080p. You are correct, my 2 button did have words, it must be zigbee2mqtt being clever

    • @richardhall206
      @richardhall206 3 ปีที่แล้ว +1

      Same for me with the playback resolution. Great videos, nonetheless. One thing I thought Simon might explain is why the json interpreter showed an error for {{payload}} but it worked anyway. I don't have a rotary dimmer but parse Lovelace slider values into variables to do much the same thing. Thanks, I should say, to the Home Sight node-red videos!

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว +1

      Hi Richard, the playback resolution on all of my newer videos is 4K, so should be all good now! The reason it errors is because the parser doesn’t see {{payload}} as an integer and therefore throws an error.

  • @thecatman2000
    @thecatman2000 3 ปีที่แล้ว

    Useful video, thanks - but what's the rotary dial you're using??

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว

      It’s an IKEA symfonisk

  • @g.m4z956
    @g.m4z956 2 ปีที่แล้ว

    The reaction of the light when press a button is very long. Seems like 500ms, it's a normal behavior whit node red? it's possibile to rich a normal light behavior like normal switch?

  • @dave-j-k
    @dave-j-k 3 ปีที่แล้ว

    Fantastic videos, working my way through them as i'm a total noob :) Something i can't find is how you control lights with a hue 4 button dimmer but no hue hub, i have a conbee II configured with ZHA but despite spending two days on it i cannot figure out how to access the dimmer buttons or events in node red - can you offer any help please??

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว +1

      Hi! I don’t use ZHA personally, I prefer the messages to come in using MQTT. From
      What I understand with ZHA, you should have the device natively in your device list. You should be able to put the device as an events state node. If you were to put an event state node in, you should be able to that to a debug node...

    • @dave-j-k
      @dave-j-k 3 ปีที่แล้ว +1

      @@HomeSight Thanks, i have looked at trying pretty much all the options in events state nodes, nothing apart from the battery level is announced it seems. They are there in Automations but not node red, no idea why as it seems a big lump of usefulness is missing. I will have a look into MQTT. The zigbee adapter is a conbee II as that was the recommended one to use.

  • @xisop
    @xisop ปีที่แล้ว

    Great video. Thanks 😊
    I recently bought 2 rotary buttons to control my Heos speakers, also using Z2M. I can't seem to keep the buttons connected to my zigbee network (or they stop transmitting their actions), therefore become quite useless. Z2M also says their is a firmware update available, but I can't push it to the button. Do you have any idea on how to attack this?

    • @HomeSight
      @HomeSight  ปีที่แล้ว

      Hmm, I too had a struggle doing a firmware update, but haven’t had any reason to as they’ve been rock solid. I did consider doing the firmware update from the ikea hub… but like I said, I don’t think I have a need to.

    • @xisop
      @xisop ปีที่แล้ว

      @@HomeSight For me, unfortunately, it the absolute opposite. I hope I can find someone nearby with an Ikea hub so that I can upgrade the firmware. If not, I'm considering the option to buy one myself, just to use these 2 buttons. Anyway, thanks a lot for your response :)
      It also might be the edge version of Z2M I'm using. Need the edge to get my tuya plugs to work though

  • @victorclausson4039
    @victorclausson4039 2 ปีที่แล้ว

    Amazing tutorial! This is exactly what I want.
    I'm running into a problem though when it's time to choose the "sensor.xxxxx_brightness" entity in Node-RED. I've added my Symfonisk through the zigbee2mqtt process and it automatically created some entities for me (I haven't added any lines in the configuration.YAML file yet), but I can't find the _brightness entity for my sensor.symfonisk device. I can only see "_action" as an entity but I see brightness, battery etc as attributes under action.
    How can I create the sensor.xxxx_brightness entity? Do I need to fiddle with the configuration.YAML file?

    • @HomeSight
      @HomeSight  2 ปีที่แล้ว +2

      Hi Victor. Glad to help. Yes it is a Yaml thing:
      - platform: "mqtt"
      name: "Rotary1 Brightness"
      state_topic: "zigbee2mqtt/rotary1"
      value_template: "{{ value_json.brightness }}"
      availability_topic: "zigbee2mqtt/bridge/state"
      icon: "mdi:brightness-5"

    • @victorclausson4039
      @victorclausson4039 2 ปีที่แล้ว

      @@HomeSight Thank you so much Simon! I got it working. I can't thank you enough.

  • @valentinene
    @valentinene 3 ปีที่แล้ว

    I'm using the Ikea's round remote and I was wondering how can I use Up and Down buttons to Dim up and down the lights. Something like if Up button is pressed the brightness=brightness+20 :)) Any clue how can I accomplish this?

    • @HomeSight
      @HomeSight  3 ปีที่แล้ว +1

      Hi, pretty sure I cover that in this one: th-cam.com/video/Z_1GVWhmne4/w-d-xo.html

    • @valentinene
      @valentinene 3 ปีที่แล้ว +1

      @@HomeSight Thanks Simon, somehow I've missed that part of the video (maybe because I'm using ZHA and I don't create manually entities). In the end I'm going to use up/up hold to set the brightness to 100 and 75% and down/down hold to set it to 50 and 0%. I really don't need a finer granularity for my spots :)

  • @TheSirSpence
    @TheSirSpence ปีที่แล้ว

    I was following along with this and found it really useful. But my Ikea rotary dial does not have an sensor._brightness setting 🤔

    • @HomeSight
      @HomeSight  ปีที่แล้ว +1

      Did you set that in your YAML?

    • @TheSirSpence
      @TheSirSpence ปีที่แล้ว +1

      I googled a bit and found your video on configuring Ikea switches. I then hit a brick wall because studio code would not accept the code from your page.
      I googled some more and found that there were breaking changes in a recent HASSIO update.
      So now not only two I have dimmable bedside lamps, but I've successfully completed my first coding in YAML.
      Thank you for the great video.

    • @TheSirSpence
      @TheSirSpence ปีที่แล้ว +1

      @@HomeSight and now I've just seen your response too :)

  • @user-vv9sp2dl7t
    @user-vv9sp2dl7t 3 ปีที่แล้ว

    sorry for my English