NFC Tags , What projects you using them for ? Sharing ideas

I have bayesian sensors that detect when each of us are in bed, and also use history stat sensors to tell how long we’ve been in bed each day :grinning:

1 Like

Hey there, I have one to turn on the lights to feed the dogs and that’s it, I even have a nfc tag reader with a nodemcu working but bo ideas so far

An NFC tag is stuck to the back of the TV remote control. It switches on two sockets and thus the TV, the receiver and the floor lamp if it is dark outside.
In the cars, there are also some stuck to the sun visors to open the garage doors.
I can think of a lot more but my wife will soon go crazy :-))

1 Like

I’m new to home assistant and the NFC tags arrive in 2 days… but I plan to:

  • have 3 tags on the washing machine for the 3 timeframes I typically use to (somehow) start an automation that broadcasts to the Sonos that the washing machine is done
  • have tags that when scanned add items to my shopping list
  • sends a message to the sonos to say dinner is ready through the house.

Basically try automate routines that are not already connected to HA

I have one inside my car. Scanning it toggles my garage door open or closed. By far the most useful NFC tag automation I’ve setup.

1 Like

I made an automatic reminder for my allergic wife. She needs to take 1 pill every 24 hours so I made an automation that sends an unremovable notification to her phone that tells her to take the pill and it can be removed only by scanning an nfc tag on the pill box.

2 Likes

thats not bad idea since its easier to do that then take out the remote lol

I’ve setup a few so far which I’m fond of:

Washing Machine:
2 tags for each of the commonly used programmes, plus one to tell HA I’ve emptied the machine.

These tell HA to start a timer for the length of the programme and notifies me when a load is done, and can remind me if I haven’t emptied it, on my dash I have:

I also have ones for the oven, so I have a selection of NFC tags for different timers, which set the oven timer running, and toggle ‘oven is on’ - this then tells me when I need to check the oven and when done scan a tag to end timers and set oven off.

And as mentioned before, also great for medication reminders - I get nagged repeatedly until I scan the NFC on my meds to clear it. :slight_smile:

1 Like

Do you feel like sharing the laundry automations you have made? I’m working on creating the same myself right now.

@ChaoticUnreal I haven’t got round to working out how to make it into a proper blueprint, but hopefully these screenshots will give some hints on how I do it.

Automation for when I scan NFC for a particular programme:

alias: "[Kitchen] Washing Machine Mixed Started"
description: ""
trigger:
  - platform: tag
    tag_id: xxxxxx
condition: []
action:
  - service: timer.start
    data:
      duration: "2:05:0"
    target:
      entity_id: timer.laundry_time_remaining
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.washing_machine_is_empty
  - service: counter.decrement
    data: {}
    target:
      entity_id: counter.remaining_laundry_pods
  - if:
      - condition: numeric_state
        entity_id: counter.remaining_laundry_pods
        below: 12
    then:
      - service: notify.alexa_media_kitchen
        data:
          message: Running low on laundry pods - order more now!
mode: single

Automation for when I scan the tag to say I’ve emptied the machine:

alias: "[Kitchen] Washing Machine Emptied"
description: ""
trigger:
  - platform: tag
    tag_id: xyyyyyyy
condition: []
action:
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.washing_machine_is_empty
  - service: timer.finish
    data: {}
    target:
      entity_id: timer.laundry_time_remaining
  - service: notify.alexa_media_kitchen
    data:
      message: Another load bites the dust
mode: single

Automation to tell me when the timer runs out and it should be finished:

alias: "[Kitchen/Reminder] Empty Washing Machine When Done"
description: ""
trigger:
  - platform: state
    entity_id:
      - timer.laundry_time_remaining
    attribute: duration
    to: "0"
condition: []
action:
  - service: notify.alexa_media_office_dot
    data:
      message: The washing machine has finished
mode: single

(Note, I know many use things like vibration sensors, or power-monitoring plugs [likely not a good idea for high-watt devices like a washing machine imo] to detect when it’s done instead of using a timer, but I don’t see a need to be that precise with this)

Automation for tapping to start tumbledryer:

alias: "[Kitchen] Tumble Dryer Start"
description: ""
trigger:
  - platform: tag
    tag_id: xzzzzz
condition: []
action:
  - if:
      - condition: numeric_state
        entity_id: counter.cycles_since_tank_last_emptied
        above: 2
    then:
      - service: notify.alexa_media_kitchen
        data:
          message: >-
            Empty the water tank first! I'll wait a minute before starting the
            timer!
      - delay:
          hours: 0
          minutes: 1
          seconds: 0
          milliseconds: 0
  - service: timer.start
    data:
      duration: "1:42:00"
    target:
      entity_id: timer.tumble_dryer_time_remaining
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.tumble_dryer_is_empty
  - service: counter.increment
    data: {}
    target:
      entity_id: counter.cycles_since_tank_last_emptied
mode: single

Hope that helps - If you manage to refine it, I’d love to see what you come up with too! :slight_smile:

Thanks should be perfect for what I need.

1 Like

Just starting with tags in HA. Question what happens if someone else e.g. the neighbor scans the tag?

It would just not do anything cause the tag basically sends a request to home assistant via tha app to trigger the automation. If they are not logged in the app to your home assistant assistant, it will just be ignored

Is there anything that would prevent someone from copying someone’s tag?

I guess it’s not really worse than giving people unique codes that could be shared (on purpose or accidentally).

Additionally you can specify in automation from which device_id it can be triggered, limiting it also for allowed users.

1 Like

Interesting, how will you do?

Here is sample automation limiting trigger to just one phone:

- alias: 'Toggle lights on NFC'
  initial_state: true
  trigger:
    platform: event
    event_type: tag_scanned
    event_data:
      tag_id: 93182830-f2c9-4557-9ffa-94ebce875b19
      device_id: E6AB6277-7D64-41FC-8A75-73B5F88240D2

  action:
    service: light.toggle
    entity_id: light.mirek_office

Key is device_id of device used for scanning the tag. You can get it from Developer Tools by listening to tag_scanned service and checking output while scanning tag with designated phone.

2 Likes