Zigbee2MQTT Extensions

Overview

Zigbee2MQTT Extensions

What are extensions?

Read this article

automations-extension.js

Allows you to set up simple automations directly in z2m

Example (add this into your z2m configuration.yaml):

automations:
  automation_by_action:
    trigger:
      platorm: action
      entity: Test Switch
      action: single
    action:
      entity: Test Plug
      service: toggle

  automation_by_state:
    trigger:
      platform: state
      entity: Test Plug
      state: ON
    action:
      entity: Test Plug 2
      service: turn_on

More complex example:

automations:
  automation_by_action:
    trigger:
      platorm: action
      entity:
      - Test Switch
      - Test Button
      action:
      - single
      - double
      - hold
    action:
    - entity: Test Plug
      service: toggle
    - entity: Test Plug 2
      service: toggle

  automation_by_state:
    trigger:
      platform: state
      entity:
      - Test Plug
      - Test Plug 2
      state:
      - ON
      - OFF
    action:
    - entity: Test Light 1
      service: turn_on
    - entity: Test Light 2
      service: turn_off

Triggers

Item Type Description Required
platform string action or state True
entity string or string[] Entity name True
action string or string[] single, double, single_left, single_right and others device-specific Only if platform == action
state string or string[] ON, OFF and maybe others Only if platform == state

Actions

Item Type Description Required
entity string Entity name True
service string turn_on, turn_off or toggle True

Automation can have multiple actions

You might also like...

Collection of Rowy's templates for cloud functions cod snippets - including for derivative, action columns and extensions.

Collection of Rowy's templates for cloud functions cod snippets - including for derivative, action columns and extensions.

Rowy Templates Collection of Rowy's backend templates and code snippets for cloud functions - including for derivative, action columns and extensions.

Nov 16, 2022

