mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
notify:
|
||||
name: DreamSurface
|
||||
platform: hass_agent_notifier
|
||||
resource: !secret dreamsurface_hassagent
|
||||
|
||||
|
||||
mqtt:
|
||||
light:
|
||||
- name: "DreamSurface: Screen Brightness"
|
||||
unique_id: "dreamsurface_screen_brightness"
|
||||
object_id: "dreamsurface_monitor_brightness"
|
||||
command_topic: "homeassistant/light/DREAMSURFACE/DREAMSURFACE_screen_brightness/action"
|
||||
brightness_command_topic: "homeassistant/light/HASSAGENT/dreamsurface_monitor_brightness/action"
|
||||
brightness_command_template: "%PROGRAMFILES(X86)%\\Monitorian\\Monitorian.exe /set {{ value }}"
|
||||
brightness_scale: 100
|
||||
on_command_type: 'brightness'
|
||||
icon: mdi:monitor-shimmer
|
||||
|
||||
# media_player:
|
||||
# - name: Dreamsurface
|
||||
# platform: hass_agent_mediaplayer
|
||||
# host: !secret dreamsurface_ip
|
||||
# port: 5115
|
||||
|
||||
template:
|
||||
- trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
- platform: state
|
||||
entity_id: sensor.dreamsurface_lastactive
|
||||
|
||||
binary_sensor:
|
||||
- name: DreamSurface Recently Active
|
||||
unique_id: templatebinarysensor.dreamsurface_recently_active
|
||||
icon: mdi:tablet
|
||||
#availability: "{{ states('sensor.dreamsurface_lastactive') not in ['unkown', 'unavailable'] }}"
|
||||
state: " {{ iif( states('sensor.dreamsurface_lastactive') == 'unknown' or is_state('sensor.dreamsurface_lastactive', 'unavailable'), false, as_timestamp(now()) - as_timestamp(states('sensor.dreamsurface_lastactive'),0) < 180 or is_state('sensor.dreamsurface_usernotification','Busy'))}}"
|
||||
Reference in New Issue
Block a user