Seneye Binding

Hey Mick,

I did more or less the same as you, added via things, items,… also added via paperUI. With the later it seems I get 1 update, but only temp and NH3. But afterwards it doesn’t update anymore. I guess it still needs some tweaking. Let me know if you find a solutions, otherwise I guess we’ll need to wait a bit…
cheers
phil

Hi Phil,

Thanks for the quick reply.
I have done some more trouble shooting and when debugging I get the following error:-
2018-07-04 09:12:07.182 [DEBUG] [inding.seneye.internal.SeneyeService] - failed to read seneye ‘java.lang.IllegalStateException: Expected a boolean but was NUMBER at line 1 column 113 path $.wrong_slide’
If I am reading it correctly the problem is “just” the binding looking for the wrong data type, however I have no idea how to fix at the moment.

Mick

Same issue over here. I tried with versions 2.2, 2.3 and 2.4
With 2.2, I had an error like:

seneye:seneye:mySeneye’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)

With 2.3 and 2.4, nothing in logs…

Ben,

If you change the logging level via the console with:-
log:set TRACE org.openhab.binding.seneye
The additional information should appear next time it tries to download the readings.
Does it give you any additional info? (just wonder if you get the same error)
Once you have finished you can put the logs back to normal with:-
log:set DEFAULT org.openhab.binding.seneye

Thanks

Mick

Ben,

Also try seneye:monitor:mySeneye as this seams to get it to go online.

Mick

Hey,
These are the results are changing to seneye:monitor:mySeneye

2018-07-06 06:52:41.741 [hingStatusInfoChangedEvent] - ‘seneye:monitor:ecea19ce’ changed from ONLINE to UNINITIALIZED
2018-07-06 06:52:41.745 [hingStatusInfoChangedEvent] - ‘seneye:monitor:ecea19ce’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2018-07-06 06:52:41.754 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘seneye.things’
2018-07-06 06:52:41.769 [hingStatusInfoChangedEvent] - ‘seneye:monitor:mySeneye’ changed from UNINITIALIZED to INITIALIZING
2018-07-06 06:52:41.769 [DEBUG] [binding.seneye.handler.SeneyeHandler] - Initializing Seneye API service.
2018-07-06 06:52:41.781 [hingStatusInfoChangedEvent] - ‘seneye:monitor:mySeneye’ changed from INITIALIZING to ONLINE
2018-07-06 06:52:42.500 [DEBUG] [inding.seneye.internal.SeneyeService] - seneye ‘66724’ read
at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
at org.openhab.binding.seneye.internal.SeneyeService.lambda$0(SeneyeService.java:77) ~[?:?]
2018-07-06 06:52:42.802 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘seneye.things’

And when I change my items (I add all possibilities to avoid searching in the future :wink: ) accordingly:

