   document.getElementById('homekit').addEventListener('click', async ev => {
        ev.target.nextElementSibling.style.display = 'block';
        await reloadHomeKit();
    });

    document.getElementById('homekit-table').addEventListener('click', ev => {
        if (ev.target.innerText === 'pair') {
            const form = document.querySelector('#homekit-pair');
            const row = ev.target.closest('tr');
            form.children[0].value = row.children[0].innerText;
            form.children[1]