Track Chores in Home Assistant with Grocy & NFC Tags - Tutorial Project

Поділитися
Вставка
  • Опубліковано 7 сер 2024
  • Household chores tracked with Home Assistant & Grocy, tracking chores with NFC Tags once they are done!
    ★FREE Home Assistant Course★: courses.leonardosmarthomemake...
    ★Build a Smart Home Course★: courses.leonardosmarthomemake...
    ★★ Content★★
    0:00 - Intro
    0:29 - Grocy Add-on
    1:40 - Adding Chores to Grocy
    3:23 - Rest API Sensor
    13:03 - NFC Tags
    14:56 - Automation & Command Shell
    18:46 - Demo
    20:38 - Next Steps
    ★★Links★★
    Grocy API: demo.grocy.info/api#/Chores
    Code: leonardosmarthomemakers.com/h...
    7 Automations with NFC Tags: • 7 Home Automations wit...
    ★★ Products Listed from Amazon ★★
    NFC Tags:
    UK: amzn.to/3mz7vwg
    US: amzn.to/3nDOY2X
    ★My Gear★
    kit.co/smarthomemakers/gettin...
    kit.co/smarthomemakers/how-to...
    kit.co/smarthomemakers/conten...
    ★★Connect with me ★★
    Web: leonardosmarthomemakers.com/b...
    Digital Coaching Session: leonardosmarthomemakers.com/p...
    Twitter: / smarthomemaker2
    DISCLAIMER: This UA-cam video description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This allows us to continue to make videos like this.
    #smarthomemakers #homeassistant #smartthome
  • Наука та технологія

