Skip to content

2021

Rack em up - Adding a proper rack

I have a few pieces of enterprise gear for my home network. I have my server, a few 10/40G POE switches, and some other odds and ends. So far, its been stacked on boxes and buckets inside of my spare bedroom’s closet.

So, over the last two weeks, I started a project to clean everything up a little bit.

Macro Rendering Error

File: blog/posts/Home-Automation/2021/fireplace-automation-part-3.md

UndefinedError: 'is_state' is undefined

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/mkdocs_macros/plugin.py", line 688, in render
    return md_template.render(**page_variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 35, in top-level template code
  File "/usr/local/lib/python3.11/site-packages/jinja2/utils.py", line 83, in from_obj
    if hasattr(obj, "jinja_pass_arg"):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'is_state' is undefined

Full local Z-Wave HVAC Control

Introduction

My house has had a Emerson Sensi thermostat for the last 6 or 7 servers. While, this thermostat has served its purpose, and worked reliably (locally), I have had the ongoing issue of having to integrate it into my Home Assistant by using it through the Smart Things Integration. This cloud integration randomly stops working, and does not give very much warning regarding its status.

Normally, this wouldn’t be a huge issue, but, a few years back, I automated my fireplace. So, my fireplace will kick on during the day, to avoid heating the entire house, saving energy. Since, the fireplace bases its temp on the MAIN thermostat located in the center of the house, its important to have somewhat accurate details.

So, I have decided to upgrade both the fireplace, as well as my thermostat, to leverage z-wave.

An anonymous request was received in between authentication handshake requests

I was receiving this error while hosting a webapi project on .net 5, using kestrel.

fail: Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler[5]
      An exception occurred while processing the authentication request.
      System.InvalidOperationException: An anonymous request was received in between authentication handshake requests.
         at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HM6A34N67LO5", Request id "0HM6A34N67LO5:00000005": An unhandled exception was thrown by the application.
      System.InvalidOperationException: An anonymous request was received in between authentication handshake requests.
         at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
         at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
         at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
         at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
         at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
         at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

Macro Rendering Error

File: blog/posts/Home-Automation/2021/2021-01-RTL_433.md

UndefinedError: 'value_json' is undefined

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/mkdocs_macros/plugin.py", line 688, in render
    return md_template.render(**page_variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 268, in top-level template code
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 487, in getattr
    return getattr(obj, attribute)
           ^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'value_json' is undefined