Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: screenshot camera sensor #42

Merged

Conversation

amadeo-alex
Copy link
Collaborator

@amadeo-alex amadeo-alex commented Feb 4, 2024

This PR adds screenshot sensor (camera entity) which was originally proposed and implemented by @denisabt in the PR to original HASS.Agent repository LAB02-Research#8
This sensor is supported only for client part of HASS.Agent.

Due to internal m$ shenanigans I couldn't 100% reliably reproduce the screen numbering present in the system settings. It can change due to primary screen configuration and other factors.

Small adjustments have been made to make the footprint and required changes as small as possible.

obraz
rUgfZJ

@amadeo-alex amadeo-alex self-assigned this Feb 4, 2024
@amadeo-alex amadeo-alex added the enhancement New feature or request label Feb 4, 2024
@amadeo-alex amadeo-alex changed the base branch from development to development-2.1.0 February 13, 2024 19:42
@amadeo-alex amadeo-alex merged commit 87887aa into hass-agent:development-2.1.0 Feb 13, 2024
amadeo-alex added a commit that referenced this pull request Mar 3, 2024
### Changes
- Added "SetAudioInputCommand" (thanks to Chrisdegod for the suggestion) - #41
- Added "ScreenshotSensor", functioning as camera entity (huge thanks for @denisabt for the inital PR with implementation to the original repo)- #42
- Added option to ignore the MQTT/connection grace period when system wakes from hibernation (thanks to @larena1 for the suggestion)- #51
- Added option to use modern (white on transparent) icon for the HASS.Agent's trayicon (big thanks to @MBaliver for the suggestion and the icon) - #55
- Added note to "PowershellSensor" description as a reminder to Home Assistant's 255 character limit for the payload/state (thanks to @EpicLPer for suggestion) - #58
- Last but not least, all dependencies have been bumped to the newest possbile version - #56

### Fixes 
- "SetAudioOutputCommand" and "SetApplicationVolume" commands are now properly configurable from the UI (thanks to Chrisdegod for reporting) - #39
- Updated VirtualDesktop management library to stop it crashing on some Windows 11 systems - #40
- Sensor state being evaluated constantly, ignoring the configured update interval (thanks to @shupershuff for reporting) - #45
- "PowershellCommand" arguments not being bound/parsed properly when provided with payload/action (thanks to @shupershuff for reporting) - #47
- "ActiveWindow" sensor not using proper encoding, resulting in some characters being replaced with "?" (thanks to @greghesp for reporting) - #50
- Sensor/command discovery payload messages are now sent on HASS.Agent start and configuration change instead of constantly - should reduce the load on Home Assistant (thanks to @Anto79-ops for reporting) - #5
- "MicrophoneProcessSensor" description has been changed to more accurately describe its function (thanks to @Gvolten for reporting) - #57

#### Note
This beta release includes changes from [2.0.2-beta1](https://github.com/hass-agent/HASS.Agent/releases/tag/2.0.2-beta1) and [2.0.2-beta2](https://github.com/hass-agent/HASS.Agent/releases/tag/2.0.2-beta2)
@amadeo-alex amadeo-alex modified the milestone: 2.1.0-beta2 May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant