H
HASS.Agentโ€ข8mo ago
MrGeek

Missing notify.PCName Service in HA

I am Missing notify.PCName Service in HA
108 Replies
MrGeek
MrGeekOPโ€ข8mo ago
@DrR0x
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
hmm does Local API need to be enabled on Hass.agent? oh no i dont think it does and was never enabled before
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
The device is not there at all in HA
MrGeek
MrGeekOPโ€ข8mo ago
No description
DrR0x
DrR0xโ€ข8mo ago
Yeah delete it And then restart, Autodiscovery issues are unfortunately common We can't easily fix it tho, it's almost impossible to get debug info
MrGeek
MrGeekOPโ€ข8mo ago
Delete the whole integration? or just the device?
DrR0x
DrR0xโ€ข8mo ago
Device First, but a foolproof fix is to delete integration It seems to always work
MrGeek
MrGeekOPโ€ข8mo ago
So i deleted teh device restarted HA it re-found the device automatically but still no service
DrR0x
DrR0xโ€ข8mo ago
Wait, that's weird Are sensors and stuff going?
MrGeek
MrGeekOPโ€ข8mo ago
i dont use anything else... just the notifications stuff just restarting HA again
DrR0x
DrR0xโ€ข8mo ago
Just throw a test one on Or better Media player test Start a YouTube video and try adjusting volumd
MrGeek
MrGeekOPโ€ข8mo ago
can you tell me how?
DrR0x
DrR0xโ€ข8mo ago
Open the media player entity while a YouTube video is playing
MrGeek
MrGeekOPโ€ข8mo ago
youtube playing on my computer? sorry i dont mean to sound stupid, but what media player entitiy?
DrR0x
DrR0xโ€ข8mo ago
Yep Click on the device, and then in there you should see media controls
MrGeek
MrGeekOPโ€ข8mo ago
No in the device is nothing!
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
let me fully delete the hacs intergration and re-install
DrR0x
DrR0xโ€ข8mo ago
Oh okay yeah it's messed up then ๐Ÿค”
MrGeek
MrGeekOPโ€ข8mo ago
Ok deleted the device and the integration rebooting going to re-install
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
this one right? there is only one hass.agent so i assume it must be 2022.11.9 ok installed, rebooting again ok it auto found my device, but when i go into it there are no entities
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
rebooting again yep same again after rebooting there is the entitiy but nothing in it
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
whats annoying is this is mission critical for me ๐Ÿ˜ฆ
DrR0x
DrR0xโ€ข8mo ago
Hmm, are the mqtt settings correct? Can you add a sensor? Anything CPU usage
MrGeek
MrGeekOPโ€ข8mo ago
i added a sensor
DrR0x
DrR0xโ€ข8mo ago
And see if it comes up in home assistant mqtt integration This
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
this is the MQTT integration prime-HWZJCW2 is my PC name
DrR0x
DrR0xโ€ข8mo ago
Hmm, mqtt seems to be working @Amadeo , any idea?
MrGeek
MrGeekOPโ€ข8mo ago
could it be an issue because my PC name has the - in it? i can't rename my PC somewhere i go a message in Hass.agent about the name, but i cannot remember where Sensors are 100% working, if i add a new one i see it straight away under MQTT OK Renamed the PC within the HASS.Agent settings. Rebooted HA, those updated settings show instantly under MQTT. Deleted the device and reboted, waited for the device to find its self again with the new name but oddly it finds it under the old name UGH. So frustrating! Removed it all and starting again! @Amadeo would really LOVE you if you can help me fix this! Weird. still finds it as the old name in the integration so odd it finds the device as teh actual machine name, and not based on the setting i set in Hass.Agent but MQTT has updated to show the name i put in Hass.agent uninstalling, removing all my config and trying again! annoying as ill have to figure out how i did my notification stuff but can worry about that later
Amadeo
Amadeoโ€ข8mo ago
Lemme catch up to speed with all the messages ๐Ÿ˜„ let's start with this, which Home Assistant version are you running?
MrGeek
MrGeekOPโ€ข8mo ago
2024.5.2
Amadeo
Amadeoโ€ข8mo ago
now the fun starts
MrGeek
MrGeekOPโ€ข8mo ago
Im starting 100% Fresh FYI
Amadeo
Amadeoโ€ข8mo ago
are there any errors related to HASS.Agent in the logs?
MrGeek
MrGeekOPโ€ข8mo ago
fully removed the software from my machine
Amadeo
Amadeoโ€ข8mo ago
there should be (โ˜ž๏พŸใƒฎ๏พŸ)โ˜ž
MrGeek
MrGeekOPโ€ข8mo ago
fully removed the integration in HA manually removed files/folders and rebooted now going through the install process!
Amadeo
Amadeoโ€ข8mo ago
GitHub
Bug: Latest HA Core update 2024.5.0 breaks notification entities. ยท...
Please make sure that the issue you're planning to report is not already registered :) Describe the bug The latest HA Core update (2024.5.0) stops hass.agent from creating any notify entities. ...
MrGeek
MrGeekOPโ€ข8mo ago
UGH lol
Amadeo
Amadeoโ€ข8mo ago
GitHub
Bug: Latest HA Core update 2024.5.0 breaks notification entities. ยท...
Please make sure that the issue you're planning to report is not already registered :) Describe the bug The latest HA Core update (2024.5.0) stops hass.agent from creating any notify entities. ...
MrGeek
MrGeekOPโ€ข8mo ago
wish i had known this 10 minutes ago ๐Ÿ˜› ok well let me get it all back installed its not just the notification service i was missing the media entitiy
Amadeo
Amadeoโ€ข8mo ago
sorry for that, we need to fix that in the integration itself and get it setup as a custom HACS repo - until then the manual fix should be good ya if you'll have any issues modyfying the file lemme know, I can send you the whole file to copy/replace
MrGeek
MrGeekOPโ€ข8mo ago
one second let me get there but would this same issue cause the missing media entitiy?
Amadeo
Amadeoโ€ข8mo ago
ya
MrGeek
MrGeekOPโ€ข8mo ago
can you remind me whilst you are here, where i get the HA API Token from? setting it all up fresh
Amadeo
Amadeoโ€ข8mo ago
since this version (the one that you're running), HA will basically nope any integration that is trying to do async operation on sync thread the adjustments are needed to make it compatible with HA's requirements
MrGeek
MrGeekOPโ€ข8mo ago
got the API dont worry bear with ok re-installed and made the changes rebooting 100% some progress! Just restarting it one more time ok so.... the service is there.... but not working! 100% progress!
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
nothing happens on my computer
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
service is there.... what am i missing here? test notification from within hass.agent works fine not sure if this is related?
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
When i am playing a youtube video, im still not seeing anything under the device? Should i?
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
@Amadeo are you still here? sorry to ping, im just desperate to get this sorted
Amadeo
Amadeoโ€ข8mo ago
ya, switching between work and personal pc ๐Ÿ˜„
MrGeek
MrGeekOPโ€ข8mo ago
sorry! Not meaning to be a pain
Amadeo
Amadeoโ€ข8mo ago
no worries, lemme try something ok, almost the same works for me (aka sanity check)
service: notify.amadeo_pc
data:
message: test message
title: cats rule the internet
service: notify.amadeo_pc
data:
message: test message
title: cats rule the internet
MrGeek
MrGeekOPโ€ข8mo ago
not getting anything in the logs when i try the above with my PC name obviously
Amadeo
Amadeoโ€ข8mo ago
could you show me this page
MrGeek
MrGeekOPโ€ข8mo ago
So i just renamed the device in that page to test maybe i should give my machine a quick reboot as it hasnt been rebooted since re-installing
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
this is my actual PC name. I had previously tried changing it here to BensPC incase the - was causing an issue but the service was always called notify.prime_hwzjcw2 no matter what
Amadeo
Amadeoโ€ข8mo ago
ok, let's do this slow, do the following (in order ofc) 1. close HASS.Agent (if you want to rename the device you can do it now, after change HASS.Agent will restart, close it) 2. in Home Assistant remove all devices in HASS.Agent integration (not to be confused with MQTT entities) 3. in mqtt explorer remove entries in hass.agent\devices and hass.agent\media_player 4. start HASS.Agent 5. reboot Home Assisant 6. add the discovered device in Home Assistant this will give us baseline to play with as I don't know what is the state of things on your end
MrGeek
MrGeekOPโ€ข8mo ago
OK well i just rebooted and tested again still failed so now going to follow your steps slowly.
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
before i close hass.agent these things being stopped are ok right?
Amadeo
Amadeoโ€ข8mo ago
if you have no sensors/commands/quickactions configured then yes
MrGeek
MrGeekOPโ€ข8mo ago
OK Hass.Agent Application Fully Closed
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
clicking delete here (not touching MQTT Side of things)
Amadeo
Amadeoโ€ข8mo ago
yup
MrGeek
MrGeekOPโ€ข8mo ago
opening MQTT Explorer Connecting to HA Removing these
MrGeek
MrGeekOPโ€ข8mo ago
No description
Amadeo
Amadeoโ€ข8mo ago
yup
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
starting hass.agent rebooting Home Assistant waiting for reboot, and the auto discover of device......
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
clicking configure
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
reboot HA again?
Amadeo
Amadeoโ€ข8mo ago
god damnnit wtf
MrGeek
MrGeekOPโ€ข8mo ago
that happens until i reboot again then stuff comes up at least thats whats been happening this morning this is the first time the PC name looks correct though so feels like some progress let me reboot again
Amadeo
Amadeoโ€ข8mo ago
if that won't work we can have a voice chat + share if you're willing to, something doesn't add up here
MrGeek
MrGeekOPโ€ข8mo ago
yes that would be amazing
Amadeo
Amadeoโ€ข8mo ago
usually those steps solve all the issues
MrGeek
MrGeekOPโ€ข8mo ago
progress
MrGeek
MrGeekOPโ€ข8mo ago
No description
Amadeo
Amadeoโ€ข8mo ago
oh, ok
MrGeek
MrGeekOPโ€ข8mo ago
lets try a notification
Amadeo
Amadeoโ€ข8mo ago
now the notifications
MrGeek
MrGeekOPโ€ข8mo ago
YAY ๐Ÿ˜›
MrGeek
MrGeekOPโ€ข8mo ago
No description
MrGeek
MrGeekOPโ€ข8mo ago
ok almost there can you help me reconfigure this (backup i took) in the gui
Amadeo
Amadeoโ€ข8mo ago
eli5 ๐Ÿ˜„
MrGeek
MrGeekOPโ€ข8mo ago
[
{
"Id": "41bbd485-865b-4830-aab6-682199c1ad7e",
"Name": "PRIME-HWZJCW2_launchurl",
"Type": "LaunchUrlCommand",
"EntityType": "button",
"Command": "",
"KeyCode": 0,
"RunAsLowIntegrity": false,
"Keys": []
}
]
[
{
"Id": "41bbd485-865b-4830-aab6-682199c1ad7e",
"Name": "PRIME-HWZJCW2_launchurl",
"Type": "LaunchUrlCommand",
"EntityType": "button",
"Command": "",
"KeyCode": 0,
"RunAsLowIntegrity": false,
"Keys": []
}
]
i deleted everything but took a backup first. This is the only thing i actually use i think i MIGHT be able to do it... hold on ๐Ÿ™‚ hmmm what do i want the new name to be prime_hwzjcw2_launchurl hmmm ok it doesnt fully work DAM let me show you what it was for...
action:
- service: notify.prime_hwzjcw2
data:
message: A person is on the drive.
data:
image: http://192.168.0.239:5000/api/driveway_cam/latest.jpg
actions:
- action: Preview
title: Preview
- action: Ignore
title: Ignore
- wait_for_trigger:
- platform: device
domain: hass_agent
device_id: 484b19ffe54fdab7752f529964255de6
type: notifications_event
action: Preview
continue_on_timeout: false
timeout:
hours: 0
minutes: 0
seconds: 26
milliseconds: 0
- service: mqtt.publish
data:
topic: homeassistant/button/PRIME-HWZJCW2/PRIME-HWZJCW2_launchurl/action
payload: >-
http://192.168.0.239:5000/live/webrtc/webrtc.html?src=driveway_cam&mode=webrtc
mode: single
action:
- service: notify.prime_hwzjcw2
data:
message: A person is on the drive.
data:
image: http://192.168.0.239:5000/api/driveway_cam/latest.jpg
actions:
- action: Preview
title: Preview
- action: Ignore
title: Ignore
- wait_for_trigger:
- platform: device
domain: hass_agent
device_id: 484b19ffe54fdab7752f529964255de6
type: notifications_event
action: Preview
continue_on_timeout: false
timeout:
hours: 0
minutes: 0
seconds: 26
milliseconds: 0
- service: mqtt.publish
data:
topic: homeassistant/button/PRIME-HWZJCW2/PRIME-HWZJCW2_launchurl/action
payload: >-
http://192.168.0.239:5000/live/webrtc/webrtc.html?src=driveway_cam&mode=webrtc
mode: single
but now, clicking the preview button doesnt do anything it should use Google Chrome (My default browser) to open the payload URL can you remind me where the new config files are stored? YES Got it fixewd! Thank you!!!!! โค๏ธ could not have done that without you! and thank you too @DrR0x Can i just confirm, you will fix this in the next update, and when i update, it will automatically overwrite my files with the new (fixed by you) version right? Honestly, thank you both again SOO much
Amadeo
Amadeoโ€ข8mo ago
yup, to be specific the integration will need to be replaced (we have no access to the original one) but we'll write instructions on that ๐Ÿ˜„ nice that it's working
MrGeek
MrGeekOPโ€ข8mo ago
Honestly, thank you again! That was stressing me out! working like a charm now
Want results from more Discord servers?
Add your server