Skip to content

Instantly share code, notes, and snippets.

View akomarovsky's full-sized avatar

Alex Komarovsky akomarovsky

View GitHub Profile
@akomarovsky
akomarovsky / nisko.js
Created March 13, 2024 08:28
Nisko Water Heater Controller zigbee2mqtt convertor
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const e = exposes.presets;
const definition = {
zigbeeModel: ['TS0601'],
model: 'TS0601',
vendor: '_TZE204_apiu8k13',
description: 'Smart water heater controller',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],

Salesforce OAuth 2.0 JWT Bearer Token Flow Walk-Through

This document will walk you through how to create or configure a Salesforce application for use with JWT authentication. These configuration steps and the example code works as of Salesforce API version 42.0.

Prerequisites

Create an RSA x509 private key/certification pair