Thanks @SaxnPaule, that directed me in the right direction, although your plugin is not using a Device object to execute actions on. Would you mind if I give you some feedback on your plugin in your Onkyo AVR thread?
-
Bluetooth and BLE status
-
Feedback would be great.
-
Ok, I have implemented an action for the iTag buzzer, however I have some problems sending the right command to the iTag, so the buzzer doesn’t work yet.
The command looks as follows:
when <something> then [switch, turn] <device> buzzer [off, low, high]
I keep the ble, mi-flora and itag plugins now like it is and first wait for some more feedback
-
@rrooggiieerr In my thread opening, original post about MiFlora I have made an update, announcing that you have developed a BLE and a mi-flora plugin for pimatic, which is easier to set up than my workaround method, so I recommend everyone to use your plugins to get data from MiFlora sensors instead. Thanks again for your great work!
-
Hi @zsiti, that’s all great, however I consider my BLE and related plugins still in beta. I’m waiting for some more response. I’m by no means a Coffeescript expert, this is actually my first proper implementation using that language, and it would be great if a fellow @developer could have a look at my code and give me feedback.
One thing I’m particularly interested in is if the values of the Mi Flora are consistent. I sometimes see some errors where the vaules of the light intensity and humidity seem to be switched, but I can’t find a bug in my code. Also the battery seems to drain a bit faster. Could you share your experiences on this?
Also the plugins can’t yet be found in the Pimatic plugin manager, actually the BLE plugin in there is an old, not working, one. So I also need to take some actions to make that work.
-
One bug for sure is that it does not handle negative temperatures! So be aware.
-
I fixed the negative temperature bug! New version on Github
-
You added some Graphics and a presence sensor, nice.
But why not for temperature?The Presence shows a circle(not present) but says present. Do i have to configure it?
Can you push the plugins to npm? Makes installing and updating easier.
-
Hi @Michael-Rudek, I sometimes have the same with the presence, don’t know why. A shift-reload solves it for me.
I used the T because other temperature related plugins also use a T for temperature, so I tried to be consistent to those plugins. Also I couldn’t find a good temperature related UTF8 character.
I have to look at npm, don’t know yet how that works. First I’m waiting for a bit more feedback from more users
-
What the hell is a shift-reload?
I think there is a bug with the box:
The grey part is smaller then the Template itself.
(Its hard to see with the white background of the forum) -
@michael-rudek said in Bluetooth and BLE status:
What the hell is a shift-reload?
“reload” refers to pressing the “F5” button with most browser to reload the web page. Pressing “Shift - F5” (Chrome) or “Ctrl-F5” (Edge, Firefox) reloads the web page without using the content of the local cache. btw. “Ctrl-F5” also works with Chrome.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Keeping the shift key pressed while clicking the reload button of your browser.
I did not do anything about the HTML or CSS, that’s all handled by the frontend
-
@michael-rudek said in Bluetooth and BLE status:
The grey part is smaller then the Template itself.
That’s a general issue with device template for Temperature Sensors in pimatic. The template does not handle the display of additional attributes well.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
This morning I have the same behaviour.
@mwittig, should I define an other template in my device?
-
I do have some strange behaviour with the light level. Look at the 3 o clock mark. A spike in the brightness, while no lights were on in the hallway at that time. At the same time there is a drop in the moisture and fertility level.
-
@rrooggiieerr said in Bluetooth and BLE status:
Hi @zsiti, that’s all great, however I consider my BLE and related plugins still in beta. I’m waiting for some more response. I’m by no means a Coffeescript expert, this is actually my first proper implementation using that language, and it would be great if a fellow @developer could have a look at my code and give me feedback.
My idea behind channeling more users at your plugin was that the more people use it, the more feedback you get, and that way the plugin will get better and better
One thing I’m particularly interested in is if the values of the Mi Flora are consistent. I sometimes see some errors where the vaules of the light intensity and humidity seem to be switched, but I can’t find a bug in my code. Also the battery seems to drain a bit faster. Could you share your experiences on this?
I’ll be testing your plugin in parallel with the open-homeautomation miflora python script which was the base of my solution with parsing an output file with logwatcher. If I’ll find any inconsistencies, I’ll get back to you. In my experience if the polling time is frequent, it will cause fast battery draining. It depends on the needs of the user of course, but for me polling every hour is enough, and my sensors’ battery level drains very slow.
Could you make configurable poll time perhaps?EDIT: I see you’ve already implemented this in the latest version I’ll set my sensors to 1hr polling, and see if the battery drains fast or not.Also the plugins can’t yet be found in the Pimatic plugin manager, actually the BLE plugin in there is an old, not working, one. So I also need to take some actions to make that work.
As you’ve mentioned by @Michael-Rudek if your plugin will be stable enough, you should push it to npm, so pimatic users can get is easier.
Your work on this is much appreciated by me, and I’m sure by the community as well
-
I just released a new version of the packages and added them to npm
Plugins for Mi Flora and iTag have been renamed to pimatic-ble-mi-flora and pimatic-ble-itag
-
Do i have to delete the old plugins manually?
I´m getting aerror [pimatic]: Can't update a git repository!
-
Honestly I don’t know. I’m not very familiar with npm. I copy my release to my pimatic plugins folder by hand and don’t use npm yet to install my own plugins
-
What does
error [pimatic]: Could not initialize the plugin "ble": Cannot find module '../build/Release/binding.node'
mean?