Skip to content

Instantly share code, notes, and snippets.

@purpleidea
Forked from jordansissel/output.md
Created October 18, 2021 05:46
Show Gist options
  • Save purpleidea/c0dfa36141a170092b7bf6fb8b87e1b5 to your computer and use it in GitHub Desktop.
Save purpleidea/c0dfa36141a170092b7bf6fb8b87e1b5 to your computer and use it in GitHub Desktop.

Revisions

  1. @jordansissel jordansissel revised this gist Oct 18, 2021. 1 changed file with 16 additions and 16 deletions.
    32 changes: 16 additions & 16 deletions output.md
    Original file line number Diff line number Diff line change
    @@ -5,21 +5,21 @@
    ## Find "climate" support, then look for components with iot_class matching "local"

    ```
    % grep -l climate */const.py | awk -F/ '{print $1}' | xargs -n1 sh -c 'jq .iot_class $1/manifest.json | grep -q local && echo "* https://www.home-assistant.io/integrations/coolmaster/$1"' -
    % grep -l climate */const.py | awk -F/ '{print $1}' | xargs -n1 sh -c 'jq .iot_class $1/manifest.json | grep -q local && echo "* https://www.home-assistant.io/integrations/$1"' -
    ```

    * https://www.home-assistant.io/integrations/coolmaster/coolmaster
    * https://www.home-assistant.io/integrations/coolmaster/deconz
    * https://www.home-assistant.io/integrations/coolmaster/devolo_home_control
    * https://www.home-assistant.io/integrations/coolmaster/fritzbox
    * https://www.home-assistant.io/integrations/coolmaster/homekit_controller
    * https://www.home-assistant.io/integrations/coolmaster/homematic
    * https://www.home-assistant.io/integrations/coolmaster/insteon
    * https://www.home-assistant.io/integrations/coolmaster/isy994
    * https://www.home-assistant.io/integrations/coolmaster/knx
    * https://www.home-assistant.io/integrations/coolmaster/lcn
    * https://www.home-assistant.io/integrations/coolmaster/modbus
    * https://www.home-assistant.io/integrations/coolmaster/mysensors
    * https://www.home-assistant.io/integrations/coolmaster/opentherm_gw
    * https://www.home-assistant.io/integrations/coolmaster/ozw
    * https://www.home-assistant.io/integrations/coolmaster/plugwise
    * https://www.home-assistant.io/integrations/coolmaster
    * https://www.home-assistant.io/integrations/deconz
    * https://www.home-assistant.io/integrations/devolo_home_control
    * https://www.home-assistant.io/integrations/fritzbox
    * https://www.home-assistant.io/integrations/homekit_controller
    * https://www.home-assistant.io/integrations/homematic
    * https://www.home-assistant.io/integrations/insteon
    * https://www.home-assistant.io/integrations/isy994
    * https://www.home-assistant.io/integrations/knx
    * https://www.home-assistant.io/integrations/lcn
    * https://www.home-assistant.io/integrations/modbus
    * https://www.home-assistant.io/integrations/mysensors
    * https://www.home-assistant.io/integrations/opentherm_gw
    * https://www.home-assistant.io/integrations/ozw
    * https://www.home-assistant.io/integrations/plugwise
  2. @jordansissel jordansissel revised this gist Oct 18, 2021. 1 changed file with 16 additions and 18 deletions.
    34 changes: 16 additions & 18 deletions output.md
    Original file line number Diff line number Diff line change
    @@ -5,23 +5,21 @@
    ## Find "climate" support, then look for components with iot_class matching "local"

    ```
    % grep -l climate */const.py | awk -F/ '{print $1}' | xargs -n1 sh -c 'jq .iot_class $1/manifest.json | grep -q local && echo "https://www.home-assistant.io/integrations/coolmaster/$1"' -
    % grep -l climate */const.py | awk -F/ '{print $1}' | xargs -n1 sh -c 'jq .iot_class $1/manifest.json | grep -q local && echo "* https://www.home-assistant.io/integrations/coolmaster/$1"' -
    ```

    Results:

    https://www.home-assistant.io/integrations/coolmaster/coolmaster
    https://www.home-assistant.io/integrations/coolmaster/deconz
    https://www.home-assistant.io/integrations/coolmaster/devolo_home_control
    https://www.home-assistant.io/integrations/coolmaster/fritzbox
    https://www.home-assistant.io/integrations/coolmaster/homekit_controller
    https://www.home-assistant.io/integrations/coolmaster/homematic
    https://www.home-assistant.io/integrations/coolmaster/insteon
    https://www.home-assistant.io/integrations/coolmaster/isy994
    https://www.home-assistant.io/integrations/coolmaster/knx
    https://www.home-assistant.io/integrations/coolmaster/lcn
    https://www.home-assistant.io/integrations/coolmaster/modbus
    https://www.home-assistant.io/integrations/coolmaster/mysensors
    https://www.home-assistant.io/integrations/coolmaster/opentherm_gw
    https://www.home-assistant.io/integrations/coolmaster/ozw
    https://www.home-assistant.io/integrations/coolmaster/plugwise
    * https://www.home-assistant.io/integrations/coolmaster/coolmaster
    * https://www.home-assistant.io/integrations/coolmaster/deconz
    * https://www.home-assistant.io/integrations/coolmaster/devolo_home_control
    * https://www.home-assistant.io/integrations/coolmaster/fritzbox
    * https://www.home-assistant.io/integrations/coolmaster/homekit_controller
    * https://www.home-assistant.io/integrations/coolmaster/homematic
    * https://www.home-assistant.io/integrations/coolmaster/insteon
    * https://www.home-assistant.io/integrations/coolmaster/isy994
    * https://www.home-assistant.io/integrations/coolmaster/knx
    * https://www.home-assistant.io/integrations/coolmaster/lcn
    * https://www.home-assistant.io/integrations/coolmaster/modbus
    * https://www.home-assistant.io/integrations/coolmaster/mysensors
    * https://www.home-assistant.io/integrations/coolmaster/opentherm_gw
    * https://www.home-assistant.io/integrations/coolmaster/ozw
    * https://www.home-assistant.io/integrations/coolmaster/plugwise
  3. @jordansissel jordansissel created this gist Oct 18, 2021.
    27 changes: 27 additions & 0 deletions output.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    ```
    % git clone --depth 1 https://github.com/home-assistant/core
    ```

    ## Find "climate" support, then look for components with iot_class matching "local"

    ```
    % grep -l climate */const.py | awk -F/ '{print $1}' | xargs -n1 sh -c 'jq .iot_class $1/manifest.json | grep -q local && echo "https://www.home-assistant.io/integrations/coolmaster/$1"' -
    ```

    Results:

    https://www.home-assistant.io/integrations/coolmaster/coolmaster
    https://www.home-assistant.io/integrations/coolmaster/deconz
    https://www.home-assistant.io/integrations/coolmaster/devolo_home_control
    https://www.home-assistant.io/integrations/coolmaster/fritzbox
    https://www.home-assistant.io/integrations/coolmaster/homekit_controller
    https://www.home-assistant.io/integrations/coolmaster/homematic
    https://www.home-assistant.io/integrations/coolmaster/insteon
    https://www.home-assistant.io/integrations/coolmaster/isy994
    https://www.home-assistant.io/integrations/coolmaster/knx
    https://www.home-assistant.io/integrations/coolmaster/lcn
    https://www.home-assistant.io/integrations/coolmaster/modbus
    https://www.home-assistant.io/integrations/coolmaster/mysensors
    https://www.home-assistant.io/integrations/coolmaster/opentherm_gw
    https://www.home-assistant.io/integrations/coolmaster/ozw
    https://www.home-assistant.io/integrations/coolmaster/plugwise