Comments (15)
The current state is probably getting out of sync with the tasmota is you're controlling outside of octoprint. What happens if you restart octoprint and ctrl+f5 to reload the page ignoring cache. Does it work then? Enable debugging and seeing logs would help too.
from octoprint-tasmota.
I have tried that, reloading & hiting F5 & disabling cache, same problem, disabling plugin & removing switch and adding it again seemed to do the trick but it seems it gets out of sync in some point, I have debugging active, here yo have the log file.
plugin_tasmota_debug.log
from octoprint-tasmota.
That is strange, it definitely seems to be working. Curious when it becomes out of sync. If you happen to notice let me know, but I have not experienced that myself. Because the plugin only uses web commands and not MQTT subscription it's not going to detect state changes outside of octoprint. I was trying to keep it as simple as possible and not require configuring a MQTT server, etc. Also, check the octoprint.log for any errors.
from octoprint-tasmota.
I will try to have a look if I can find how to reproduce this issue, doesn't it check every X time the status in case the switch has changed externally? I know it's html based and has no MQTT subscription, but i thought it might check every X to retrive current status, that should fix out of sync issues.
from octoprint-tasmota.
It currently does not do that timer check of state, but that could be a way to get around this specific issue. I just pushed some changes to the dev branch to enhance the console logging on the client and server sides. While doing so, I think I may found the issue. I wasn't saving the settings outside ot the switch and it was only saving on an unknown state. You may have better results now with this version. If you don't mind letting me know and if it's working I can push to master. Out of curiosity, how did you find this plugin?
Install via plugin manager using this url: https://github.com/jneilliii/OctoPrint-Tasmota/archive/dev.zip
from octoprint-tasmota.
I will give that a try, lets see :), I discovered this plugin looking for sonoff integration with octoprint and your project apeared in google, I can see you have the Tplink switch on the plugins search in octoprint but not this one.
I will install the dev version and will try if it has better response, thanks for quick answer & fix.
from octoprint-tasmota.
I have tested it and it seems more responsful, the icons are updating correctly and after reboot the status icon is the correct one, I will keep testing it during this days.
BTW: I supose this plugin is still not published to ¨production¨ i have seen there are some texts from the TPLink plugin, I supose you made a copy of the other one and adapted it to Sonoff and have not changed the descriptions yet.
from octoprint-tasmota.
Good news on it working better now. You are right, I based this on my original tplink plugin from a user request to control sonoff devices. Before that didn't even know anything about them. I could see benefits, especially with multi relay versions for controlling lights, fans, etc.
from octoprint-tasmota.
Hi, this morning i have connected remotly to my Octoprint, the status of the tasmota was red because it was off, I have clicked the icon to enable it and that went fine, it turned on the power, I did a print and after 2h I entered Octoprint and icon was spitting out connection issues and I connected to tasmota ip and it was ok, the plugin stoped comunicating with it, I have seen that the ip in my case has a final . i dont know if this is a log issue or maybe some bug in code that addeed an extra . to the end of the ip, I am ataching the log so you can se when it was off then turned it on and the connection lost.
plugin_tasmota_debug.log
from octoprint-tasmota.
As you can see here in the screen shot and in the logs you can see that the ip is 192.168.1.35. With that extra “.” at the end, maybe it’s only visual but it’s strange it cant connect to the Ip, if you navigate to the ip it displays correctly the tasmota menu and http commands work fine through browser/Postman.
from octoprint-tasmota.
I'll check out the logs, but the periods are for terminating the end of a sentence, not ferrying used for communication.
from octoprint-tasmota.
Any chance the ip of your octoprint changed to a different network that doesn't have the same access as the machine you're able to get to the tasmota device from? Are there any errors in the debug console of your browser or in octoprint.log?
from octoprint-tasmota.
Holy Cow just saw what happened, I have multiple wifi points in my house and octopi switched to another acces point, same network etc.. but it’s a tplink issue with conections to the repeater not beeing able to comunicate to other devices conected to the main router, I have restricted acces points to dissalau octoprint to switch between points and comunication flows again :) now it detects & works propperly.
from octoprint-tasmota.
Awesome, was hoping it was something like that and not the plugin.
from octoprint-tasmota.
FYI...the plugin was merged into the plugin repository.
from octoprint-tasmota.
Related Issues (20)
- API support for status HOT 6
- Power off during printing HOT 4
- issue when upgrading to octoprint 1.8.1 HOT 5
- Theme Support
- switch via API call HOT 4
- Lots of connection errors HOT 2
- Sonoff POW not switching off... HOT 6
- power off on idle not working ? HOT 3
- Request: "Keepalive" Interval HOT 6
- icon picker doesn't seem to work HOT 9
- S31 Sonoff plug (Tasmota Error... status unknown for the IP) HOT 5
- READINGS DO NOT MATCH plug with athom energy meter HOT 6
- Plugin requires SetOption65 to be 0 to work, but my plug keeps resetting if I do that. HOT 3
- using GCODE for shutdown in .gcode files fails HOT 4
- 'Power off on idle' does not wait for bed to cool HOT 3
- No connection with new device HOT 9
- Issue With Power Monitoring With Blank IDX HOT 1
- Power off on idle not working on MK4 HOT 4
- Use separate scale/graph for power/cost HOT 7
- 'power off after print finishes' checkbox. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-tasmota.