Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status unknown for xxx.xxx.xxx.xxx. Double check IP Address\Hostname in Tasmota Settings. #155

Closed
augustozanellato opened this issue Jul 7, 2021 · 9 comments · Fixed by #158
Labels
bug Something isn't working solved workaround documented or fix applied

Comments

@augustozanellato
Copy link

Already tried installing the RC version but still getting the same error, checking the debug logs looks like the connection with tasmota itself is working fine but there's an exception within the plugin code

[2021-07-07 08:50:59,446] ERROR: Invalid ip or unknown error connecting to xxx.xxx.xxx.xxx.
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_tasmota/__init__.py", line 537, in check_status
    [plugip, plugidx, today.isoformat(' '), c, p, t, v])
sqlite3.InterfaceError: Error binding parameter 3 - probably unsupported type.
@augustozanellato
Copy link
Author

augustozanellato commented Jul 7, 2021

Now it randomly started working, leaving the issue open in case you want to still troubleshoot this issue
EDIT: looks like it stopped working after a server restart

@jneilliii jneilliii added the bug Something isn't working label Jul 7, 2021
@jneilliii
Copy link
Owner

interesting, possibly a race condition. does your tasmota have a sensor attached or a POW R2 or other power monitoring device?

@augustozanellato
Copy link
Author

interesting, possibly a race condition. does your tasmota have a sensor attached or a POW R2 or other power monitoring device?

Yup, it’s a sonoff dual r3 so two channels each independently power monitored

@jneilliii
Copy link
Owner

could you enable polling if not already using it and let it run for a bit and then share your debug log here please? I'd like to see if that error is consistently happening or in a specific combination of timings. I only have a single relay device to test with and while developing that part of the plugin for power monitoring.

@augustozanellato
Copy link
Author

Here it is (be aware it's a 10mb text file), just edited out some personal infos. Pooling was set @ 1 minute because I often trigger the sonoff using mqtt.
plugin_tasmota_debug.log

@jneilliii
Copy link
Owner

I think I might have an idea of the cause of the issue. With a single relay device the values returned for Power, Current, etc. is a single value. In your response it comes back as a list of values. I didn't think to account for that. I'll have an update shortly in the release candidate channel for you to test for me.

@jneilliii
Copy link
Owner

might be fixed with the above commit and included with 1.0.4rc5 version. Just change the release candidate setting for the plugin in OctoPrint's Software Update settings to Release Candidate. Let me know how it turns out.

@augustozanellato
Copy link
Author

Yup, looks like it's working fine now, thanks for the quick update!

@jneilliii jneilliii added the solved workaround documented or fix applied label Jul 10, 2021
@jneilliii
Copy link
Owner

Great news.

@jneilliii jneilliii mentioned this issue Jul 31, 2021
jneilliii added a commit that referenced this issue Jul 31, 2021
* fix bug with M150 command not having I parameter causing the command to get lost in the queue, #143
* make request timeout configurable in settings, #142
* add numeric StatusSTS messages for chk values, #150
* account for energy data with multiple relay device, #155
* M118 support for LED commands for more real-time control based on what's happening on the printer (ie waiting for heat up). The function is similar to the M150 support but you will need to use the command `M118 TASMOTA_M150 I192.168.0.105 R### G### B### W### P###`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved workaround documented or fix applied
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants