GithubHelp home page GithubHelp logo

pc2mqtt's Introduction

The purpose of this app is for those who maybe do not want or need the excellent Hass agent https://github.com/LAB02-Research/HASS.Agent

It will provide some simple metrics like CPU and RAM usage, and some commands via MQTT to allow you to turn off / reboot / put into standby your PC

image

This will create a device with several sensors and switches in HomeAssistant via the MQTT integration:

image

Whilst testing I suggest you use the "Confirm Power Actions" checkbox to stop yourself inadvertantly powering off your computer!

pc2mqtt's People

Contributors

jimmyeao avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pc2mqtt's Issues

Experiencing some weirdness with first setup

Entering the MQTT broker and saving the app shows it cannot connect to NULL.

After that, i entered the IP:1883 (because i figured since there is no port setting, maybe the port should be added). It crashed.

After starting again and wanting to shoot a screenshot, it worked after I removed the 1883. Now it is connected.

Unknown sensors

The program is connected:

image

But sensors stay empty:

image

Last logs:

2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for cpu_usage
2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for total_ram
2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for free_ram
2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for used_ram
2024-04-04 23:10:59.175 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:10:59.175 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:05.808 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:05.808 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:11:10.817 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:11:10.817 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:15.832 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:11:15.832 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:19.868 +02:00 [DBG] SaveSettings_Click: Save Settings ClickedPC2MQTT.AppSettings
2024-04-04 23:11:19.875 +02:00 [DBG] SetStartupAsync: Startup options set
2024-04-04 23:11:19.885 +02:00 [DBG] SaveSettingsAsync: MQTT settings have changed. Reconnecting MQTT client...
2024-04-04 23:11:37.064 +02:00 [INF] Logger Created
2024-04-04 23:11:37.125 +02:00 [DBG] Set Folder Path to C:\Users\MHOOGEN82\AppData\Local\PC2MQTT
2024-04-04 23:11:37.254 +02:00 [DBG] Settings file path is C:\Users\MHOOGEN82\AppData\Local\PC2MQTT\settings.json
2024-04-04 23:11:37.569 +02:00 [INF] MQTT client initialized.
2024-04-04 23:11:37.597 +02:00 [INF] MQTT client started.
2024-04-04 23:11:37.598 +02:00 [INF] MQTT event handlers set up.
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for cpu_usage
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for total_ram
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for free_ram
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for used_ram
2024-04-04 23:11:37.696 +02:00 [INF] Connected to MQTT broker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.