diff --git a/automations.yaml b/automations.yaml index e2a78c7..bbd0e02 100644 --- a/automations.yaml +++ b/automations.yaml @@ -108,45 +108,6 @@ entity_id: switch.tv_baenk domain: switch mode: single -- id: '1661628189392' - alias: TAG - Husavik - description: '' - use_blueprint: - path: tags/spotify.yaml - input: - tag_id: 4B-F8-7D-02 - url: https://open.spotify.com/track/6ofMKJjMpfDEb48JYEAgjX -- id: '1661665908214' - alias: TAG - Se Bubba - description: '' - use_blueprint: - path: tags/androidtv.yaml - input: - show_id: '81396994' - tag_id: A5-CE-BA-AD -- id: '1661668123790' - alias: TAG - Se Gurli Gris - description: '' - use_blueprint: - path: tags/androidtv.yaml - input: - show_id: '80025590' -- id: '1661785691824' - alias: TAG - Rick Roll - description: '' - use_blueprint: - path: tags/spotify.yaml - input: - url: https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT - tag_id: EB-36-0B-03 -- id: '1661785727144' - alias: TAG - Rollespil - description: '' - use_blueprint: - path: tags/spotify.yaml - input: - url: https://open.spotify.com/track/4llJfGpDZXud9PVCSUJflU - tag_id: 45-A9-47-E3 - id: '1667311111811' alias: Mikroovn låge test description: '' @@ -233,3 +194,11 @@ target: entity_id: input_boolean.mikroovn_lage_aben mode: single +- id: '1670355529090' + alias: TAG - Lemmingerne + description: '' + use_blueprint: + path: tags/androidtv.yaml + input: + tag_id: 45-A9-47-E3 + show_id: '81154227' diff --git a/blueprints/automation/tags/androidtv.yaml b/blueprints/automation/tags/androidtv.yaml index 0ff4f28..4b9b9b3 100644 --- a/blueprints/automation/tags/androidtv.yaml +++ b/blueprints/automation/tags/androidtv.yaml @@ -19,7 +19,7 @@ condition: [] variables: - show_id: !input show_id + show_id: !input show_id action: - service: androidtv.adb_command @@ -27,6 +27,6 @@ command: >- am start -n com.netflix.ninja/.MainActivity -a android.intent.action.VIEW -d http://www.netflix.com/watch/{{ show_id }} -e source 30 && input 23 && input 23 target: - entity_id: media_player.android_tv_10_0_1_252 + entity_id: media_player.android_tv_10_0_1_30 mode: single diff --git a/esphome/smartcard.yaml b/esphome/smartcard.yaml index f328df5..4f093ee 100644 --- a/esphome/smartcard.yaml +++ b/esphome/smartcard.yaml @@ -1,10 +1,7 @@ esphome: name: smartcard - -esp32: - board: nodemcu-32s - framework: - type: arduino + platform: ESP8266 + board: d1_mini # Enable logging logger: @@ -28,15 +25,17 @@ captive_portal: -# Example configuration entry -spi: - clk_pin: GPIO18 - mosi_pin: GPIO23 - miso_pin: GPIO19 - -rc522_spi: - cs_pin: GPIO5 +i2c: + scan: False + frequency: 400kHz +pn532_i2c: + id: pn532_board on_tag: then: - - homeassistant.tag_scanned: !lambda 'return x;' \ No newline at end of file + - homeassistant.tag_scanned: !lambda 'return x;' + + on_tag_removed: + then: + - homeassistant.event: + event: esphome.tag_removed \ No newline at end of file diff --git a/known_devices.yaml b/known_devices.yaml index f6dea61..78baff5 100644 --- a/known_devices.yaml +++ b/known_devices.yaml @@ -328,3 +328,17 @@ icon: picture: track: true + +b8_27_eb_a1_8f_a8: + name: b8_27_eb_a1_8f_a8 + mac: B8:27:EB:A1:8F:A8 + icon: + picture: + track: true + +30_83_98_ae_36_94: + name: 30_83_98_ae_36_94 + mac: 30:83:98:AE:36:94 + icon: + picture: + track: true