HA_Desktop_Companion

That is really weird can you please describe exactly what you done for me to replicate the issue ?
form extracting the zip file and dir path strings

In that case your notification only works on Local network right ? i am also using Toast but native one not those win10 that is a bad implementation i think :slight_smile: but it works so… :smiley:

Downloaded, opened zip.
Selected the two files and dragged them to second open explorer window that has a new folder open.
Path: “C:\HA_Desktop_Companion_Self_Containef\Ny mapp (2)\HA_Desktop_Companion.exe”
Right click, properties, unblock file from running, OK, then start the file.
It’s the path of one of the older version I just kept and replaced the files in.

unblock file from running is what ?

If I just unzip and open the file I get this message:

image

Windows has protected the computer
Microsoft Defender SmartScreen stopped an unknown app. Running the app could be a risk for the computer.
More information.

Don’t run.

So what I need to do after each download is open properties and click here:

Security:
This file originated from a different computer and has been blocked to protect this computer.

I will doo specific build just for you

@Hellis81 In same place there is extra build for you can you try it ?

Hmm…

I did all the steps as usual and opened the file and it didn’t open, so I tried again and it opened and I could sign in, but it crashed before it was done.
I tried opening it again and it refused to start up.

I opened the log and I could see there was nothing special, no errors but a very nice format I must say.
The only thing I noted was it said on the first line Token = null (or something similar).

I thought if it could boot once without the log and yaml file then I’ll just delete them and try again.
It created the empty log file but noting opened.
Click on it again and it opens, creates the yaml file then crashed.
Now it crashes each time I open it again.

I will try and restart the computer and see if that helps

Is something special in your URL ? or it is http(s)://host.com and is your token valid ?

Nothing special. It has been working with the older versions.

Anyways… Now that I booted up from a restart the old version autostarts and I got this message:

image

I started the old version again, and it crashed, then I started it again and it’s up and running.
So the URL and token is working.

Closed the old version and opened the new one and it crashed.

Noticed I have a device for the debug version, but it doesn’t have any values or events.

I will try to investigate further please ensd me full log if oyu can :slight_smile: maybe i can find something

The new version log is empty.

Or did you mean the old?

Building new build right now :smiley: wait few seconds did you click register button ? also in error there is wierd path to system 32 that is not right are you running app like admin ?

Uploadet last build today if it dont work go back to old version and we will continue tomorow :smiley:

It is working now ?

One last build is online :smiley: now i should really go :smiley: @Hellis81 Release Lets Speed Thinks UP! · GamerClassN7/HA_Desktop_Companion · GitHub

Just a minute, been eating will try in soon.

I tested the one called …EXTRA_4.zip.

It took a long time to connect so I switched window to see what happened on HA side.
I got this:

So it managed to do something then it crashed.
From then on I could not start the app again.

