Skip to content

Instantly share code, notes, and snippets.

View zamartz's full-sized avatar
🤑
New Project Started!

Zachary A. Martz zamartz

🤑
New Project Started!
View GitHub Profile
# HA Dashboard Kiosk - Counter helpers
# Add to configuration.yaml: homeassistant: packages: !include_dir_named packages
# Or include: packages: !include_dir_merge_named packages
# Place this file in config/packages/ (create the folder if needed)
counter:
ha_idle_start_wh:
name: Kiosk Idle Start
initial: 0
step: 1
@zamartz
zamartz / ha_dashboard_kiosk_webhook.yaml
Last active February 23, 2026 20:33
ha_dashboard_kiosk_webhook.yaml
blueprint:
name: HA Dashboard Kiosk Webhook
description: |
React to kiosk events (idle, fade, admin, error) from HA Dashboard Kiosk app.
Works with BOTH REST API and Webhook. REST = app sends to /api/events/ha_dashboard_kiosk.
Webhook = app sends to /api/webhook/ha-dashboard-kiosk-wh (enable "Use webhook" in app).
Increments counters, fires kiosk_event_received, optionally notifies.
Requires counters - create via Settings → Helpers or use the package below.
domain: automation
input:
@zamartz
zamartz / Grid.php
Created November 27, 2014 04:27
Ultimate Magento Admin Order Grid
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
@zamartz
zamartz / iAdd2Home
Created April 20, 2014 15:03
This creates a pop-up Callout that asks the user to add the current website to their iPhone home screen. It also allows the user the "x" out the callout and set a number of days in a cookie to keep the callout hidden so it in not persistent. Live with more Explanation = http://zamartz.com/Examples/iadd2home/
<head>
<!-- MOBILE SETTINGS -->
<meta name="viewport" content="width = device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<!-- END MOBILE SETTINGS -->
<!-- Javascript Libraries -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.githubusercontent.com/carhartl/jquery-cookie/master/jquery.cookie.js"></script>