-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
88dc28f
commit ed1afda
Showing
15 changed files
with
77 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
##### | ||
# Checks if MQTT is open or closed | ||
# If port is closed this is trouble for all services that work with MQTT | ||
##### | ||
|
||
binary_sensor: | ||
# platform: command_line | ||
name: MQTT status | ||
unique_id: 44b85908-2738-4b54-8ded-fb6314c06c5b | ||
command: /bin/bash -c "(echo > /dev/tcp/192.168.1.35/1883) > /dev/null 2>&1 && echo open || echo closed" | ||
payload_off: "closed" | ||
payload_on: "open" | ||
scan_interval: 300 | ||
device_class: 'problem' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
##### | ||
# Counter that tracks total number of lines in YAML | ||
# | ||
##### | ||
|
||
sensor: | ||
# platform: command_line | ||
name: "Number of Lines of Code (YAML)" | ||
command: " find /config/ -name '*.yaml' | xargs cat | wc -l" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
##### | ||
# This sensor checks if Storagenode from Storj is responding | ||
# to HTTP request on port | ||
##### | ||
|
||
sensor: | ||
# platform: command_line | ||
command: curl -I http://192.168.1.35:14002/ 2>/dev/null | head -n 1 | cut -d$' ' -f2 | ||
name: Storj Node status | ||
scan_interval: 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
##### | ||
# Sensor that checks if there are updates available for Supervisor or Add-On's | ||
# https://community.home-assistant.io/t/update-notifications-core-hacs-supervisor-and-addons/182295 | ||
##### | ||
|
||
sensor: | ||
#platform: command_line | ||
name: Supervisor updates | ||
command: 'curl http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"newest_version":.data.version_latest,"current_version":.data.version,"update_available":.data.update_available,"addons":[.data.addons[] | select(.update_available)]}''' | ||
value_template: "{{ value_json.addons | length }}" | ||
unit_of_measurement: pending update(s) | ||
json_attributes: | ||
- update_available | ||
- newest_version | ||
- current_version | ||
- addons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
##### | ||
# SwitchBot Humidifier - Switch | ||
# Creates switch for ON/OFF functionality | ||
# | ||
# There is option to use this to pull state | ||
# but haven't implemented thatyet | ||
##### | ||
|
||
switch: | ||
name: Swotchbot Humidifier | ||
unique_id: 6c2228fb-d4bd-43ff-80e8-e7f496bd4691 | ||
value_template: "{{ states('binary_sensor.switchbot_humidifier_power') }}" | ||
command_on: !secret sbot_hum_on | ||
command_off: !secret sbot_hum_off | ||
# command_state: !secret sbot_hum_state | ||
# friendly_name: Humidifier |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
##### | ||
# Command Line was changed in 2023.6 | ||
# | ||
# This loads up my binary_sensors, sensors and switches from | ||
# command_line integration | ||
# | ||
# https://www.home-assistant.io/integrations/command_line/ | ||
##### | ||
|
||
command_line: !include_dir_merge_list ../entities/command_line |