Printer: P1S (I have two others and an X1C I could test with, if I figure out how to throw two codes at once.)
This will be a tricky one to test since it requires a printer to have multiple active HMS errors at a given time.
Preamble: I have two automations that run when an HMS code appears. One that writes the following attributes of the binary sensor for HMS codes: 1-Code, 1-Error, 1-Wiki, 2-Code … 5-Wiki to text helpers, and a second that send a notification to my phone with details. If at all possible I’d like to try to keep using helpers so I can look back and have a history once codes are cleared.
I had things working with one HMS code, but then discovered it’s possible to have multiple codes active at once and had to retool things. Today was the first test of my system and I had a snafu.
I’ve attached screenshots of the attributes that had issue. My automation successfully set the helpers for 1-Code, 1-Error, 1-Wiki, 2-Code, 2-Wiki, and 3-Code, 3-Error, and 3 Wiki, but not 2-Error.
I tried everything that came to mind and was able to write other attributes to the helper in question and get it to display correctly, but no matter what I tried, I couldn’t write 2-Error to any helpers.
Curiously, using the debug feature on the template, the correct information is being displayed. (And it would display in a markdown card) but I couldn’t write this to a text helper.
Any thoughts?