Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxjoehnk/desktop2mqtt
A daemon to integrate any pc into your home automation system.
https://github.com/maxjoehnk/desktop2mqtt
home-assistant mqtt
Last synced: 2 months ago
JSON representation
A daemon to integrate any pc into your home automation system.
- Host: GitHub
- URL: https://github.com/maxjoehnk/desktop2mqtt
- Owner: maxjoehnk
- License: mit
- Created: 2020-12-10T07:37:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T11:08:35.000Z (2 months ago)
- Last Synced: 2024-10-30T12:20:20.808Z (2 months ago)
- Topics: home-assistant, mqtt
- Language: Rust
- Homepage:
- Size: 86.9 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# desktop2mqtt
A daemon to integrate any pc into your home automation system.
Primarily intended for [Home Assistant](https://home-assistant.io).## Configuration
Place a `config.yml` file in your working directory with the following contents:
```yaml
mqtt:
url: mqtt://
username: # optional
password: # optional
hass:
entity_id: desktop # will be used to build the different sensors
name: Max Desktop # will be used for the friendly name of the sensors
modules:
idle:
timeout: 5min # duration until this device is reported as unoccupied
poll_rate: 5s # duration to poll for user input while the device is unoccupied (optional)
backlight: none # backlight provider to use (one of: none, stub, raspberry-pi)
notifications: true # enables notification sending via /desktop2mqtt/entity_id/notify with `{ "title": "", "message": "" }` as payload
sensors:
poll_rate: 1s # sensor update rate
types: # sensors to report
- type: load
- type: memory
- type: core-temperature
- type: disk-usage
disks:
- /
- /mnt/games
- type: battery
custom_commands: # exposed as buttons to home assistant
- name: Disable HDMI
command: xrandr --output HDMI-0 --off
icon: mdi:television-off # optional
```