КОМЕНТАРІ • 50

  • @ronm6585
    @ronm6585 3 роки тому +1

    Thank you and all the best in 2021.

  • @liuesstuo9413
    @liuesstuo9413 3 роки тому +3

    Great Video. FYI: if you use manual and write the name it will automatically be named in HA and the ID will be human readable.

  • @AdamMaryniuk
    @AdamMaryniuk Рік тому +1

    there is now a grocy custom component with a service for completing chores you can use instead of the curl command here.
    thanks for the video!

    • @SmartHomeMakers
      @SmartHomeMakers  Рік тому

      Thanks Adam for the update!

    • @destroy43
      @destroy43 Рік тому +1

      Is there an updated guide anywhere? I'm going through this guide and realizing it's nearly two years old now...

  • @ombreeevid
    @ombreeevid 2 місяці тому

    I seem to get a 401 error message if I try to trigger the URL manually and with the NFC tag scanned nothing happens :/ Any thoughts what I could be doing wrong?

  • @DementedDog
    @DementedDog Рік тому

    This may be a dumb question, but is Grocy supposed to have services after installing on Home Assistant? I don't seem to have any showing up!

  • @anders9215
    @anders9215 2 роки тому

    I can't seem to find the correct Chore ID, anybody knows how to retrieve it by now ?

  • @benek9841
    @benek9841 2 роки тому

    Great video. can you help me create sensor that would show the name of the person that chore is assigned next? When I do GET chores/{id} I am getting this info but do not know how to extract it to sensor.

    • @SmartHomeMakers
      @SmartHomeMakers  2 роки тому

      how does the api output look like? Check my templating videos for more help :)

  • @Dr.Alveus
    @Dr.Alveus 3 роки тому

    Thanks for the tutorial!
    I am struggling to get the attributes to show up correctly.
    The entity is added, but i can only see the unit of measurement and friendly name attributes, any ideas on how to fix this?

    • @SmartHomeMakers
      @SmartHomeMakers  3 роки тому

      Can you share your code ? Thanks!

    • @Dr.Alveus
      @Dr.Alveus 3 роки тому +1

      @@SmartHomeMakers thanks for replying so quick man. I am not sure what the issue was, but i think it had to do with not specifying a port for Grocy. I was trying to run it on the same port (ingress) as i already had a secure domain setup for home assistant for external connections. However, I kept returning into a 401 unauthorized error (made sure i had the right tokens for the requests - didn't even work with external clients). So i uninstalled it, gave it a port and it worked with the same tokens/headers.
      I then made another subdomain specifically for Grocy (gotta make use of that wildcard certificate somehow) and changed all the links from the local host the the subdomain and its working great now. only issue is anytime i enable ssl in the configuration it crashed, so it is disabled for now.

    • @TECNOKRATOR
      @TECNOKRATOR Рік тому

      @@Dr.Alveus Same problem here, not working with ssl enabled, thanks for the advice!

  • @cjramseyer
    @cjramseyer 3 роки тому

    This was a great video, and I tried implementing just as you did. My sensor comes up, but only returns 'unknown' for the state. though in grocy I have executed the chore (Garbage) at least once. I tried recopying your code, but cannot seem to find why this doesn't return the number of days

    • @SmartHomeMakers
      @SmartHomeMakers  3 роки тому

      Hi CJ, did you get the latest code from the blog and see my pinned msg ?

    • @cjramseyer
      @cjramseyer 3 роки тому

      @@SmartHomeMakers Yes, I copied the code from your site exactly, and merely changed the title in the sensor configuration. Pinned message?

    • @SmartHomeMakers
      @SmartHomeMakers  3 роки тому

      @@cjramseyer Ok Cool, did you change the api id, for your specific chore?

    • @cjramseyer
      @cjramseyer 3 роки тому

      @@SmartHomeMakers I actually didn't need to, but I validated that my only chore in Grocy was '1' from the API interface

  • @CrankyCoder
    @CrankyCoder 3 роки тому +1

    Is it possible to have chores "discovered"? Meaning what if there are one off's that would be nice to assign to chore lists. Would be nice to have the kids looking in 1 place to for their list of things they need to do. But if I have to modify config files and borderline write code to get the chores into HA maybe using HA as the front end for chores isn't the right way to go.

    • @SmartHomeMakers
      @SmartHomeMakers  3 роки тому

      Agree about HA not being idea as front end for this use case, maybe automations linked to their phones if they are old enough ?

    • @CrankyCoder
      @CrankyCoder 3 роки тому +1

      @@SmartHomeMakers right that’s what I’m saying. That’s why I was curious if chores can be discovered in HA. If so, then it’s easy to get added to their devices UI for HA via automations. But if I have to do all that work to get the chores added to HA in the first place, then that’s not the most effective place for tracking things and may be better to stick with shared ical task lists

  • @wijzevaren6375
    @wijzevaren6375 3 роки тому +1

    Even better, this page you use to show us the Grocy API is interactive. On the top right corner is a lock with Autorize on it. Click on it and fill-in you API-key and press Authorize > Close. Now you can use the interactive API on your own instance! Be aware that PUT/ POST/ DELETE calls will affect your LIVE data!
    When authorized it is possible to do a GET call on Chores. For example:
    -) Click on the Call (f.e: GET /chores) so it opens
    -) Click right on 'Try it out'
    -) You will have a big blue button "Execute"
    -) The response shown is your Grocy Data

  • @Sesquialteral
    @Sesquialteral 2 роки тому

    I'm curious, why do you use the `shell_command` integration when there is a `rest_command` integration?

    • @SmartHomeMakers
      @SmartHomeMakers  2 роки тому

      To be honest I can’t remember :) is rest superior?

  • @TrentBumgarner
    @TrentBumgarner 2 роки тому

    Hello Sir, I have tried following your video and blog to do the same thing however none of the sensors are ever created within HA upon restart. I have verified if I go to the url of chore/1 in a browser that it opens and displays the data. I am not sure where I am going wrong, I have been trying to figure this out for about a week now. I can only hope that you or someone here could possibly offer some advice.

    • @SmartHomeMakers
      @SmartHomeMakers  2 роки тому

      Hi Trent, sorry about the issues you are having! Maybe something changed since this video was out. What error msg are you getting?

    • @TrentBumgarner
      @TrentBumgarner 2 роки тому

      @@SmartHomeMakers I do not see any error messages sir, just no sensors either.

    • @fxkalyan
      @fxkalyan 2 роки тому

      ​@@TrentBumgarner I am having the same Issue. I have installed grocy docker container on my Home server. Not as a home assistant addon.

  • @alexandretetrault
    @alexandretetrault 2 роки тому

    I was able to get the chores as sensors and to display the date/time of the last time the chore was made by slightly changing your code, but i cannot get the chore to get executed when i scan the NFC tag. The tag scans fine, but the automation runs and nothing happens. any ideas why? I am trying to track when was the last time the cat's litterbox (i call it the shitbox) was changed completely. We somehow forget to change it until we can't stand the smell anymore and realize we forgot to buy more litter

    • @destroy43
      @destroy43 Рік тому

      Did you ever figure this out? I'm stuck on this portion as well.

    • @DecouvrirLaTechnologie
      @DecouvrirLaTechnologie Рік тому

      @@destroy43 Yes, in the never version of Home assistant when you create an automation, you can call the "Grocy:Execute chore" service. you then need to specify chore ID and user id (in my case user id =0) and it just works. The automation trigger is the TAG attached to the litterbox. that way when you scan the tag it mark the task as executed.

    • @eaglemark13
      @eaglemark13 Рік тому

      @@DecouvrirLaTechnologie where can I find teh Grocy:Execute Chore in the automation screen

  • @CommittotheIndian
    @CommittotheIndian 3 роки тому

    I tried adding the automation via UI (HA 2021.4.4) but it will not accept ! in front of !secret. I was able to add it via automations.yaml but then all my automations in UI got a 500 error and I can't access them. Any ideas?

    • @CommittotheIndian
      @CommittotheIndian 3 роки тому

      Can not save call service: shell at all

    • @SmartHomeMakers
      @SmartHomeMakers  3 роки тому

      Hi Travis! Do you want to email me with you config? Did you check configuration first before restarting ? Error 500 means there is an error in your config files somewhere !

    • @CommittotheIndian
      @CommittotheIndian 3 роки тому

      @@SmartHomeMakers If I make the automation using the YAML, I get the error 500 when I try to open any automation in the UI (even though automation works). If I try to make the automation via the UI, I can't save the !secret reference. My current option (not really a solution) is to save the API in the automation.

    • @SmartHomeMakers
      @SmartHomeMakers  3 роки тому

      @@CommittotheIndian mmh, I have been having problems too with automations after the latest upgrade. I’m going to take a look at this tomorrow evening

    • @gunnarbjru9685
      @gunnarbjru9685 3 роки тому

      @@SmartHomeMakers I got the same problem now. I can't really understand why. Seems like the automations.yaml reports problems with automations containing time format "HH:MM"

  • @flipastock9969
    @flipastock9969 3 роки тому

    shopping list really should not be this complicated lol

    • @SmartHomeMakers
      @SmartHomeMakers  3 роки тому

      Ahaha, true! I'm obsessed in finding a way to automate groceries and reduce waste