hass-workstation-service icon indicating copy to clipboard operation
hass-workstation-service copied to clipboard

Sensors don't appear when adding on first run

Open dsellers1 opened this issue 3 years ago • 4 comments

TL:DR - If you run into this problem, in Task Manager, End Task for hass-workstation-service. Restart the service by double-clicking the icon. (Note: I had to restart the service twice before it showed up; first time started the service, second time opened the Settings window.)

On September 23, Discord user r3wind posted the following regarding newly created sensors not appearing. [7:08 AM] r3wind: hello [7:09 AM] r3wind: is there a known bug where newly created sensors dont appear in the list so they can be modified? [7:09 AM] r3wind: win10 [7:20 AM] stboch: have your tried opening and closing the UI? [7:28 AM] r3wind: yep, although I can see the json files and they are populated the UI shows empty, incl MQTT etc [7:31 AM] stboch: I remember having a similar problem at some point can't remember what I did to fix it though 🙃 [7:31 AM] stboch: have you tried a restart? [8:36 AM] r3wind: nah not yet, what is the name of the windows service it creates? [8:40 AM] r3wind: killed the process and now it works

On November 10, I posted in Discord: [4:32 PM] d_sellers1: So I had the same problem that @r3wind described (sensors not showing when added even though was receiving in MQTT). Killed task like he did and restarted the program. Sensors now visible. (Windows 11 Home, HA 2021.10.6)

After conversation with badbummer, I killed the task in Task Manager, uninstalled and removed the $appdata%/Local/Hass Workstation Service in order to try to recreate the problem.

I reinstalled, Set up connection = All Good. Added ActiveWindowSensor but it did not appear. {"@t":"2021-11-13T22:16:32.4367927Z","@m":"reading configured mqttbroker from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\mqttbroker.json","@i":"a760ed83"} {"@t":"2021-11-13T22:16:32.4776005Z","@m":"C:\\Users\\derek\\AppData\\Local\\Apps\\2.0\\76LCN5KP.OTW\\TOKC3GM1.41E\\hass..tion_86593894fdd70b70_0001.0000_50d23eae027b2f44\\UserInterface.exe","@i":"9c96a7cb"} {"@t":"2021-11-13T22:16:32.6539880Z","@m":"reading configured commands from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\configured-commands.json","@i":"706a6665"} {"@t":"2021-11-13T22:16:32.6576116Z","@m":"reading configured sensors from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\configured-sensors.json","@i":"8d90beec"} {"@t":"2021-11-13T22:16:32.6633930Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:32.7221863Z","@m":"Application started. Press Ctrl+C to shut down.","@i":"dcaefe54","SourceContext":"Microsoft.Hosting.Lifetime"} {"@t":"2021-11-13T22:16:32.7236583Z","@m":"Hosting environment: \"Production\"","@i":"c3307c92","envName":"Production","SourceContext":"Microsoft.Hosting.Lifetime"} {"@t":"2021-11-13T22:16:32.7242863Z","@m":"Content root path: \"C:\\Users\\derek\\AppData\\Local\\Apps\\2.0\\76LCN5KP.OTW\\TOKC3GM1.41E\\hass..tion_86593894fdd70b70_0001.0000_50d23eae027b2f44\"","@i":"b5d60022","contentRoot":"C:\\Users\\derek\\AppData\\Local\\Apps\\2.0\\76LCN5KP.OTW\\TOKC3GM1.41E\\hass..tion_86593894fdd70b70_0001.0000_50d23eae027b2f44","SourceContext":"Microsoft.Hosting.Lifetime"} {"@t":"2021-11-13T22:16:33.6967527Z","@m":"reading configured mqttbroker from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\mqttbroker.json","@i":"a760ed83","threadId":4} {"@t":"2021-11-13T22:16:34.6857871Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:36.6986498Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:38.7046460Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:40.7181000Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:42.7375566Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:44.7399962Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:46.7554552Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:48.7574213Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:50.7739980Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:52.7924571Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:54.7978438Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:56.8021751Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:16:58.8166223Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:17:00.8285659Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:17:02.8340847Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:17:03.4012999Z","@m":"writing configured mqttbroker to: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\mqttbroker.json","@i":"84035ca0","threadId":4} {"@t":"2021-11-13T22:17:03.4498671Z","@m":"reading configured mqttbroker from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\mqttbroker.json","@i":"a760ed83","threadId":4} {"@t":"2021-11-13T22:17:03.5102492Z","@m":"Replacing Mqtt client with new config","@i":"11c0ba30","SourceContext":"hass_workstation_service.Communication.MqttPublisher","threadId":4} {"@t":"2021-11-13T22:17:04.8495757Z","@m":"Connected. Sending auto discovery messages.","@i":"1dee18c9","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:17:21.9315020Z","@m":"writing configured sensors to: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\configured-sensors.json","@i":"7fe554c1","threadId":23}

