Works with Arduino IDE 1.6.9 an BM 2.2.0. Dont forget to extract the libraries from latest stable: http://www.esp8266.nu/index.php/Main_Page#Stable
Copy the libraries to your user-folder (%username%\Documents\Arduino\libraries on Windows system).
For me it works also with VisualStudio Community 2015 and VisualMicro after upgrading ArduinoJson to 5.6.2
-
ESP Easy Pimatic Controller Plugin
Meine Arbeit ist so geheim, nicht einmal ich weiß was ich tue!
-
Okay will check this. THX
-
@deejaybeam I can confirm it works. Made a mistake in the name. Esp will take capitals but the ID in pimatic does not. For a motion sensor needed a workaround because the expected value in pimatic does not match the sent one from Esp.
-
Compiling was successful now. But pimatic shows “Error on incoming http request: Bad Request
” every 6 seconds.I create a variable “$temperatur” in pimatic
I named the value in ESPeasy “temperatur” (I tried as well “$test”)
Controller IP: IP of pimatic
Controller Port: Port of pimatic
Controller User: Daniel
Controller Password: my passworddebug [pimatic]: Error: Bad Request at error (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/basic-auth-connect/index.js:125:13) at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/basic-auth-connect/index.js:70:41 at Object.handle (/home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:308:9) at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15) at Object.cookieSession [as handle] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/middleware/cookieSession.js:121:5) at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/lib/proto.js:174:15) at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/body-parser/lib/read.js:121:5 at invokeCallback (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/body-parser/node_modules/raw-body/index.js:262:16) at done (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/body-parser/node_modules/raw-body/index.js:251:7) at IncomingMessage.onEnd (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/node_modules/connect/node_modules/body-parser/node_modules/raw-body/index.js:308:7) at IncomingMessage.EventEmitter.emit (events.js:92:17) at _stream_readable.js:920:16 at process._tickCallback (node.js:415:13)
-
Which version of pimatic do you have? I´m using v0.9 maybe there is something different in the api?
Can you open the url: http://<pimaticip>/api/variables/temperatur -> you should see some json data of you variable after entering the credentials
UsErNaMe/Password is case sensitive!
If you got something like: TypeError: Cannot read property ‘set’ of undefined at unauthorized …
something is wrong with user/pass.
Or maybe try to change the permissions for you account
Best to try is using e.g. the inkognito-mode of chrome so there are no stored/cached credentialsMeine Arbeit ist so geheim, nicht einmal ich weiß was ich tue!
-
Data are available
"variable": { "name": "temperatur", "readonly": false, "type": "value", "value": 123, "unit": "" }, "success": true }
I’m still on 0.8.107. Will update tommorro…ahhhh today!
-
@deejaybeam: The solution was to install pimatic v0.9. Now it works fine. THX for the plugin.
-
@OrTiN nice to hear and thanks for the feedback!
I think you like v0.9 also - i do so! -> pimatic rocksMeine Arbeit ist so geheim, nicht einmal ich weiß was ich tue!
-
Running your script since one week now. It works so far. But I found a problem. After the ESP gets powerless -> cold reboot it seems not to work correct. It reboots one time per minute (approx). Pimatic is getting still the values, but not every 10 sec. due to the reboot. It is maybe 2-3 times.
I’m getting it back to proper work by changing to a native “protocol” like “standalone”, run it some time (round about 1 minute) and changing back to “Pimatic RestAPI”.Do somebody else observed this behavior?
-
Hi,
want to say that after stopping the permanent adjustments the system works fine with your AddOn.Did you ask for a permanent implementation? Would be nice to have it there.
-
@OrTiN said in ESP Easy Pimatic Controller Plugin:
Did you ask for a permanent implementation? Would be nice to have it there.
this has already been added to the espeasy plugin playground
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Ah okay.
-
hi guys, i have set a switch device in espeasy.
i have a variable $test in pimatic. now i have added a device in espeasy idx 1 value name test. but the pimatic variable does not change from 0 to 1. in espeasy it does when i press/unpress the button. how can i read the state of the gpio in espeasy?
i get error messages with device not found. i have not jet added a device. just the variable.
thanks a lot
EDIT: i got it myself. the id of the dummyswitch in pimatic have to be the same like the value name in optional settings.
-
does anyone has an idea how to control dummyshutters?
-
try the gui mode or like that
if position of dummyshutter is up/down/stopped then do some stuff
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
What i exactly mean is when pressing espeasy hardware switch press up button. But i mean this without cteating an extra rule. I mean directly control the dummyshutter with the espeasy hardwareswitch.
-
something like a shellswitch for shutters
maybe it might be worth considering to create a shellshutter (with optional stop button) for this kind of use or integrate a configurable stop button to the shellswitch
@mwittig @sweetpi - what do you think?pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
And any news, will it come?
-
@deejaybeam There is a problem with Espeasy R120. If you remove in your plugin the #if ESP_CORE >= 210 in the updateVariable and setSwitchState authorisation will work with later releases than R108.