All Projects → Sennevds → System_sensors

Sennevds / System_sensors

Licence: mit
Logging of system sensor specific for the RPI and sending them to a MQTT broker

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to System sensors

Smarthome
@skalavala 👍 Nothing But Smarthome Stuff! - By Mahasri Kalavala
Stars: ✭ 437 (+226.12%)
Mutual labels:  home-assistant, sensors, mqtt
Mqtt Io
Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
Stars: ✭ 234 (+74.63%)
Mutual labels:  home-assistant, rpi, mqtt
M5Stack-Air-Quality-ESPHome
ESPHome configuration for M5Stack's PM2.5 Air Quality Kit with the PMSA003 particulate matter sensor and the SHT20 temperature and humidity sensor
Stars: ✭ 19 (-85.82%)
Mutual labels:  mqtt, home-assistant, sensors
Smarthome
SmartHome: firmware per ESP8266 - Casa domotica
Stars: ✭ 28 (-79.1%)
Mutual labels:  home-assistant, mqtt
Android Mqtt Alarm Panel
Android Alarm Panel for Home Assistant and Home Automation Platforms (http://thanksmister.com/android-mqtt-alarm-panel/)
Stars: ✭ 124 (-7.46%)
Mutual labels:  home-assistant, mqtt
Room Assistant
Presence tracking and more for automation on the room-level
Stars: ✭ 764 (+470.15%)
Mutual labels:  home-assistant, sensors
Miflora Mqtt Daemon
Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼🥀🏡🌳
Stars: ✭ 409 (+205.22%)
Mutual labels:  home-assistant, mqtt
Homeautomation.codesys3
Home Automation system build in CoDeSys 3 with MQTT communication to any third party Home Automation software
Stars: ✭ 55 (-58.96%)
Mutual labels:  home-assistant, mqtt
Open Home
Projeto de automação residencial usando softwares e hardwares open source.
Stars: ✭ 41 (-69.4%)
Mutual labels:  home-assistant, mqtt
Addon Zwave2mqtt
Z-Wave to MQTT - Home Assistant Community Add-ons
Stars: ✭ 58 (-56.72%)
Mutual labels:  home-assistant, mqtt
Frigate
NVR with realtime local object detection for IP cameras
Stars: ✭ 1,329 (+891.79%)
Mutual labels:  home-assistant, mqtt
Hassio Zigbee2mqtt
Hass.io add-on for zigbee2mqtt
Stars: ✭ 547 (+308.21%)
Mutual labels:  home-assistant, mqtt
Esp Mqtt Json Digital Leds
(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
Stars: ✭ 503 (+275.37%)
Mutual labels:  home-assistant, mqtt
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+511.94%)
Mutual labels:  home-assistant, mqtt
Homeassistant Config
Configuration for @brianjking & @KinnaT's Home Assistant Installation
Stars: ✭ 80 (-40.3%)
Mutual labels:  home-assistant, sensors
Home Assistant Configuration
My Home Assistant Config. For more Information visit ->
Stars: ✭ 102 (-23.88%)
Mutual labels:  home-assistant, mqtt
Wavin Ahc 9000 Mqtt
Esp8266 mqtt interface for Wavin AHC-9000/Jablotron AC-116
Stars: ✭ 47 (-64.93%)
Mutual labels:  home-assistant, mqtt
Ha Shellies Discovery
Script that adds MQTT discovery support for Shellies devices
Stars: ✭ 113 (-15.67%)
Mutual labels:  home-assistant, mqtt
Zigbee2mqttassistant
GUI for Zigbee2Mqtt running in docker and HASS.IO
Stars: ✭ 371 (+176.87%)
Mutual labels:  home-assistant, mqtt
Homeassistant
Home Assistant Configuration Files and Documentation
Stars: ✭ 395 (+194.78%)
Mutual labels:  home-assistant, mqtt

RPI System sensors

GitHub Release License

Project Maintenance GitHub Activity

Community Forum

I’ve created a simple python script that runs every 60 seconds and sends several system data over MQTT. It uses the MQTT Discovery for Home Assistant so you don’t need to configure anything in Home Assistant if you have discovery enabled for MQTT

It currently logs the following data:

  • CPU usage
  • CPU temperature
  • Disk usage
  • Memory usage
  • Power status of the RPI
  • Last boot
  • Last message received timestamp
  • Swap usage
  • Wifi signal strength
  • Amount of upgrades pending
  • Disk usage of external drives
  • Hostname
  • Host local IP
  • Host OS distro and version

System Requirements

You need to have at least python 3.6 installed to use System Sensors.

Installation:

  1. Clone this repo >> git clone https://github.com/Sennevds/system_sensors.git
  2. cd system_sensors
  3. pip3 install -r requirements.txt
  4. sudo apt-get install python3-apt
  5. Edit settings_example.yaml in "~/system_sensors/src" to reflect your setup and save as settings.yaml:
Value Required Default Description
hostname true \ Hostname of the MQTT broker
port false 1883 Port of the MQTT broker
user false \ The userlogin( if defined) for the MQTT broker
password false \ the password ( if defined) for the MQTT broker
deviceName true \ device name is sent with topic
client_id true \ client id to connect to the MQTT broker
timezone true \ Your local timezone (you can find the list of timezones here: time zones)
power_integer_state(Deprecated) false false Deprecated
update_interval false 60 The update interval to send new values to the MQTT broker
check_available_updates false false Check the # of avaiblable updates
check_wifi_strength false false Check the wifi strength
external_drives false \ Declare external drives you want to check disk usage of (see example settings.yaml)
  1. python3 src/system_sensors.py src/settings.yaml
  2. (optional) create service to autostart the script at boot:
    1. sudo cp system_sensors.service /etc/systemd/system/system_sensors.service
    2. edit the path to your script path and settings.yaml. Also make sure you replace pi in "User=pi" with the account from which this script will be run. This is typically 'pi' on default raspbian system.
    3. sudo systemctl enable system_sensors.service
    4. sudo systemctl start system_sensors.service

Home Assistant configuration:

Configuration:

The only config you need in Home Assistant is the following:

mqtt:
  discovery: true
  discovery_prefix: homeassistant

Lovelace UI example:

I have used following custom plugins for lovelace:

  • vertical-stack-in-card
  • mini-graph-card
  • bar-card

Config:

- type: 'custom:vertical-stack-in-card'
    title: Deconz System Monitor
    cards:
      - type: horizontal-stack
        cards:
          - type: custom:mini-graph-card
            entities:
              - sensor.deconzcpuusage
            name: CPU
            line_color: '#2980b9'
            line_width: 2
            hours_to_show: 24
          - type: custom:mini-graph-card
            entities:
              - sensor.deconztemperature
            name: Temp
            line_color: '#2980b9'
            line_width: 2
            hours_to_show: 24
      - type: custom:bar-card
        entity: sensor.deconzdiskuse
        title: HDD
        title_position: inside
        align: split
        show_icon: true
        color: '#00ba6a'
      - type: custom:bar-card
        entity: sensor.deconzmemoryuse
        title: RAM
        title_position: inside
        align: split
        show_icon: true
      - type: entities
        entities:
          - sensor.deconzlastboot
          - sensor.deconzpowerstatus

Example:

alt text

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].