Closed haarts closed 1 month ago
Hey there @jpbede, mind taking a look at this issue as it has been labeled with an integration (rest_command
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
rest_command documentation rest_command source (message by IssueLinks)
The binary sensor wont work as you're pointing to http://19.168.178.191:8000/lights
instead of http://192.168.178.191:8000/lights
🙂 Furthermore, REST has nothing to do with the RESTful command, these are two separate integrations.
Could you please enable the debug log for the RESTful command:
logger:
logs:
homeassistant.components.rest_command: debug
The binary sensor wont work as you're pointing to
http://19.168.178.191:8000/lights
instead ofhttp://192.168.178.191:8000/lights
🙂
Sweet lord... Accept my humble gratitude. This has been vexing me for hours.
I've added the suggested snippet to the configuration.yaml
file. I'll report back in 12 hours once the automation ran.
I've updated HA prior to finding the log file, to 2024.9.2 and I think that tossed the logs files. I'll try again tomorrow!
Found it still! And now I know what the problem is. My now working lights
binary sensor actually gave me the hint! They worked fine right up until midnight. And then again after 6 in the morning. Then I remembered, some time ago I configured my network to go down between those hours...
The fault was entirely mine. Again. Sorry for the noise.
The problem
I have a small automation in which the weather forecast is send to a tiny e-ink display driven by a Raspberry Pi Zero and some Python code.
For this purpose I made a REST command that takes a forecast and POSTs it to my Pi. This REST command works as expected. The weather report shows on my e-ink display.
However, it fails, when used in an automation and only when the automation is automatically triggered. The entire automation works when I manually run it.
You'll notice that the error (pasted down below) is a timeout. This is patently false. The Pi is up and responsive. No request is received on the Pi. Again, if I trigger the automation manually everything works as expected.
I'm a bit at a loss on how to debug this further.
What version of Home Assistant Core has the issue?
core-2024.9.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Automation
Link to integration documentation on our website
https://www.home-assistant.io/integrations/rest_command/
Diagnostics information
No response
Example YAML snippet
This sensor never shows up under entities. There's a log entry that is relevant:
Somehow the setup of this sensor times out too! And yes, I've checked the server feeding this sensor. It is up and running.