How To Build A Telegram Chatbot That Controls Your Smart Home | Chapter 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ค. 2023
  • Get ready to level up your smart home! In this video, I show you how to install telegram and send messages to home assistant to control your automations. This is the first step before we are able to add GPT-3 to our chatbot.
    Would you like to show support? Buy me a coffee!
    bmc.link/mmontaque
    My Node-Red-based Home Assistant Automation Chaperone Guide!
    montaque22.github.io/#/ai-mas...
    #tutorials #chatgpt #smarthome #nodered #homeassistant #chatbot
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @waltertamboer
    @waltertamboer ปีที่แล้ว +5

    YES, the fact that you refer to the official integration pages because your videos might get outdated shows that you really think about the content that you publish. That alone deserves a follow. I've seen a couple of your videos now, keep up the good work! I love it. *subscribed*

  • @pageb018
    @pageb018 ปีที่แล้ว +8

    Just wanted to say, I appreciate the content you are making. More advanced, really interesting and compelling stuff. Keep up the great work!

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

      Thank you! More interesting stuff is coming soon!! 😁

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

    i appreciate the work you are putting in these videos. thank you

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

    I love the fact that you come out with content for those of us that have been doing this for a while. While I agree there is a need for beginner and basic stuff. You feel the void for those of us that have been doing this for a while that need more intermediate to advanced ideas. Keep up the good content.

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

      I appreciate the compliment! I have more interesting ideas I want to share so stay tuned!

  • @Joseph-ko2kl
    @Joseph-ko2kl 5 หลายเดือนก่อน +1

    So happy with your content man. Please keep it up

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

    I'm just shocked how good you r editing and making these videos....

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

      Glad you like them!

    • @briansepolen4917
      @briansepolen4917 10 หลายเดือนก่อน +1

      ​@@technithusiasti was watching in the car and your musical interludes are slappin', if a little loud in the mix. Loving your ideas and content.

  • @erikwagen1480
    @erikwagen1480 8 หลายเดือนก่อน +1

    Great stuff here!

  • @motola36
    @motola36 3 หลายเดือนก่อน +1

    This tutorial is awesome 👍👍👍

    • @technithusiast
      @technithusiast  3 หลายเดือนก่อน

      Glad you think so! This series were done almost a year ago but they still convey the logic behind interacting with GPT in your automations. If you want an easier time connecting to GPT try checking out this tutorial: th-cam.com/video/J0_mi7U0wCM/w-d-xo.html

  • @b3armonk
    @b3armonk 4 หลายเดือนก่อน +1

    In case someone is unable to start nodered, go to configuration and disable the SSL. Remember to save.

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

    a very exciting lecture, thank you. You are acting way above my skill level, but I love to learn from you in the future. Need to start with node-red first from the very beginner level. thumbs up

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

      Thanks for the feedback! I’m gonna see if I can make the next video simpler or perhaps put out a few node-red tutorials 🤔

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

      this wasn‘t my intention at all. there are plenty of Node-RED beginner tutorials already. I suggest you better stay with your series and teach us to higher qualification maybe

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

    Honestly...I look forward to a time when I can tell Home Assistant what I want and it just does all the automations and yaml code stuff for me. It will probably never really work that way, but it's a nice dream...😇

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

      Maybe that dream isn’t to far away?🤷🏾‍♂️

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

      @@technithusiast
      Maybe. But also...maybe not...😉

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

    Hi, Great instructional video. I got as far at the cut 10:19, and everything is working great... I did add the agent_id to the conversation:process service, but other than that it's the same. And now I can send telegram a 'turn on the desk striplight' message and HA-Assist handles it and does exactly that..but I hadn't spotted the tips and tricks in the docs before.really useful.

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

      Glad it u found it useful!

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

      @@technithusiast You said it *could be done in HA, but you dont llike/do yaml ... Well you *could* add an automation like...
      alias: Test
      description: ""
      trigger:
      - platform: event
      event_type: telegram_text
      event_data: {}
      context: {}
      condition: []
      action:
      - service: telegram_bot.send_message
      data:
      message: ..is handling it.
      target: YOUR CALLER ID
      title: HomeAssistant..
      - service: conversation.process
      data:
      text: "{{trigger.event.data.text}}"
      mode: parallel
      max: 2
      ...but NodeRed will negate using Jinja templating in yaml and adding conditions later, which I prefer not to use.

  • @PontusWelin
    @PontusWelin 6 หลายเดือนก่อน +2

    Maybe this is old news. But the conversation API now works. I did the conversation.process and response thing as the original and it works without issues.

    • @technithusiast
      @technithusiast  6 หลายเดือนก่อน +1

      thanks for following up! there was an update the later on that resolved it for me 👌🏾

    • @rcayadi
      @rcayadi 24 วันที่ผ่านมา

      Where is the missing , I get respond green light but message never come to my telegrram

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

    Hi.
    Thank you for the video.
    Could you please, in the future, include the word "Node-red" in the header?
    Thanks

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

      Are you looking for more node-red related videos or is node red a deterrent for you?

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

      @@technithusiast None. I just think it would be fair to be informed in header that this is a Node-red video and not a |"common" automation...

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

    Some seriously good content here.... I really enjoy what you are building here...
    Question... is there a reason why you shouldn't just pass the msg.service dynamically rather than adding a variable..? you can see in the example in the call service node.

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

      Thank you! You’re one of the few to make that astute observation. 🙌🏾
      Im trying to introduce viewers to different aspects of node-red. Just in case their requirements differ, they would be familiar with other nodes to help them. However, showing these various nodes does come at a cost of looking convoluted.
      In the upcoming videos it should all come together and make sense though 😬

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

      @@technithusiast
      I may have a little more experience with node-red… but I’m always willing to learn something new.
      Your work here is inspiring me to pick up those projects I put down.
      Keep doing what you’re doing.

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

      I appreciate the encouragement!

  • @bryceyorkpm
    @bryceyorkpm 6 หลายเดือนก่อน +1

    Any update on the conversation service?

    • @technithusiast
      @technithusiast  6 หลายเดือนก่อน

      Conversation service is working 😬

  • @Chris-lc3sq
    @Chris-lc3sq ปีที่แล้ว +1

    Is it possible to pass this off to Alexa media player (HACS) within home assistant? I am thinking more like replying back to a text message? Keep up the great work.

    • @technithusiast
      @technithusiast  11 หลายเดือนก่อน

      I’m not sure about Alexa, I only know for Google this isn’t possible and I would be surprised if it’s the same for alexa

    • @stevengfx
      @stevengfx 11 หลายเดือนก่อน

      I do this in Node-RED. You can pass the reply text to an Amazon Polly (I also use a change node before the Amazon Polly node to add SSML markup to control speech characteristics) node to generate an mp3 (saved to public directory) that you can play with alexa_media devices (Note: Must use SSL). I also use the same mp3 to play on my Google Home devices. I'm pretty darn happy with the results.

  • @TristynRusselo
    @TristynRusselo 7 หลายเดือนก่อน +1

    im thinking doesnt Home assistant have a built-in chat bot now?
    then i see it ... *foreshadowing*

    • @technithusiast
      @technithusiast  7 หลายเดือนก่อน

      At the time of creating this they didn’t have it but I knew they would try to create one. Home assistant also allows you to hook GPT but it’s not useful. However, OpenAI will reach a point where it will make sense for home assistant to integrate it fully

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

    just want to inform you: I am at Home Assistant 2023.5.4 and Node-RED 14.2.1 and the conversation.process is working (10:25). Currently I follow along this tutorial and it is very exciting for me, even I don’t understand why and how it is working 😄 thank you

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

      I’m gonna definitely go back and try the conversation api maybe it was just my machine. But I’m stoke that it’s working for you! Check out the other videos because it gets so much better 😁

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

    Could you do this same thing with discord? Anyone see that implemented?

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

      I don’t have a discord but I’m contemplating the idea. Though it’s not as interactive and dynamic as discord I do have a site called chaperone that can help a little by offering code to download (at your discretion) montaque22.github.io

  • @nicnok95
    @nicnok95 8 หลายเดือนก่อน

    dosent work

    • @technithusiast
      @technithusiast  8 หลายเดือนก่อน

      Just a heads up. You may encounter an error with the OpenAi node. This is because Open AI updates their API and NodeRed will fetch the most recent version which will not align with what you download. I’ll be updating the site in a few weeks with the more recent version but it would be faster and beneficial for you to update the API call yourself in the mode using Open AI’s documentation.
      (If what I said didn’t make sense. Lemme know shoot me an email and I can walk send you clearer instructions

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

    Hello, the conversation process as initially described seems still to workd by using a function node with:
    msg.payload =
    {
    "data": {
    "text": msg.payload.event.text
    }
    }
    return msg;
    am I missing something?

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

      It used to work so it could be just me. I’ll have to double check it later but I think it was a fun challenge to do without it

  • @jebstalp
    @jebstalp 11 หลายเดือนก่อน +1

    Following this tutorial but using it with a whatsapp addon to use in our flat group.
    The conversation.process service works on 2023.8
    But still the second part is very interesting ^^

    • @technithusiast
      @technithusiast  11 หลายเดือนก่อน

      Oh dope!! I’m actually planning on switching up some of my automations back to the. Conversation process since it started working again for me too