screenmqtt icon indicating copy to clipboard operation
screenmqtt copied to clipboard

HA configuration sample

Open RuneNyhuus opened this issue 5 years ago • 2 comments

Is there a Home Assistant Configuration sample here?? I have some of it working.. but it cannot get the State of the screen. HA shows it as Off

And what about PC with multiple screens? it only turn one of the screens off :)

RuneNyhuus avatar Jan 11 '21 14:01 RuneNyhuus

This is what i use to configure screenmqtt as a light in HA, maybe this will help.

light:
  - platform: mqtt
    name: "Desk"
    state_topic: "pchome/monitor/all/power/state"
    command_topic: "pchome/monitor/all/power/command"
    payload_on: "ON"
    payload_off: "OFF"
    optimistic: false

MrHacky avatar Dec 09 '21 15:12 MrHacky

Hey, I don't have this set up right now, but this is how I had it configured:

switch:
   - platform: mqtt
     name: "Hexacompy Monitors"
     command_topic: "hexacompy/monitor/all/power/command"
     state_topic: "hexacompy/monitor/all/power/state"

It's possible that some HA updates since changed the behavior, so @MrHacky's config is probably a little more up to date (thanks for that!) 😊

SmilyOrg avatar Dec 18 '21 19:12 SmilyOrg