RFIDReader
Smart HomeReads the number of a card or tag held close to it. The reader powers the card with radio waves and the card answers with its number.
How you reach it
Section titled “How you reach it”The RFIDReader class is reached through this attribute of home.
home.rfid
Section titled “home.rfid”Can be None.
All the attributes of home are in its table. Read Attributes that can be None to see when a part is None.
Methods
Section titled “Methods”read_card()
Section titled “read_card()”The number of the card held close to the reader, as hex text such as "3906f6945d", or None when there is none.
read_card() -> Optional[str]Used in examples: Doorbell
is_card_present()
Section titled “is_card_present()”True when a card or tag is held close to the reader.
is_card_present() -> bool