2018-07-06 06:55:14.660 [temChannelLinkRemovedEvent] - Link 'mySeneye_NH3 => seneye:monitor:ecea19ce:nh3' has been removed.
2018-07-06 06:55:14.660 [temChannelLinkRemovedEvent] - Link 'mySeneye_NH4 => seneye:monitor:ecea19ce:nh4' has been removed.
2018-07-06 06:55:14.661 [temChannelLinkRemovedEvent] - Link 'mySeneye_lastreading => seneye:monitor:ecea19ce:lastreading' has been removed.
2018-07-06 06:55:14.661 [temChannelLinkRemovedEvent] - Link 'mySeneye_lux => seneye:monitor:ecea19ce:lux' has been removed.
2018-07-06 06:55:14.662 [temChannelLinkRemovedEvent] - Link 'mySeneye_PH => seneye:monitor:ecea19ce:ph' has been removed.
2018-07-06 06:55:14.663 [temChannelLinkRemovedEvent] - Link 'mySeneye_par => seneye:monitor:ecea19ce:par' has been removed.
2018-07-06 06:55:14.664 [temChannelLinkRemovedEvent] - Link 'mySeneye_slideexpires => seneye:monitor:ecea19ce:slideexpires' has been removed.
2018-07-06 06:55:14.665 [temChannelLinkRemovedEvent] - Link 'mySeneye_O2 => seneye:monitor:ecea19ce:O2' has been removed.
2018-07-06 06:55:14.665 [temChannelLinkRemovedEvent] - Link 'mySeneye_Temperature => seneye:monitor:ecea19ce:temperature' has been removed.
2018-07-06 06:55:14.665 [temChannelLinkRemovedEvent] - Link 'mySeneye_kelvin => seneye:monitor:ecea19ce:kelvin' has been removed.
2018-07-06 06:55:14.783 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_Temperature-seneye:monitor:mySeneye:temperature' has been added.
2018-07-06 06:55:14.786 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_PH-seneye:monitor:mySeneye:ph' has been added.
2018-07-06 06:55:14.788 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_NH3-seneye:monitor:mySeneye:nh3' has been added.
2018-07-06 06:55:14.789 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_NH4-seneye:monitor:mySeneye:nh4' has been added.
2018-07-06 06:55:14.790 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_O2-seneye:monitor:mySeneye:O2' has been added.
2018-07-06 06:55:14.792 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_lux-seneye:monitor:mySeneye:lux' has been added.
2018-07-06 06:55:14.793 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_par-seneye:monitor:mySeneye:par' has been added.
2018-07-06 06:55:14.794 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_kelvin-seneye:monitor:mySeneye:kelvin' has been added.
2018-07-06 06:55:14.795 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_lastreading-seneye:monitor:mySeneye:lastreading' has been added.
2018-07-06 06:55:14.797 [.ItemChannelLinkAddedEvent] - Link 'mySeneye_slideexpires-seneye:monitor:mySeneye:slideexpires' has been added.
2018-07-06 06:55:15.268 [DEBUG] [inding.seneye.internal.SeneyeService] - seneye '66724' read
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.newState(SeneyeHandler.java:69) ~[?:?]
	at org.openhab.binding.seneye.handler.SeneyeHandler.handleCommand(SeneyeHandler.java:58) ~[?:?]

And after the 5 minutes ‘polling interval’ (I waited 7 minutes):

nothing…

Any idea how we can proceed to make this working again? :blush:

Seems it’s very important what you exactly typ… :blush:
I had seneye:monitor:myseneye, and this didn’t work.
But seneye:monitor:mySeneye gives me better results.

Values are getting in perfectly now… :wink:

. . . . . .

Next step is writing some rules so I’m getting pushover messages when fe my temperature drops below 24, the PH goes above 8.5…
I’m just wondering if we could also get the status about ‘in-out’ water? This can be very helpful when we’ve got a leak… I can’t see this ‘status’ in the items/channels. But I’m getting a mail from Seneye if the sensor is out of the water. So somehow, they see this…

1 Like

Very Nice.
Just about to write that I now have it working, one thing I noticed is that you have to have an active slide.
Once your slide expires you just get error messages, you do not even get the basic information.

I like the charts, I think I need to set those up next:)

Dear brononius,
I can not get the number from Seneye SUD,
Do we need to enable Local Data Exchange of SUD & Send data to OpenHab?
Hope you can help me.
Kind regards

What do you mean with ‘the number’?

  1. My Seneye device send today its data towards the Seneye Cloud (with a windows workstation sadly).
  2. Openhab pickups the value form the Seneye Cloud.
  3. And Openhab does his magic with the data :wink:

Dear Ben,

Thank you very much for your reply. This is the first time I installed and set up My OpenHab. At this stage I can not get the data from Seneye Cloud.

After installing OpenHab on Windows, and add-on Seneye Bindings & Items. This is what i get:

Can you kindly guide me what is wrong and solution to it?

Kind regards,

What do you get in the logs?
Also do you have an active slide in the Seneye? (Mine only works with an active slide)
Also do you have your Seneye linked to a computer, or are you using the web server?

Mick

1 Like

Indeed, main question before to start with OpenHAB. Do you see the data of your sensor elsewhere?

First check https://www.seneye.me if your sensor is correctly working.

Dear Mick.

Thank you very much for your reply. Ive found out that I can only get data from the account with an active slide.

I used a PC with Seneye app to connect to Seneye cloud.

Once again thanks a lot. I wish you a great day ^^

Regards,

1 Like

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?