richibrics / PyMonitorMQTT

Python computer monitor that sends real time information via MQTT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

screen in homeassistant

AlexKash500 opened this issue · comments

Cannot find screenshot in home assistant cameras or sensors. But screenshot is present in mqtt. Maybe I need to add something in setting to see screenshot

Can you post your configuration please ? (first remove any username/password/private data)

logger:
logger_message_width: 70
file_level: 3
console_level: 4

monitors:

  • broker: 192.168.2.150
    name: laptop_kitchen
    send_interval: 20 # Seconds
    username:
    password:

    advanced_information: True # Set to False to receive less data

    discovery:
    enable: True
    preset: homeassistant
    discover_prefix: homeassistant # prefix of config topic, this is the default value of homeassistant
    name_prefix: True # To add the computer name in front of sensors and switches name
    publish_interval: 30

    sensors:

    • State # Important to send availability information
    • Os
    • Ram
    • Disk
    • Cpu
    • Battery
    • CpuTemperatures
    • Network
    • DesktopEnvironment: # When the software returns "base", it's better for you to manually set it
      contents:
      value: base
    • Screenshot

    commands:

    • Shutdown
    • Lock
    • Reboot
    • Sleep
    • Brightness
    • TurnOffMonitors
    • TurnOnMonitors

Do everything else show up in home assistant ?
Check if the screenshot entity logs an error in the log file (or upload the log file here and I'll check for you)

Log.log
image
image

log attached. all parameters from mqtt are in HA

You're right, I tried that entity in my configuration and seems that home assistant skip the camera because there's a wrong payload in the mqtt config message. Let me push the code, I'm back soon

Pull the new changes and try now

It is good now. many thanks

Perfect, doing so you're helping improving the system, thanks !