Closed pfefferle closed 2 years ago
@krisgesling I am not sure if I should also add a sound output.
maybe if not self.gui.connected
then we want to say something?
otherwise the most I'd go for is a self.acknowledge()
tone
@krisgesling what about playing that sound if connected or not. I liked the idea and added it also to the "open Home Assistant" command.
Yeah, I think it's worth us considering what we want the behaviour to be with or without a display connected. There's a few options as I see it:
They last one I think might have merit here. If there's no display, should it even respond to utterances like "show me the latest snapshot"?
On the other hand, does having different functionality on different devices make it more confusing for users? eg If I say the same thing to a different Mycroft device with the same Skill installed and it says: "I'm sorry I don't know what that means" - that's kind of weird.
Now I see! I totally agree! To be honest, I never thought about the case that there might be no display connected (and don't ask what I thought self.gui.connected
is checking)!
I would go with
report that no display exists so they won't get the full experience
and add an error message for that.
I will also add it to "open HomeAssistant"!
I do not have display so from my point of view I would rather wanted to have intents which use booth to respond only with voice without info about no display. And intents that are only for gui to respond with info message that display is not connected.
@krisgesling @Tony763 I added an error if there is no gui available
I will send translations tomorrow.
@krisgesling can you please re-review?
Oh, it would be great if we could add a test for this too
@Tony763 can you support me by testing the camera GUI response?
@pfefferle I could try to write some tests, but I can't test gui as I run my HA and Mycroft on my headless intel server. I will look for some way to use RDP or similar protocol to stream video output.
@Tony763 @krisgesling the test will also run in headless mode doesn't it? Is it even possible to test for GUI output? so should I only test for the error case?
In headless but give me a week or two, I will think about it ;)
út 7. 12. 2021 v 6:52 odesílatel Matthias Pfefferle < @.***> napsal:
@Tony763 https://github.com/Tony763 @krisgesling https://github.com/krisgesling the test will also run in headless mode doesn't it? Is it even possible to test for GUI output? so should I only test for the error case?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/MycroftAI/skill-homeassistant/pull/90#issuecomment-987591225, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKW4HUCBBZZVBSVFDZUGO3UPWOJXANCNFSM5GUVT3YA .
Currently there's no built-in tests to guarantee that it's actually rendered. However intent clashes are the bigger concern, so it would be good to check that the intent handler triggers for what it's meant to and not things like:
show me a picture of a cat
@krisgesling makes sense.
@Tony763 I added some basic tests, but the GitHub Action seems to be broken on my fork, any ideas? https://github.com/pfefferle/skill-homeassistant/runs/4463932766?check_suite_focus=true
Yes, there was a breaking change in mycroft-core installation, fix for it is in PR #89.
I added tests, to check for an existing and non existing entity.
@krisgesling can you re-check?
@Tony763 @krisgesling this is weird... it has no issues on my fork https://github.com/pfefferle/skill-homeassistant/runs/4481764469
It's okay, workflow change is not merged to HA repo yet, so it's fail there. Workflow on PR is always used a one from repository into which you sended a PR. It's a security feature. So you are unable to run malicious code before approve. When my change is merged, this will also work there.
Pylint is not working as it is not installed. :slightly_smiling_face: In Your repo its okay.
Wait for @krisgesling to check my PR and merge. :slightly_smiling_face:
Hi @pfefferle, to incorporate (activate) latest change in workflow to this PR, You have to rebase it with latest commit made to branch 20.08. Ping me if You need help with commands :slightly_smiling_face:
@Tony763 @krisgesling should be ready to review again :)
Description
This PR allows to ask for the latest snapshot of a camera connected to Home Assistant
Type of PR
Testing
Say "Show me the latest snapshot of {Camera Name}."