[Custom Component] tedee Doorlock

Maybe :man_shrugging: Itā€™s not on my prio list, currently working on bringing this to core. Iā€™m also not sure how that would give meaningful information without flooding the API with requests.

Lokal Api on the Bridge is available.

Itā€™s available now for Public. Just turn on ā€œBeta-Testerā€ in the user settings in the tedee app. Then you can see a new menu called ā€œAPIā€ in the Bridge Settings

Local API is supported in the latest pre-release. Webhooks are not supported yet (donā€™t set the Home Assistant Access Token), waiting on a firmware update from tedee.

1 Like

I know, not related to this custom component, but most Tedee users will read this/here: Anybody else having trouble with the homekit controller integration? I was not able to control the locks anymore. Trying to readd them with the ā€œoldā€ homekit code was not possible. But after deleting them homeassistant homekit bridge showed me new codes. With these I was able to add the locks again, but they become unavailable right away.

Okay, I think I figured out why the locks became unavailable in November:

  1. Having a normal door lock and an extra security bar for example. Others have two doors and want to open both at the same time. It is already a pain in the *** that Tedee Keypad does not support to unlock two devices at onceā€¦
1 Like

Is there a perfect way to integrate this Homekit? IĀ“m using Hoemkit Bridge to expose the entities to Homekit and it works. But when I for example put the lock to the lock screen of my iPhone as an shortcut, I canĀ“t unlock directly. It simply forwards me to the Home-App. When I used the integration with Tedee for HomeBridge, this did work directly and showed me the unlock screen for an unlock entity.

Best regards,
Marc Suhle

Hello can You show example of config for local api support?

Make sure youā€™re on 2024.2.0 or higher and the HACS component is NOT installed. Then simply click ā€žAdd integration ā€ž

1 Like

Thank You. Do You have new custom component support local api?

ok, i rewrite code to work with local API:

entity: lock.drzwi_zewnetrzne
type: custom:button-card
card_size: 0.5
name: |
  [[[
    var state = entity.state;
    if (state === "unlocked")
      return "Otwarte";
    if (state === "locked")
      return "Zamknięte";
    if (state === "locking")
      return "Trwa zamykanie";
    if (state === "unlocking")
      return "Trwa otwieranie";
    // Jeśli stan nie jest rozpoznawalny, zwrĆ³Ä‡ stan dokładnie taki, jak odczytany
    return state;
  ]]]
state:
  - value: locked
    color: green
    icon: mdi:lock
  - value: unlocked
    color: orange
    icon: mdi:lock-open
styles:
  card:
    - height: 140px
    - width: 250px
  custom_fields:
    bat:
      - position: absolute
      - left: 70%
      - top: 10%
      - height: 20px
      - width: 60px
      - font-size: 12px
      - line-height: 20px
custom_fields:
  bat: |
    [[[
      var batteryLevel = states['sensor.drzwi_zewnetrzne_bateria'].state;
      if (batteryLevel > 60)
        return `<ha-icon
          icon="mdi:battery"
          style="width: 24px; height: 24px; color: green;">
          </ha-icon><span>${batteryLevel}%</span>`;
      if (batteryLevel >= 30)
        return `<ha-icon
          icon="mdi:battery-50"
          style="width: 24px; height: 24px; color: orange;">
          </ha-icon><span>${batteryLevel}%</span>`;
      if (batteryLevel < 30)
        return `<ha-icon
          icon="mdi:battery-30"
          style="width: 24px; height: 24px; color: red;">
          </ha-icon><span>${batteryLevel}%</span>`;
    ]]]
tap_action:
  action: toggle
double_tap_action:
  action: call-service
  service: lock.open
  service_data:
    entity_id: lock.drzwi_zewnetrzne

Not sure what youā€™re trying to achieve here, but you could probably do the same with tile cards

Iā€™ve go a Tedee GO and I am trying to integrate it into Home Assistant using the HomeKit Controller via bluetooth in order to avoid using the bridge. Can someone confirm that this will or wonā€™t work? I donā€™t even have the option to add the lock to Homekit in the App settings.

Tedee GO does not have Homekit integration, only PRO does. It will not work.

Hello everyone,

I am still quite new to Home Assistant and am currently trying out the Area Cards for the dashboard. So far, integrating and configuring the cards hasnā€™t been a problem. However, Iā€™m now struggling with the integration of Tedee Smart Locks. The locks are integrated via the Tedee integration and can be controlled without any issues. The devices are assigned to the correct rooms and are displayed with an entity Lock.XYZ. However, there is no option to display the locks on the Area Cards.

Has anyone else had this problem and can help me out?

Any other option how to use Tedee Go in HomeAssistant without bridge?

I already installed the tedee integration. But how can I have a button for when I want unlock press it, unlock and pull spring,and when I want locked, I simple press the same button. Now I canĀ“t activate the pull pring when I unlock the door.