H
HASS.Agent•5mo ago
Amadeo

Satellite service not respecting "round", "ignore availability" and "advanced issues"

@SpikeyGG I've created a thread here so it's easier to have the conversation confined 😄
48 Replies
Amadeo
AmadeoOP•5mo ago
GitHub
Release 2.1.0-beta3-service-sensor-settings2 · amadeo-alex/HASS.Agent
Please do not download files from this "release" It's only purpose if to provide testing bed for the insiders/issue reporters. Unless explicitly instructed by the developers, please d...
Amadeo
AmadeoOP•5mo ago
and it saved the sensors properly: https://b.chihi.ro/hSMtkg.png
SpikeyGG
SpikeyGG•5mo ago
Thank you for the segregation. Is this one different than the one I installed a week ago?
Amadeo
AmadeoOP•5mo ago
but since previously it didn't for you I think (unless you've used a older one) I'd like to ask you to try again with installing it and then testing
SpikeyGG
SpikeyGG•5mo ago
Looks like the same binary. I'll try it again this evening and respond here with the results.
Amadeo
AmadeoOP•5mo ago
if it still fails I'll give it a day of thinking and if nothing comes up we can have a chat or something so I can see it live (only if you'd be up to it of course)
SpikeyGG
SpikeyGG•5mo ago
Should I uninstall the version I have installed before running the new installer?
Amadeo
AmadeoOP•5mo ago
no shouldn't be required you've installed it into the default paths that installers suggest?
SpikeyGG
SpikeyGG•5mo ago
Yes Hey @Amadeo, I just installed the new version and I tried to add the cpuload and it still doesn't send it to HA.
Amadeo
AmadeoOP•5mo ago
When you navigate back to the satellite sensors, is it there? Are the mqtt messages of this sensor visible in MQTT.Explorer?
SpikeyGG
SpikeyGG•5mo ago
when I close the sensor window and immediately open it back up the cpuload sensor I just created is gone. I launched MQTT Explorer and connected to my MQTT host but it's weird, I don't see all the sensor data in the MQTT Explorer window...
{"serial_number":"70626406-03d3-45e9-b301-222150d03103","device":{"identifiers":"hass.agent-Deckard","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.19045.0","name":"Deckard","sw_version":"2.1.0-beta2"},"apis":{"notifications":true,"media_player":true}}
{"serial_number":"70626406-03d3-45e9-b301-222150d03103","device":{"identifiers":"hass.agent-Deckard","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.19045.0","name":"Deckard","sw_version":"2.1.0-beta2"},"apis":{"notifications":true,"media_player":true}}
this is the whole string for Deckard, my computer with HASS.Agent on it.
Amadeo
AmadeoOP•5mo ago
you should have a topic like this "homeassistant/sensor/AMADEO-PC-satellite" - with different device name ofc - that contains the sensors for example (and same for commands) one more thing oh my could you please screenshto me the modification dates of exe files for both client and service? I think I know why it fails oh, no the 2.1.0-beta3-service-sensor-settings2 linked above already has the installer fix but the screenshots would help anyway
SpikeyGG
SpikeyGG•5mo ago
it looks like this one is old, it's from C:\Program Files\HASS.Agent Satellite Service\Service\
No description
SpikeyGG
SpikeyGG•5mo ago
Here's the HASS.Agent.exe file:
No description
SpikeyGG
SpikeyGG•5mo ago
thanks for the path to the mqtt item! it looks like I have the sensor defined in the mqtt and it's getting updated but it isn't defined in the satellite service.
No description
Amadeo
AmadeoOP•5mo ago
in theory the "June 26th" is correct, what gives then and why in the world I cannot reproduce it what timezone are you in? I'm closer and closer to proposing a call (or just a screen share with text chat if you'd prefer) because I'm starting to run out of ideas
SpikeyGG
SpikeyGG•5mo ago
I'm in MDT I wonder if I need to remove it from MQTT retained messages so it adds properly in the sensor window.
SpikeyGG
SpikeyGG•5mo ago
actually, it doesn't look like it's removing any of the old retained values... from my testing with lots of different names... interestingly after a reboot I don't see cpuload on there now:
No description
SpikeyGG
SpikeyGG•5mo ago
every value in the list shows a datestamp for right now... even though they don't exist in the satellite sensor window.
SpikeyGG
SpikeyGG•5mo ago
I went through the MQTT list with explorer and removed all the stuff that shouldn't be there. It seems trying to remove the lastboot value, the satellite service just puts it back.
No description
SpikeyGG
SpikeyGG•5mo ago
I don't have lastboot in my list of sensors for the satellite, I guess it must be one built-in sensor. ok, so after removing all the chaff, I checked my satellite service list and there was no cpu_load so I added it and watched everything. I can see that it wasn't added to the MQTT explorer and nothing showed up in HA-->Settings-->Devices & Services-->MQTT-->Deckard. I think the old values that I found in there were created by an older version of the application or something.
Amadeo
AmadeoOP•5mo ago
I'll be hones that doesn't make sens I mean not that I don't belive of course 😄 but in terms of "how could this happen" last what I can suggest is to fully uninstall hass-agent & satellite (and to make sure the folders where they were installed are empty) and then installing again because for the life of me I cannot reproduce it
SpikeyGG
SpikeyGG•5mo ago
I'll give that a try. Should I use the binaries at this URL? https://github.com/amadeo-alex/HASS.Agent/releases/tag/2.1.0-beta3-service-sensor-settings2
Amadeo
AmadeoOP•5mo ago
Yeah
Amadeo
AmadeoOP•5mo ago
GitHub
Release 2.1.0-beta3-testbuild1 · amadeo-alex/HASS.Agent
Please do not download files from this "release" It's only purpose if to provide testing bed for the insiders/issue reporters. Unless explicitly instructed by the developers, please d...
SpikeyGG
SpikeyGG•5mo ago
I uninstalled everything and was checking the directories and manually removing anything left and it wouldn't let me delete C:\Program Files\HASS.Agent Satellite Service\Service\HASS.Agent.Satellite.Service because it was 'in-use' even though the service had been stopped and removed! Anyway, I restarted my computer and deleted it after that but I wonder if that could be causing some issues if the installation app isn't able to replace the file because it's in use. lol, after installing everything and then trying to add the cpuload, the problem persists and never makes it to Home Assistant. 😦
Amadeo
AmadeoOP•5mo ago
That's strange, if service is stopped there shouldn't be anything using the files (unless some logs/config was open in text editor) And it's not visible in the ui I assume? If not, let me know when (including timezone :D) you'd be up for a call or just screenshare - that's the last I can do to investigate it
SpikeyGG
SpikeyGG•5mo ago
Yeah, when I add it, it shows up in the window but doesn't appear in Home Assistant, if I just close the Satellite config window and reopen it, the entry is gone. What timezone are you in? I'll see if I can organize something that works for both of us. I'm at work at the moment but later this evening might work, if your time is okay too.
Amadeo
AmadeoOP•5mo ago
CEST aka GMT+2 it's 20:42 here atm
SpikeyGG
SpikeyGG•5mo ago
I'm thinking maybe this Saturday morning MDT if that timeframe works for you, it should be your Saturday afternoon, I think. My 8am = your 4pm, I think. might be later than 8am/4pm, turns out I'm getting to bed really late. 😕
Amadeo
AmadeoOP•5mo ago
I'm out today but if I'm back in sensible hours (waf) I'll ping you 😄 And if not then maybe tmrw
SpikeyGG
SpikeyGG•5mo ago
that sounds good.. turns out I got up at 6am anyway. lol
Amadeo
AmadeoOP•4mo ago
I had some unexpected events going on will try to catch up with you during the weekend apologies
SpikeyGG
SpikeyGG•4mo ago
no worries @Amadeo. If you think of anything I can try in the meantime, I'll do it.
Amadeo
AmadeoOP•2mo ago
I've found more issures regarding saving commands and sensors of satellite service I'll be included in 2.1.0 full release which should happen today let's see if this changes something
SpikeyGG
SpikeyGG•2mo ago
I installed the 2.1.0 release from here: https://github.com/hass-agent/HASS.Agent/releases/tag/2.1.0 and after installing the agent and satellite service, I loaded the sattelite settings and tried to add the cpuload and, sadly, it still doesn't show up in Home Assistant after hitting the "Send & Activate Sensors" button. 😕
Amadeo
AmadeoOP•2mo ago
damnnit does it at least stay in as configured one within hass.agent ui? or it dissapears?
SpikeyGG
SpikeyGG•2mo ago
oh, let me see... yeah, when I hit "Send & Activate Sensors" nothing happens on the HA side. Then I just close the Satellite Service Configuration window and reopen it, navigate to the Sensors tab and the entry is gone. I don't need to change the configuration of cpuload, at all - take defaults.
Amadeo
AmadeoOP•2mo ago
could you please go to the satellite service installation path and check the newest logs for something like this:
2024-09-29 15:28:14.442 +02:00 [INF] [MAIN] Version: 2.1.0.0
2024-09-29 15:28:14.442 +02:00 [INF] [MAIN] Version: 2.1.0.0
?
SpikeyGG
SpikeyGG•2mo ago
yes, I see it: 2024-09-28 07:05:03.842 -06:00 [INF] [MAIN] Version: 2.1.0.0 in this file: C:\Program Files\HASS.Agent Satellite Service\Service\logs\2024-09-28_HASS.Agent.Satellite.Service_20240928.log I noticed something else -- I'm trying to get the media player working but I'm having a hard time getting HA to not show it as 'unavailable'. When I try to perform a reload on the HA device, it seems to fail and lock up the component.
SpikeyGG
SpikeyGG•2mo ago
No description
SpikeyGG
SpikeyGG•2mo ago
with the latest update of Home Assistant it looks like the sensors are changing units on me even though I'm not messing with the service settings.
No description
Amadeo
AmadeoOP•2mo ago
ok now I'm lost, the version is ok, I thought it didn't update properly... one last try with this hunch - what is the modification date and size of the satellite exe file (in C:\Program Files\HASS.Agent Satellite Service\Service)(
SpikeyGG
SpikeyGG•2mo ago
it has a date of 9/27/2024 @ 9:26pm
SpikeyGG
SpikeyGG•2mo ago
No description
Amadeo
AmadeoOP•2mo ago
ffs
SpikeyGG
SpikeyGG•2mo ago
yeah, I know. 😭
Amadeo
AmadeoOP•2mo ago
there was a similar issue on GH where the person basically wiped all hass.agent (only the forked one of course) and then installed again supposedly it solved the issue but why I still need to know why
Want results from more Discord servers?
Add your server