Seneye Binding

Has anyone had any luck connecting directly to the sensor and skipping the cloud?

The current binding only collects data from the cloud.
There is no available information on the format of the data before it is in the cloud, so it’s unlikely this will change.

I have been working on the Binding and have proposed some tweaks.
These should allow you to get the following additional channels:-
Out of water status.
Slide serial number
Disconnected status (the cloud reports it can’t connect to the sensor)
Wrong slide (this normally means the slide has expired, and nh3 and ph are not being monitored)
If you want to give it a go, follow the link at the top of the page and download the 2.4 version.
If you do get chance to try it, I would love to hear how it goes!
Mick

im trying to get it running too using paperui. im running the latest stable openhab 2.3.0 as docker image on a synology DS1813+
everything seems to work fine, e.g. it reads my netatmo weatherstation but when it comes to seneye im getting nothing as Thanh_Chuong_Tran showed in his post.
i also tried adding things and items “manually” with the config files, nothing too.
i have a new slide in as well. the seneye app and webinterface is working too
can anyone point me in the right direction?

Can you post the logs please?

sure, i could only find events.log and openhab.log within /openhab/userdata/logs

openhab.log i think is what you need ?!

2018-10-04 16:41:22.761 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://172.17.0.5:8080
2018-10-04 16:41:22.885 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://172.17.0.5:8443
2018-10-04 16:41:45.737 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-10-04 16:42:58.303 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-10-04 16:42:59.108 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-10-04 16:42:59.872 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2018-10-04 16:43:00.930 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-10-04 16:43:01.504 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2018-10-04 16:48:36.100 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'netatmo:NAMain:f8237956:70ee502eb53a' to inbox.
2018-10-04 16:48:36.122 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'netatmo:NAModule1:f8237956:0200002ecbbe' to inbox.
2018-10-04 16:53:00.114 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '52.000000,13.000000'.
2018-10-04 16:53:43.463 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Berlin'.
2018-10-04 16:53:43.469 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_DE'.
2018-10-04 16:53:43.473 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Measurement system set to 'SIUnits'.
2018-10-04 16:54:33.278 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-seneye'
2018-10-04 16:55:18.404 [WARN ] [.core.thing.binding.BaseThingHandler] - BaseThingHandler.initialize() will be removed soon, ThingStatus can be set manually via updateStatus(ThingStatus.ONLINE)
2018-10-04 16:55:19.540 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception
java.lang.NullPointerException: null
	at org.openhab.binding.seneye.internal.SeneyeService.initialize(SeneyeService.java:117) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.initializeSeneyeService(SeneyeHandler.java:123) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.lambda$0(SeneyeHandler.java:117) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]

That is the correct log for the initial checks, but it only shows the Seneye binding being uninstalled.
Is there anymore of the log showing what happens when the binding is installed and running?

yes thats strange because its installed, and the timestamp does not match my system time as well
ive to look into that

Odd, although I see in that log you had also just updated location and time zone.
Maybe try to reboot/restart openhab to see if that had an impact?

i managed to get the timezone at least to UTC even when i select the correct timezone, naja whatever, should not be the problem i guess. after reboot eventlog shows this

2018-10-04 20:46:18.468 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_SlideExpiration-seneye:monitor:feb9ca5c:slideexpires' has been added.
2018-10-04 20:46:18.476 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_LastReading-seneye:monitor:feb9ca5c:lastreading' has been added.
2018-10-04 20:46:18.479 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_Temperature-seneye:monitor:feb9ca5c:temperature' has been added.
2018-10-04 20:46:18.516 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_LUX-seneye:monitor:feb9ca5c:lux' has been added.
2018-10-04 20:46:18.526 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_NH4-seneye:monitor:feb9ca5c:nh4' has been added.
2018-10-04 20:46:18.536 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_NH3-seneye:monitor:feb9ca5c:nh3' has been added.
2018-10-04 20:46:18.573 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_O2-seneye:monitor:feb9ca5c:O2' has been added.
2018-10-04 20:46:18.575 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_Kelvin-seneye:monitor:feb9ca5c:kelvin' has been added.
2018-10-04 20:46:18.588 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_PH-seneye:monitor:feb9ca5c:ph' has been added.
2018-10-04 20:46:18.638 [.ItemChannelLinkAddedEvent] - Link 'SeneyeMonitor_PAR-seneye:monitor:feb9ca5c:par' has been added.
2018-10-04 20:46:19.349 [hingStatusInfoChangedEvent] - 'seneye:monitor:feb9ca5c' changed from UNINITIALIZED to INITIALIZING
2018-10-04 20:46:19.448 [hingStatusInfoChangedEvent] - 'seneye:monitor:feb9ca5c' changed from INITIALIZING to ONLINE