[20220824T182524]-Main -> Loading
[20220824T182526]-MAIN - Token od URL => Null
[20220824T182526]-Main -> Loaded
[20220824T182548]-API -> Failed to connect to:https://NABUCASA.ui.nabu.casa/ The SSL connection could not be established, see inner exception.
[20220824T182549]-API -> connection Werified:https://NABUCASA.ui.nabu.casa/
[20220824T182549]-{"device_id":"axlt2801_debug","app_id":"ha_desktop_companion","app_name":"HA_Desktop_Companion","app_version":"0.0.1.0","device_name":"AXLT2801_DEBUG","manufacturer":"LENOVO","model":"20JH003EMX","os_name":"Microsoft Windows 10 Enterprise","os_version":"Microsoft Windows NT 10.0.19043.0","supports_encryption":false,"app_data":{"push_websocket_channel":true}}
[20220824T182549]-API -> {"device_id":"axlt2801_debug","app_id":"ha_desktop_companion","app_name":"HA_Desktop_Companion","app_version":"0.0.1.0","device_name":"AXLT2801_DEBUG","manufacturer":"LENOVO","model":"20JH003EMX","os_name":"Microsoft Windows 10 Enterprise","os_version":"Microsoft Windows NT 10.0.19043.0","supports_encryption":false,"app_data":{"push_websocket_channel":true}}
[20220824T182550]-API <- "{\"cloudhook_url\":\"https://hooks.nabu.casa/SOMETHING\",\"remote_ui_url\":\"https://NABUCASA.ui.nabu.casa\",\"secret\":null,\"webhook_id\":\"SOMETHING_ELSE\"}"
[20220824T182550]-{"cloudhook_url":"https://hooks.nabu.casa/SOMETHING","remote_ui_url":"https://NABUCASA.ui.nabu.casa","secret":null,"webhook_id":"SOMETHING_ELSE"}
[20220824T182550]-API -> {"data":{"unique_id":"battery_level","name":"Battery Level","type":"sensor","state":"","device_class":"battery","unit_of_measurement":"%","entity_category":"diagnostic","icon":"mdi:battery"},"type":"register_sensor"}
[20220824T182550]-API <- "{\"success\": true}"
[20220824T182551]-{"success":true}
[20220824T182551]-API = battery_level - Sensor Sucesfully Registered
[20220824T182551]-API -> {"data":{"unique_id":"battery_state","name":"Battery State","type":"sensor","state":"","device_class":"battery","entity_category":"diagnostic","icon":"mdi:battery-minus"},"type":"register_sensor"}
[20220824T182551]-API <- "{\"success\": true}"
[20220824T182552]-{"success":true}
[20220824T182552]-API = battery_state - Sensor Sucesfully Registered
[20220824T182553]-API -> {"data":{"unique_id":"cpu_temp","name":"CPU Temperature","type":"sensor","state":"","unit_of_measurement":"°C","entity_category":"diagnostic","icon":"mdi:cpu-64-bit"},"type":"register_sensor"}
[20220824T182553]-API <- "{\"success\": true}"
[20220824T182554]-{"success":true}
[20220824T182554]-API = cpu_temp - Sensor Sucesfully Registered
[20220824T182554]-API -> {"data":{"unique_id":"free_ram","name":"Free Ram","type":"sensor","state":"","unit_of_measurement":"kilobytes","entity_category":"diagnostic","icon":"mdi:clock"},"type":"register_sensor"}
[20220824T182554]-API <- "{\"success\": true}"
[20220824T182555]-{"success":true}
[20220824T182555]-API = free_ram - Sensor Sucesfully Registered
[20220824T182555]-API -> {"data":{"unique_id":"cpu_usage","name":"CPU Usage","type":"sensor","state":"","unit_of_measurement":"%","entity_category":"diagnostic","icon":"mdi:cpu-64-bit"},"type":"register_sensor"}
[20220824T182555]-API <- "{\"success\": true}"
[20220824T182556]-{"success":true}
[20220824T182556]-API = cpu_usage - Sensor Sucesfully Registered
[20220824T182557]-API -> {"data":{"unique_id":"battery_level","name":"Battery Level","type":"sensor","state":"","device_class":"battery","unit_of_measurement":"%","entity_category":"diagnostic","icon":"mdi:battery"},"type":"register_sensor"}
[20220824T182557]-API <- "{\"success\": true}"
[20220824T182558]-{"success":true}
[20220824T182558]-API = battery_level - Sensor Sucesfully Registered
[20220824T182558]-API -> {"data":{"unique_id":"battery_state","name":"Battery State","type":"sensor","state":"","device_class":"battery","entity_category":"diagnostic","icon":"mdi:battery-minus"},"type":"register_sensor"}
[20220824T182558]-API <- "{\"success\": true}"
[20220824T182559]-{"success":true}
[20220824T182559]-API = battery_state - Sensor Sucesfully Registered
[20220824T182559]-API -> {"data":{"unique_id":"cpu_temp","name":"CPU Temperature","type":"sensor","state":"","unit_of_measurement":"°C","entity_category":"diagnostic","icon":"mdi:cpu-64-bit"},"type":"register_sensor"}
[20220824T182600]-API <- "{\"success\": true}"
[20220824T182601]-{"success":true}
[20220824T182601]-API = cpu_temp - Sensor Sucesfully Registered
[20220824T182601]-API -> {"data":{"unique_id":"free_ram","name":"Free Ram","type":"sensor","state":"","unit_of_measurement":"kilobytes","entity_category":"diagnostic","icon":"mdi:clock"},"type":"register_sensor"}
[20220824T182601]-API <- "{\"success\": true}"
[20220824T182602]-{"success":true}
[20220824T182602]-API = free_ram - Sensor Sucesfully Registered
[20220824T182602]-API -> {"data":{"unique_id":"cpu_usage","name":"CPU Usage","type":"sensor","state":"","unit_of_measurement":"%","entity_category":"diagnostic","icon":"mdi:cpu-64-bit"},"type":"register_sensor"}
[20220824T182602]-API <- "{\"success\": true}"
[20220824T182603]-{"success":true}
[20220824T182603]-API = cpu_usage - Sensor Sucesfully Registered
[20220824T182604]-API -> {"data":{"unique_id":"wifi_state","name":"Wifi State","type":"sensor","state":"","icon":"mdi:wifi"},"type":"register_sensor"}
[20220824T182604]-API <- "{\"success\": true}"
[20220824T182605]-{"success":true}
[20220824T182605]-API = wifi_state - Sensor Sucesfully Registered
[20220824T182605]-API -> {"data":{"unique_id":"wifi_ssid","name":"Wifi SSID","type":"sensor","state":"","icon":"mdi:wifi"},"type":"register_sensor"}
[20220824T182605]-API <- "{\"success\": true}"
[20220824T182606]-{"success":true}
[20220824T182606]-API = wifi_ssid - Sensor Sucesfully Registered
[20220824T182606]-API -> {"data":{"unique_id":"wifi_state","name":"Wifi State","type":"sensor","state":"","icon":"mdi:wifi"},"type":"register_sensor"}
[20220824T182606]-API <- "{\"success\": true}"
[20220824T182607]-{"success":true}
[20220824T182607]-API = wifi_state - Sensor Sucesfully Registered
[20220824T182608]-API -> {"data":{"unique_id":"wifi_ssid","name":"Wifi SSID","type":"sensor","state":"","icon":"mdi:wifi"},"type":"register_sensor"}
[20220824T182608]-API <- "{\"success\": true}"
[20220824T182609]-{"success":true}
[20220824T182609]-API = wifi_ssid - Sensor Sucesfully Registered
[20220824T182609]-API -> {"data":{"unique_id":"currently_active_window","name":"Currently Active Window","type":"sensor","state":"","icon":"mdi:application"},"type":"register_sensor"}
[20220824T182609]-API <- "{\"success\": true}"
[20220824T182610]-{"success":true}
[20220824T182610]-API = currently_active_window - Sensor Sucesfully Registered
[20220824T182610]-API -> {"data":{"unique_id":"currently_active_window","name":"Currently Active Window","type":"sensor","state":"","icon":"mdi:application"},"type":"register_sensor"}
[20220824T182610]-API <- "{\"success\": true}"
[20220824T182612]-{"success":true}
[20220824T182612]-API = currently_active_window - Sensor Sucesfully Registered
[20220824T182612]-API -> {"data":{"unique_id":"uptime","name":"Uptime","type":"sensor","state":"","unit_of_measurement":"h","entity_category":"diagnostic","icon":"mdi:timer-outline"},"type":"register_sensor"}
[20220824T182612]-API <- "{\"success\": true}"
[20220824T182613]-{"success":true}
[20220824T182613]-API = uptime - Sensor Sucesfully Registered
[20220824T182613]-API -> {"data":{"unique_id":"uptime","name":"Uptime","type":"sensor","state":"","unit_of_measurement":"h","entity_category":"diagnostic","icon":"mdi:timer-outline"},"type":

That is all there was.

Yes. and that is when it crashes the first time.

No… We do not have admin rights. Barely user rights. I’m quite sure I can’t save anything in the Windows folder.

Can you open reedit ? And send screenshot of what you can see on this key ?

Currentuser"SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\

It fail when try to register permission settings. From what I can see in log

Also the url address in log you send is what you writed to app ?

EDIT: i see you replace that good

This is the folder:


I have rights to write a string value in the field to the right, and I have rights to create a key below ConsentStore.
Do you want me to try and add something there?

Not sure what you mean by the URL thing, but it’s the URL I have been using all the time. I have it saved in a txt file together with the token, I just copy paste the same values each time I change version.