Closed joelhauxwell closed 3 years ago
What happens when you try to start the script directly in a PowerShell prompt?
Thanks for your reply. The message I copy/pasted above was directly from the PowerShell prompt.
Yeah, but you try to start the service via PowerShell. What happens when you run Get-TeamsStatus.ps1 directly from the prompt?
Ah that's interesting, i get this:
Looks like it cant connect to my HA.
I have checked the Long-Lived Access Token and the URL of my HA box - this is the config
I suspect the $HAUrl may be formatted incorrectly?
Thanks.
A bit of progress - i realised that the HA ip address possibly needed the port adding, so i have done that and now the error doesn't appear in PowerShell
However, in HA i just get 'unknown' for status and activity:
I have rebooted the HA pi and my PC.
Thanks,
I think something got messed up when adding the sensors to your configuration. The sensor that get updated are not input_text, but template sensors:
sensor:
- platform: template
sensors:
teams_status:
friendly_name: "Microsoft Teams status"
value_template: "{{states('input_text.teams_status')}}"
icon_template: "{{state_attr('input_text.teams_status','icon')}}"
unique_id: sensor.teams_status
teams_activity:
friendly_name: "Microsoft Teams activity"
value_template: "{{states('input_text.teams_activity')}}"
unique_id: sensor.teams_activity
So the sensors that get updated are sensor.teams_status and sensor.teams_activity.
OK, i was following the instructions here:
I just pasted this all into configuration.yaml
Is this correct?
Jup! That's how I have it in my config as well :)
So i just created a new Card in the UI and searched for "teams" and added all the entities to one card and get this:
The bottom entry "Microsoft Teams status" showing "Presenting" was correct
The teams_activity sensor should update as soon as you join a call. Have you tested that one already? I assume that will work as well, since the teams_status sensor updates.
Feel free to reopen if you still experience issues.
Hello,
I followed the instructions to the letter to install this and although the service appears in the services list, its status is paused and it wont start.
I didn't get any errors whilst following the instructions until the last line where i get:
Any ideas?
Thanks,