Skip to content

Instantly share code, notes, and snippets.

@rkaramandi
rkaramandi / client-certificate-hass-nginx.md
Last active August 28, 2022 09:49
Client Certificate Generation with HomeAssistant and NGINX

Create Client Certificates with NGINX for use with HomeAssistant

0. Prerequisite: Install OpenSSL

Before we start, we want to make sure you have OpenSSL installed. You can check by running the command:

$ openssl version

If that returns you a version, you're good. If not, then install OpenSSL using

@rfletcher
rfletcher / app.js
Last active June 28, 2022 13:55
A simple bridge between iMessage and Home Assistant's conversation component
const HomeAssistant = require( 'homeassistant' );
const Pino = require( 'pino' );
const config = require( 'config' );
const hass = new HomeAssistant( config.get( 'home_assistant' ) );
const imessage = require( 'osa-imessage' );
const logger = Pino();
// TODO package this better
const bridge = {