diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b442a1a38a..2ad207a3d84 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: - name: Check out files from GitHub uses: actions/checkout@v3.0.0 - name: Setting up Node.js - uses: actions/setup-node@v3.0.0 + uses: actions/setup-node@v3.1.0 with: node-version: 16.x cache: "npm" @@ -27,7 +27,7 @@ jobs: - name: Check out files from GitHub uses: actions/checkout@v3.0.0 - name: Setting up Node.js - uses: actions/setup-node@v3.0.0 + uses: actions/setup-node@v3.1.0 with: node-version: 16.x cache: "npm" diff --git a/package-lock.json b/package-lock.json index 7eec7acd01b..3e770565c4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4205,9 +4205,9 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "node_modules/misspellings": { @@ -8990,9 +8990,9 @@ } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "misspellings": { diff --git a/source/_integrations/octoprint.markdown b/source/_integrations/octoprint.markdown index bdc9138a6c1..6215032f81c 100644 --- a/source/_integrations/octoprint.markdown +++ b/source/_integrations/octoprint.markdown @@ -78,15 +78,9 @@ Supported sensors: ## Camera -If the OctoPrint host is equipped with a web camera it is possible to add this as well. +If the OctoPrint host is equipped with a web camera it is possible to add this as well using the [`MJPEG IP Camera`](/integrations/mjpeg) integration. Use `http://YOUR_OCTOPRINT_HOST_IP/webcam/?action=stream` for the MJPEG URL and `http://YOUR_OCTOPRINT_HOST_IP/webcam/?action=snapshot` as the still image URL. -```yaml -camera: - - platform: mjpeg - name: OctoPrint - still_image_url: http://YOUR_OCTOPRINT_HOST_IP/webcam/?action=snapshot - mjpeg_url: http://YOUR_OCTOPRINT_HOST_IP/webcam/?action=stream -``` +{% my config_flow_start badge domain="mjpeg" %} ## Buttons diff --git a/source/_integrations/workday.markdown b/source/_integrations/workday.markdown index df8f18da78c..79f90e3dafb 100644 --- a/source/_integrations/workday.markdown +++ b/source/_integrations/workday.markdown @@ -15,12 +15,14 @@ ha_platforms: ha_integration_type: integration --- -The `workday` binary sensor indicates, whether the current day is a workday or not. It allows specifying, which days of the week will count as workdays and also +The `workday` binary sensor indicates whether the current day is a workday or not. It allows specifying which days of the week will count as workdays and also uses the Python module [holidays](https://pypi.python.org/pypi/holidays) to incorporate information about region-specific public holidays. +This can be used to make automations that act differently on weekdays vs weekends. For example, you could make your bedroom lights turn on (gently) at 7 in the morning if it is a weekday, but wait until 11 if it is a weekend day. + ## Setup -Check the [country list](https://github.com/dr-prodigy/python-holidays#available-countries) for available province. +Check the [country list](https://github.com/dr-prodigy/python-holidays#available-countries) for available provinces (and other subdivisions, like states and territories) for each country. ## Configuration To enable the `workday` sensor in your installation, add the following to your `configuration.yaml` file: @@ -82,13 +84,13 @@ Otherwise, the value is evaluated as `false`. If you use the sensor for Canada (`CA`) with Ontario (`ON`) as `province:` then you need to wrap `ON` in quotes. Otherwise, the value is evaluated as `true` (check the YAML documentation for further details) and the sensor will not work. -One other thing to watch is how the `holiday` keyword is used. Your first instinct might be to add it to the `exclude` configuration, thinking that it means to skip the holidays. Actually it means to exclude the days in the holidays’ list from the workdays. So when you exclude `holiday` and a workday falls on that day, then that workday is excluded. Meaning the sensor will be off. If you want the workday flagged without regarding holidays, make sure that there is something in your `Excludes` configuration other than `holiday`. +One other thing to watch is how the `holiday` keyword is used. Your first instinct might be to add it to the `exclude` configuration, thinking that it means to skip the holidays. Actually it means to exclude the days in the holidays list from the workdays. So, when you exclude `holiday` and a workday falls on that day, then that workday is excluded, and the sensor will be **off**. If you want every workday flagged with no regard to holidays, make sure that there is something in your `Excludes` configuration _other_ than `holiday`. ## Full examples -This example excludes Saturdays and Sundays but not holidays. Two custom holidays are added. +This example excludes Saturdays and Sundays but not pre-configured holidays. Two custom holidays are added. ```yaml # Example 1 configuration.yaml entry @@ -103,7 +105,7 @@ binary_sensor: ``` This example excludes Saturdays, Sundays and holidays. One custom holiday is added. -The date February 24th, 2020 is a Monday but will be excluded because it was added to the `add_holidays` configuration. +The date February 24th, 2020 is a Monday, but will be excluded (the sensor will be **off**) because it was added to the `add_holidays` configuration. ```yaml # Example 2 configuration.yaml entry