that looks fine i think. but apart from that no updated coming in, not like i see them for the netatmo

in openhablog im getting these warnings:

2018-10-04 20:46:19.446 [WARN ] [.core.thing.binding.BaseThingHandler] - BaseThingHandler.initialize() will be removed soon, ThingStatus can be set manually via updateStatus(ThingStatus.ONLINE)
2018-10-04 20:46:20.277 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception
java.lang.NullPointerException: null
	at org.openhab.binding.seneye.internal.SeneyeService.initialize(SeneyeService.java:117) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.initializeSeneyeService(SeneyeHandler.java:123) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.lambda$0(SeneyeHandler.java:117) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]

thats all, sorry, my guess is some java problems, not sure how to go about it

k, forget it :wink:
the setup for the account was a bit misleading. for the login its says enter username but for the login to senye.me you have to use your e-mail address not the username …
its working now as expected :wink:

How have you got it configured at the moment (though a UI or a .things file)?
If .things file can you post the Seneye section. Remember to hide your password!
A couple of other possibilities (should be detected and logged by the binding) can you double check the username, password and tank name are correct?
Also what version of the binding are you using?

Glad it’s working :slight_smile:

well its working somehow, but im only getting integers and no units, even if i set the dimension e.g. Temperature
for most od the it does not matter but for temperature and pH its would be nice to have at least one digit after the dot. do you know how to set this in the PaperUI, i can only select number, but not if its integer or real …

well its looks like a problem with the paperui.
eventlog show real numbers

2018-10-04 21:19:46.629 [vent.ItemStateChangedEvent] - SeneyeMonitor_Temperature changed from NULL to 25.3 ℃
2018-10-04 21:21:47.390 [vent.ItemStateChangedEvent] - SeneyeMonitor_Temperature changed from 25.3 ℃ to 25.2 ℃
2018-10-04 21:21:47.426 [vent.ItemStateChangedEvent] - SeneyeMonitor_NH4 changed from 12.47 to 13.4
2018-10-04 21:21:47.432 [vent.ItemStateChangedEvent] - SeneyeMonitor_O2 changed from 8.1 to 8.2
2018-10-04 21:21:47.435 [vent.ItemStateChangedEvent] - SeneyeMonitor_PAR changed from 4.0 to 0.0
2018-10-04 21:21:47.439 [vent.ItemStateChangedEvent] - SeneyeMonitor_PH changed from 8.18 to 8.15
2018-10-04 21:21:47.443 [vent.ItemStateChangedEvent] - SeneyeMonitor_LUX changed from 148.0 to 2.0

but paperui cuts off everything after the dot

any ideas ?

if you use an .items file you can add some default formatting that will appear in paper.
An example for temperature is

Number:Temperature mySeneye_Temperature  "Temperature [%.1f C]"   <selfaquarium>   (GF_Fish)  { channel="seneye:monitor:#####:temperature" }

Where ##### is the device id from your setup, from your logs it appears to be feb9ca5c

1 Like

many thnx, now working perfectly :slight_smile:

I still have issues getting data. I’m using the koi version, not aquarium. I’ve tried configuring via Things file, and/or PaperUI.

items:

Number VijverTemp          "Temp [%s] C"{ channel="seneye:monitor:3054d5ed:temperature" }
Number VijverPH           "PH [%s]"     { channel="seneye:monitor:3054d5ed:ph" }
Number VijverNH3          "NH3 [%s]"    { channel="seneye:monitor:3054d5ed:nh3" }

Also tried the exact same format as in binding page, but that seems the same issue? I am clearly missing something

I’ve done this through the GUI, and works nicely.
Keep attention to the exact writing of names. Be sure that this is the same. In my case, renaming this did the trick. Something changed when I went from myseneye to MySeneye…

Some GUI screenshots:



Can you view the data online via the website?
Can you also post your logs please, both events.log and openHAB.log
Many thanks