This is a plugin for Obsidian (https://obsidian.md). Can open document with `.html` and `.htm` file extensions.

Obsidian HTML reader Plugin This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions. Obsidian HTML

Dec 27, 2022

This extensions adds blocks to help you create your own carnival games in MakeCode Arcade using throwable balls, extra timer functions, and extra game-over options.

Usage This extensions adds blocks to help you create your own carnival games in MakeCode Arcade using throwable balls, extra timer functions, and extr

Nov 16, 2022

An obsidian plugin allowing you to register and view different file extensions in a modular manner.

Obsidian Custom File Extensions Plugin This is a plugin for Obsidian to allow associaton of file type extensions with different in-app views via setti

Dec 6, 2022

This extensions will prompt you to remove any other extensions that we found as being broken and unmaintained.

octarine vscode extension This extensions will prompt you to remove any other extensions that we found as being broken and unmaintained. We do expect

May 27, 2022

Bookmarklet exploit that can force-disable extensions installed on Chrome. Also has a very fancy GUI to manage all extensions!

Bookmarklet exploit that can force-disable extensions installed on Chrome. Also has a very fancy GUI to manage all extensions!

ext remover Bookmarklet exploit that can force-disable any extension installed on Google Chrome Instructions Here are the instructions to using this e

Jan 6, 2023

WebAssembly SQLite with experimental support for browser storage extensions

wa-sqlite This is a WebAssembly build of SQLite with experimental support for writing SQLite virtual filesystems and virtual table modules completely

Jan 1, 2023

A collection of Firebase Extensions built by Invertase.

A collection of Firebase Extensions built by Invertase.

Firebase Extensions A collection of Firebase Extensions built by Invertase. New to Extensions? You can learn more at the Firebase Extensions product p

Jan 1, 2023

A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.

A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.

vscode-powertools A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code. ⚠️ ⚠️ ⚠️ NOTICE: If you have

Nov 24, 2022

Reactive Extensions for Angular

Reactive Extensions for Angular

RxAngular offers a comprehensive toolset for handling fully reactive Angular applications with the main focus on runtime performance and template rendering.

Jan 5, 2023

Vite-plugin-web-extension - A vite plugin for generating cross browser platform, ES module based web extensions.

vite-plugin-web-extension A vite plugin for generating cross browser platform, ES module based web extensions. Features Manifest V2 & V3 Support Compl

Dec 31, 2022

Bypass YouTube ads! (Web Extensions)

Bypass YouTube ads! (Web Extensions)

bytads Bypass YouTube ads! Supported YouTube Advertising Formats Skippable video ads, Overlay ads! Other ad formats will be supported soon. Usage Inst

Apr 3, 2022

PHEX, but it shows up as Google Docs in the extensions. Useful if you're using it in class.

PHEX, but it shows up as Google Docs in the extensions. Useful if you're using it in class.

PHEX, but it shows up as Google Docs in the extensions. Useful if you're using it in class.

Oct 28, 2022

Chrome Extensions are something which we use very frequently in our day-to-day life for example Grammarly

Chrome-Extension Chrome Extensions are something which we use very frequently in our day-to-day life for example Grammarly, In this project similarly,

Dec 14, 2022

This is a repo for small, useful scripts and extensions

WinDbgCookbook This is a repo for small, useful scripts, extensions, and debugger data model "dx" queries. Feel free to add your own scripts or update

Dec 19, 2022

Official companion browser extensions for Kagi Search (Chrome, Firefox)

Kagi Search Extension This contains the source for the Kagi Search extension for Firefox and Chrome. Get it for your browser here: Chrome Firefox Cont

Nov 25, 2022

Check how trackable you are based on your browser extensions.

Extension Fingerprints Check it out here: https://z0ccc.github.io/extension-fingerprints Chrome extensions can be detected by fetching their web acces

Jan 4, 2023

Simplify gnome-extensions development

Simplify gnome-extensions development

GISP GISP Is a Starter Pack About GISP is a project to simplify 🙏 gnome-extensions development. There're hundrends (maybe thousands?) of javascript d

Jul 18, 2022

Making VSCode extensions ON-THE-FLY, without the ceremony of creating a new node project!

Making VSCode extensions ON-THE-FLY, without the ceremony of creating a new node project!

easy-extensibility Extend VSCode without the ceremony of making a full extension! Just write your code anywhere and it'll be part of VSCode! Features

Nov 28, 2022
Comments
  • How do you tie a trigger to an action?

    How do you tie a trigger to an action?

    First, this project is neat. Thanks for putting it together.

    What I'm trying to do: Tie a contact sensor state to a bulb.

    contact: false = bulb on contact: true = bulb off

    What I've tried so far:

    automations:
      automation_by_state:
        trigger:
          platform: state
          entity: pantry_door_switch
          attribute: contact
          state: false
        action:
          - entity: pantry_bulb
            service: turn_on
          - entity: pantry_bulb
            service: turn_off
    

    This is toggling the bulb on each open. I'm having difficulty understanding how to add a trigger for state: true and tie it to the 2nd action. Any guidance would be appreciated!

    opened by mkaatman 5
  • How to add more than 1 automation_by_action to configuration.yaml

    How to add more than 1 automation_by_action to configuration.yaml

    Great extension! I´d like to add more than one automation_by_action to configuration.yaml, but it doesn´t work. It always ends up with duplicate mapping keys and z2m won´t start.

    Either it´s a bug or I´m doing something wrong.

    opened by rikmueller 2
  • Предложение вынести автоматизации в automations.yaml

    Предложение вынести автоматизации в automations.yaml

    Если это возможно конечно... Вынести автоматизации в automations.yaml В файле configuration.yaml указать что то типа automations: automations.yaml p.s. Или просто парсить отдельный файл automations.yaml без указания его в основном configuration.yaml

    opened by DaN66O 1
  • Action on devices with multiple endpoints

    Action on devices with multiple endpoints

    I have smart switch module (Moes MS-104BZ) with two endpoints:

    The state looks like this:

    {
        "last_seen": "2022-04-12T20:33:16.074Z",
        "linkquality": 83,
        "power_on_behavior": "previous",
        "state_l1": "ON",
        "state_l2": "ON"
    }
    

    It seems I cannot toggle these, I suggest there should be an "endpoint" attribute in the action, defaulting to "state".

    opened by Cytrian 1
Owner
Nikolay Vasilchuk
Nikolay Vasilchuk
Bookmarklet exploit that can force-disable extensions installed on Chrome. Also has a very fancy GUI to manage all extensions!

ext remover Bookmarklet exploit that can force-disable any extension installed on Google Chrome Instructions Here are the instructions to using this e

Echo 124 Jan 6, 2023
Bypass YouTube ads! (Web Extensions)

bytads Bypass YouTube ads! Supported YouTube Advertising Formats Skippable video ads, Overlay ads! Other ad formats will be supported soon. Usage Inst

Binit Ghimire 9 Apr 3, 2022
PHEX, but it shows up as Google Docs in the extensions. Useful if you're using it in class.

PHEX, but it shows up as Google Docs in the extensions. Useful if you're using it in class.

gemsvidø 3 Oct 28, 2022
Chrome Extensions are something which we use very frequently in our day-to-day life for example Grammarly

Chrome-Extension Chrome Extensions are something which we use very frequently in our day-to-day life for example Grammarly, In this project similarly,

Harshita sharma 97 Dec 14, 2022
This is a repo for small, useful scripts and extensions

WinDbgCookbook This is a repo for small, useful scripts, extensions, and debugger data model "dx" queries. Feel free to add your own scripts or update

Tim Misiak 170 Dec 19, 2022
Official companion browser extensions for Kagi Search (Chrome, Firefox)

Kagi Search Extension This contains the source for the Kagi Search extension for Firefox and Chrome. Get it for your browser here: Chrome Firefox Cont

Kagi Search 18 Nov 25, 2022
Check how trackable you are based on your browser extensions.

Extension Fingerprints Check it out here: https://z0ccc.github.io/extension-fingerprints Chrome extensions can be detected by fetching their web acces

z0ccc 397 Jan 4, 2023
Making VSCode extensions ON-THE-FLY, without the ceremony of creating a new node project!

easy-extensibility Extend VSCode without the ceremony of making a full extension! Just write your code anywhere and it'll be part of VSCode! Features

Musa Al-hassy 13 Nov 28, 2022
The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling rapid development of iofod extensions through the SDK.

iofod-sdk English | 简体中文 The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling

iofod, Inc. 47 Oct 17, 2022
Pure CSS icons for popular file extensions

CSS file icons Pure CSS file icons for popular extensions lightweight css library Icons Demo Usage Include css-file-icons.css to html or install via n

colorswall 307 Dec 6, 2022