So that is not a problem hmm could this to do do something with say calls to api i will try to toubleshoot tomorrow I don’t have any spare time today sorry
No worries.
I’m quite happy with the version I have.
It works for the things I need
I know but i would like to get it working with new one there is a lot of performance gain and security, it would help if you could contact me on discord so tomorrow we could finish bug fixing in no time JonatanRek#6041
Edit: also in your version i problem that notification will stop working after 8h, hopefully i will manage to fix those bugs tomorrow
Sorry but I don’t have a discord account. I don’t think so at least.
This is really cool. Well done again!!
? I am not Shure that i understand what you mean ?
In that case your notification only works on Local network right ?
Yep, that or with a vpn.
would be possible to ask you for help ? I am really clueless right now
Sure, help with what exactly?
Please test latest build it will not send data only register device and sensors but it will show me if i fixed the bug.
https://github.com/GamerClassN7/HA_Desktop_Companion/releases/download/0.0.1-alpha-7/win-x64_crash_Fix.zip
Well from what I read he has little local rights, so perhaps you’re writing/reading something that he doesn’t have access to. Could be filesystem, reg or wmi.
Glancing at your code, you don’t seem to have much error-handling, so it’s difficult to determine exactly what/where. Try wrapping your code in try-catch blocks, especially at the starting points - for instance, private void Window_Loaded()
. Make sure you write the exception stack info, so you can determine what’s going wrong.
This way you can also decide if an exception is fatal, ie. your app won’t be able to continue, or you just notify your user and keep the app running.
I registered Global Unhandeled Error Exception to log all Error at one Clean and simple solution thanks for advice
It has not yet crashed.
[20220825T133705]-MAIN ->LOADED
[20220825T133717]-MAIN-Registration Clicked
[20220825T133717]-MAIN-configuration.yaml LOADED
[20220825T133717]-MAIN-URL:https://NABU_CASA.ui.nabu.casa/
[20220825T133718]-API -> connection Verified:True
[20220825T133718]-MAIN-URL-STATUS:Validated
[20220825T133719]-{"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}}
[20220825T133719]-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}}
[20220825T133720]-API <- "{\"cloudhook_url\":\"SOMETHING\",\"remote_ui_url\":\"https://NABU_CASA.ui.nabu.casa\",\"secret\":null,\"webhook_id\":\"SOMETHIN_ELSE\"}"
[20220825T133720]-{"cloudhook_url":"SOMETHING","remote_ui_url":"https://NABU_CASA.ui.nabu.casa","secret":null,"webhook_id":"SOMETHIN_ELSE"}
[20220825T133720]-MAIN-Device Registere in API
[20220825T133720]-MAIN -> Entity Registration
[20220825T133721]-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"}
[20220825T133721]-API <- "{\"success\": true}"
[20220825T133721]-{"success":true}
[20220825T133721]-API = battery_level - Sensor Sucesfully Registered
[20220825T133722]-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"}
[20220825T133722]-API <- "{\"success\": true}"
[20220825T133722]-{"success":true}
[20220825T133722]-API = battery_state - Sensor Sucesfully Registered
[20220825T133724]-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"}
[20220825T133724]-API <- "{\"success\": true}"
[20220825T133724]-{"success":true}
[20220825T133724]-API = cpu_temp - Sensor Sucesfully Registered
[20220825T133725]-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"}
[20220825T133725]-API <- "{\"success\": true}"
[20220825T133725]-{"success":true}
[20220825T133725]-API = free_ram - Sensor Sucesfully Registered
[20220825T133727]-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"}
[20220825T133727]-API <- "{\"success\": true}"
[20220825T133727]-{"success":true}
[20220825T133727]-API = cpu_usage - Sensor Sucesfully Registered
[20220825T133728]-API -> {"data":{"unique_id":"wifi_state","name":"Wifi State","type":"sensor","state":"","icon":"mdi:wifi"},"type":"register_sensor"}
[20220825T133728]-API <- "{\"success\": true}"
The debug app kind of woke up even though it shouldn’t have (?)
The log has stopped responding now. Nothing has been written in a few minutes but the app is still running.
I can try one of the newer versions on my own computer when I get home, I have admin rights on that computer.
By the looks of it seems to be working
I tried to click on Quit but the window does not go away, but clicking the X after quit seems to exit the app.
I tried to start it again and it seems to work again.
The only little thing I see is that the log seems to write a partial entry.
[20220825T133728]-API -> {"data":{"unique_id":"wifi_state","name":"Wifi State","type":"sensor","state":"","icon":"mdi:wifi"},"type":"register_sensor"}
[20220825T133728]-API <- "{\"success\": true}"
[202208[20220825T134950]-MAIN ->LOADED # here
[20220825T135004]-MAIN-Registration Clicked
[20220825T135004]-MAIN-configuration.yaml LOADED
.....
....
...
[20220825T135014]-API = cpu_usage - Sensor Sucesfully Registered
[20220825T135015]-API -> {"data":{"unique_id":"wifi_state","name":"Wifi State","type":"sensor","state":"","icon":"mdi:wifi"},"type":"register_sensor"}
[20220825T135015]-API <- "{\"success\": true}"
[202208 # and here
This is the last lines of each run.
If the app still crashes without being able to write its log, it might be a problem with preparing the logger
A global catch-all does make it harder to properly act upon specific exceptions, but it’s fine for rapid development I guess. Make sure you get the startup procedure stable though, avoid initialising stuff that might fail without having a working logger.
try this version Release Smash All the BUGS !!! · GamerClassN7/HA_Desktop_Companion · GitHub should not crash and also should report the data notifications are next
I done exactly that i rewrited who Main Thread of app as you can see on github
It’s working!
But the microphone and camera in use is stuck at on
.
Sorry about the long log here but it seems to detect it but not send it.
[20220825T142121]-API DATA -> camera_in_use - True
[20220825T142121]-API DATA -> microphone_in_use - True
[20220825T142121]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142121]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142121]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142121]-API DATA -> free_ram - 452328
[20220825T142121]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142121]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142122]-API DATA SKIP -> cpu_usage - 62==62-SAME !
[20220825T142122]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"Settings – Home Assistant och 12 sidor till - Arbete – Microsoft? Edge","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.73204861111111,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"free_ram","type":"sensor","state":452328,"icon":"mdi:clock"}],"type":"update_sensor_states"}
[20220825T142122]-API CODE <- OK
[20220825T142122]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}}"
[20220825T142130]-MAIN-Syncer Tick n:5
[20220825T142131]-API DATA -> free_ram - 404764
[20220825T142131]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142131]-API DATA -> currently_active_window - Settings – Home Assistant och 12 sidor till - Arbete – Microsoft? Edge
[20220825T142131]-API DATA -> uptime - 22,734848055555556
[20220825T142131]-API DATA -> camera_in_use - True
[20220825T142131]-API DATA -> microphone_in_use - True
[20220825T142131]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142131]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142132]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142132]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142132]-API DATA -> cpu_usage - 100
[20220825T142132]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142132]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142132]-API -> {"data":[{"unique_id":"free_ram","type":"sensor","state":404764,"icon":"mdi:clock"},{"unique_id":"currently_active_window","type":"sensor","state":"Settings – Home Assistant och 12 sidor till - Arbete – Microsoft? Edge","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.734848055555556,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"cpu_usage","type":"sensor","state":100,"icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142132]-API CODE <- OK
[20220825T142132]-API <- "{\"free_ram\": {\"success\": true}, \"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142140]-MAIN-Syncer Tick n:6
[20220825T142141]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142141]-API DATA -> free_ram - 628868
[20220825T142141]-API DATA -> currently_active_window - Skärmklippverktyget
[20220825T142141]-API DATA -> uptime - 22,73759972222222
[20220825T142141]-API DATA -> camera_in_use - True
[20220825T142141]-API DATA -> microphone_in_use - True
[20220825T142141]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142141]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142141]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142141]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142141]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142141]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142142]-API DATA -> cpu_usage - 67
[20220825T142142]-API -> {"data":[{"unique_id":"free_ram","type":"sensor","state":628868,"icon":"mdi:clock"},{"unique_id":"currently_active_window","type":"sensor","state":"Skärmklippverktyget","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.73759972222222,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"cpu_usage","type":"sensor","state":"67","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142142]-API CODE <- OK
[20220825T142142]-API <- "{\"free_ram\": {\"success\": true}, \"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142150]-MAIN-Syncer Tick n:7
[20220825T142151]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142151]-API DATA -> currently_active_window - Skärmklippverktyget
[20220825T142151]-API DATA -> uptime - 22,740399166666666
[20220825T142151]-API DATA -> camera_in_use - True
[20220825T142151]-API DATA -> microphone_in_use - True
[20220825T142151]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142151]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142151]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142151]-API DATA -> free_ram - 602772
[20220825T142151]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142151]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142151]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142152]-API DATA -> cpu_usage - 49
[20220825T142152]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"Skärmklippverktyget","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.740399166666666,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"free_ram","type":"sensor","state":602772,"icon":"mdi:clock"},{"unique_id":"cpu_usage","type":"sensor","state":"49","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142152]-API CODE <- OK
[20220825T142152]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142200]-MAIN-Syncer Tick n:8
[20220825T142201]-API DATA -> currently_active_window - HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge
[20220825T142201]-API DATA -> uptime - 22,743255
[20220825T142201]-API DATA -> camera_in_use - True
[20220825T142201]-API DATA -> microphone_in_use - True
[20220825T142201]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142202]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142202]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142202]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142202]-API DATA -> free_ram - 600316
[20220825T142202]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142202]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142202]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142203]-API DATA -> cpu_usage - 97
[20220825T142203]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.743255,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"free_ram","type":"sensor","state":600316,"icon":"mdi:clock"},{"unique_id":"cpu_usage","type":"sensor","state":"97","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142203]-API CODE <- OK
[20220825T142203]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142210]-MAIN-Syncer Tick n:9
[20220825T142210]-API DATA -> currently_active_window - HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge
[20220825T142210]-API DATA -> uptime - 22,745824444444445
[20220825T142210]-API DATA -> camera_in_use - True
[20220825T142210]-API DATA -> microphone_in_use - True
[20220825T142210]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142211]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142211]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142211]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142211]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142211]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142211]-API DATA -> free_ram - 553448
[20220825T142211]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142212]-API DATA -> cpu_usage - 40
[20220825T142212]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.745824444444445,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"free_ram","type":"sensor","state":553448,"icon":"mdi:clock"},{"unique_id":"cpu_usage","type":"sensor","state":"40","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142212]-API CODE <- OK
[20220825T142212]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142220]-MAIN-Syncer Tick n:10
[20220825T142220]-API DATA -> currently_active_window - HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge
[20220825T142220]-API DATA -> uptime - 22,748606666666667
[20220825T142220]-API DATA -> camera_in_use - True
[20220825T142220]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142220]-API DATA -> microphone_in_use - True
[20220825T142221]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142221]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142221]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142221]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142221]-API DATA -> free_ram - 544728
[20220825T142221]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142221]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142222]-API DATA -> cpu_usage - 56
[20220825T142222]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.748606666666667,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"free_ram","type":"sensor","state":544728,"icon":"mdi:clock"},{"unique_id":"cpu_usage","type":"sensor","state":"56","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142222]-API CODE <- OK
[20220825T142222]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142230]-MAIN-Syncer Tick n:11
[20220825T142230]-API DATA -> currently_active_window - HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge
[20220825T142230]-API DATA -> uptime - 22,75138
[20220825T142230]-API DATA -> camera_in_use - True
[20220825T142230]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142230]-API DATA -> microphone_in_use - True
[20220825T142231]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142231]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142231]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142231]-API DATA -> free_ram - 617836
[20220825T142231]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142231]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142231]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142232]-API DATA -> cpu_usage - 33
[20220825T142232]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.75138,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"free_ram","type":"sensor","state":617836,"icon":"mdi:clock"},{"unique_id":"cpu_usage","type":"sensor","state":"33","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142232]-API CODE <- OK
[20220825T142232]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142240]-MAIN-Syncer Tick n:12
[20220825T142240]-API DATA -> currently_active_window - HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge
[20220825T142240]-API DATA -> uptime - 22,754157777777777
[20220825T142240]-API DATA -> camera_in_use - True
[20220825T142240]-API DATA -> microphone_in_use - True
[20220825T142240]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142241]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142241]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142241]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142241]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142241]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142241]-API DATA -> free_ram - 666988
[20220825T142241]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142242]-API DATA -> cpu_usage - 54
[20220825T142242]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"HA_Desktop_Companion - Share your Projects! - Home Assistant Community och 12 sidor till - Arbete – Microsoft? Edge","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.754157777777777,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"microphone_in_use","type":"binary_sensor","state":true,"icon":"mdi:microphone"},{"unique_id":"free_ram","type":"sensor","state":666988,"icon":"mdi:clock"},{"unique_id":"cpu_usage","type":"sensor","state":"54","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142242]-API CODE <- OK
[20220825T142242]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"microphone_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142250]-MAIN-Syncer Tick n:13
[20220825T142250]-API DATA -> currently_active_window - Växla mellan aktiviteter
[20220825T142250]-API DATA -> uptime - 22,756935555555554
[20220825T142250]-API DATA -> camera_in_use - True
[20220825T142250]-API DATA SKIP -> microphone_in_use - False==False-SAME !
[20220825T142250]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142251]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142251]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142251]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142251]-API DATA -> free_ram - 574600
[20220825T142251]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142251]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142251]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142252]-API DATA -> cpu_usage - 54
[20220825T142252]-API -> {"data":[{"unique_id":"currently_active_window","type":"sensor","state":"Växla mellan aktiviteter","icon":"mdi:application"},{"unique_id":"uptime","type":"sensor","state":22.756935555555554,"icon":"mdi:timer-outline"},{"unique_id":"camera_in_use","type":"binary_sensor","state":true,"icon":"mdi:camera"},{"unique_id":"free_ram","type":"sensor","state":574600,"icon":"mdi:clock"},{"unique_id":"cpu_usage","type":"sensor","state":"54","icon":"mdi:cpu-64-bit"}],"type":"update_sensor_states"}
[20220825T142252]-API CODE <- OK
[20220825T142252]-API <- "{\"currently_active_window\": {\"success\": true}, \"uptime\": {\"success\": true}, \"camera_in_use\": {\"success\": true}, \"free_ram\": {\"success\": true}, \"cpu_usage\": {\"success\": true}}"
[20220825T142300]-MAIN-Syncer Tick n:14
[20220825T142300]-API DATA -> currently_active_window - Settings – Home Assistant och 12 sidor till - Arbete – Microsoft? Edge
[20220825T142300]-API DATA -> uptime - 22,759713333333334
[20220825T142300]-API DATA SKIP -> camera_in_use - False==False-SAME !
[20220825T142300]-API DATA SKIP -> microphone_in_use - False==False-SAME !
[20220825T142300]-API DATA SKIP -> location_in_use - False==False-SAME !
[20220825T142301]-API DATA SKIP -> battery_state - Fully Charged==Fully Charged-SAME !
[20220825T142301]-API DATA SKIP -> cpu_temp - ==-SAME !
[20220825T142301]-API DATA SKIP -> is_charging - True==True-SAME !
[20220825T142301]-API DATA -> free_ram - 807188
[20220825T142301]-API DATA SKIP -> wifi_ssid - ==-SAME !
[20220825T142301]-API DATA SKIP -> wifi_state - ==-SAME !
[20220825T142301]-API DATA SKIP -> battery_level - 100==100-SAME !
[20220825T142302]-API DATA -> cpu_usage - 31
in that case you computer is requiring access to thos stuff i am getting values right from registers .
maybe some of your company apps is aquiring them
if you go to registers i show you yesterday sup dir /microphone/ and then threw each folder and subfolder you should find key = 0 that meat that app is using mic