I closed & reopened Settings but the sensor still not appear. I ended task in Task Manager. Double-clicked to start. Started task but Settings window did not appear (but this could be normal). Double-clicked again and now the sensor is visible. {"@t":"2021-11-13T22:18:55.2388135Z","@m":"C:\\Users\\derek\\AppData\\Local\\Apps\\2.0\\76LCN5KP.OTW\\TOKC3GM1.41E\\hass..tion_86593894fdd70b70_0001.0000_50d23eae027b2f44\\UserInterface.exe","@i":"9c96a7cb"} {"@t":"2021-11-13T22:19:34.4580005Z","@m":"reading configured mqttbroker from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\mqttbroker.json","@i":"a760ed83"} {"@t":"2021-11-13T22:19:34.5077392Z","@m":"reading configured commands from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\configured-commands.json","@i":"706a6665"} {"@t":"2021-11-13T22:19:34.5111204Z","@m":"reading configured sensors from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\configured-sensors.json","@i":"8d90beec"} {"@t":"2021-11-13T22:19:34.5192180Z","@m":"Connecting to MQTT broker...","@i":"9f461a72","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:19:34.5289680Z","@m":"Application started. Press Ctrl+C to shut down.","@i":"dcaefe54","SourceContext":"Microsoft.Hosting.Lifetime"} {"@t":"2021-11-13T22:19:34.5304670Z","@m":"Hosting environment: \"Production\"","@i":"c3307c92","envName":"Production","SourceContext":"Microsoft.Hosting.Lifetime"} {"@t":"2021-11-13T22:19:34.5310657Z","@m":"Content root path: \"C:\\Users\\derek\\AppData\\Local\\Apps\\2.0\\76LCN5KP.OTW\\TOKC3GM1.41E\\hass..tion_86593894fdd70b70_0001.0000_50d23eae027b2f44\"","@i":"b5d60022","contentRoot":"C:\\Users\\derek\\AppData\\Local\\Apps\\2.0\\76LCN5KP.OTW\\TOKC3GM1.41E\\hass..tion_86593894fdd70b70_0001.0000_50d23eae027b2f44","SourceContext":"Microsoft.Hosting.Lifetime"} {"@t":"2021-11-13T22:19:36.5279351Z","@m":"Connected. Sending auto discovery messages.","@i":"1dee18c9","SourceContext":"hass_workstation_service.Worker"} {"@t":"2021-11-13T22:19:52.0648669Z","@m":"reading configured mqttbroker from: C:\\Users\\derek\\AppData\\Local\\Hass Workstation Service\\mqttbroker.json","@i":"a760ed83","threadId":12} {"@t":"2021-11-13T22:19:51.2698487Z","@m":"C:\\Users\\derek\\AppData\\Local\\Apps\\2.0\\76LCN5KP.OTW\\TOKC3GM1.41E\\hass..tion_86593894fdd70b70_0001.0000_50d23eae027b2f44\\UserInterface.exe","@i":"9c96a7cb"}

I added a second sensor. It appears but in a scrollbox. Closed and re-open and it appears fine. Subsequent sensors get added to the scrollbox again and the process repeats. https://imgur.com/a/oEvgQH4 (Edit: Had to retake screenshot. Here, I added a third sensor which is not visible due to the scrollbox but it is visible when scrolled.)

(EDIT2: New version installed. Same glitch when adding first sensor. Had to End Task and restart (x2). Did not have the issue with the scrollbox this time because the UI now has a defined scrollbox area.)

dsellers1 avatar Nov 14 '21 01:11 dsellers1

The link to the image on discords CDN is broken. Would you be able to upload it to a service such as imgur?

SecretiveShell avatar Nov 14 '21 09:11 SecretiveShell

The link to the image on discords CDN is broken. Would you be able to upload it to a service such as imgur?

Done. Also, updated with a little bit of updated information with newest version.

dsellers1 avatar Nov 14 '21 16:11 dsellers1

Discord user Yersinia reported the same issue running on Win10 20H2.

dsellers1 avatar Nov 15 '21 01:11 dsellers1

This issue may be related to #78 .

dsellers1 avatar Nov 16 '21 09:11 dsellers1