Skip to content

Instantly share code, notes, and snippets.

View Pouzor's full-sized avatar
💦
Under the rain

Remy Pouzor

💦
Under the rain
View GitHub Profile
@Pouzor
Pouzor / hass.js
Created August 17, 2022 12:42 — forked from m33x/hass.js
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
<Node id="16" name="" location="" basic="4" generic="16" specific="5" roletype="7" devicetype="3840" nodetype="0" type="Siren" listening="false" frequentListening="true" beaming="true" routing="true" max_baud_rate="40000" version="4" query_stage="Complete">
<Manufacturer id="131" name="Zipato">
<Product type="3" id="1083" name="Unknown: type=0003, id=1083" />
</Manufacturer>
<CommandClasses>
<CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" request_flags="4" mapping="37">
<Instance index="1" />
</CommandClass>
<CommandClass id="37" name="COMMAND_CLASS_SWITCH_BINARY" version="1" request_flags="4" innif="true">
<Instance index="1" />

Keybase proof

I hereby claim:

  • I am pouzor on github.
  • I am pouzor (https://keybase.io/pouzor) on keybase.
  • I have a public key whose fingerprint is 93A2 4702 C7CE C841 194C 6092 D67F 9775 23E4 84D7

To claim this, I am signing this object: