sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
613 stars 54 forks source link

Custom command state retained causing switch in HA to stay on #121

Closed mkono87 closed 2 years ago

mkono87 commented 2 years ago

I have a suspend command that works well the problem I noticed is when the command executes the mqtt payload/status is set to retained. This means the switch stays on in HA and the next time I want to use it I cant because its already on. I have been deleting the entry in MQTT Explorer so it removes the entity and add its again.

Here is my command {"Type":"CustomCommand","Id":"d46ae83d-5bcf-44de-845f-d16a4f7c31d8","Name":"MikePC Sleep","Command":"rundll32.exe powrprof.dll,SetSuspendState 0,1,0","KeyCode":0}

SecretiveShell commented 2 years ago

I will look into it!

Syralist commented 2 years ago

Same as #54.

sleevezipper commented 2 years ago

@SecretiveShell fixed this in #122 so I'll close this and it will be included in next release!