State O-Matic Binding - Monitor your Washingmachine / Dishwasher / Electric Car Etc

ok thank you for your answer.

just one last question, how can i troubleshoot this error?

2023-02-09 21:24:53.152 [ERROR] [al.handler.OMaticMachineThingHandler] - Failed to parse value from event: {"type":"UnDef","value":"UNDEF"} payload: {"type":"UnDef","value":"UNDEF"} stringValue: UNDEF
2023-02-09 21:25:08.814 [ERROR] [al.handler.OMaticMachineThingHandler] - Failed to parse value from event: {"type":"UnDef","value":"UNDEF"}

can you point me in the right direction?

hey, your trick seems to work!
i had to clean many unused items, groups, rules and things (i should had to do this many time ago) and from yesterday no errors except the one above.

keep fingers crossed! thanks again for your help!

Somebody can help me about the right settings?

The state machine sometimes starts again:

Zeile  756: 2023-03-11 12:57:45.988 [INFO ] [tic.internal.api.model.OMaticMachine] - [Trockner] Starting state Machine: 2023-03-11 12:57:45
	Zeile  767: 2023-03-11 14:48:27.606 [INFO ] [al.handler.OMaticMachineThingHandler] - [Trockner] State Machine completed time:  1h 50m 41s, energy(measured): 0.7699999999999996, energy(estimated): 0.7962716902149062
	Zeile  768: 2023-03-11 14:49:28.561 [INFO ] [tic.internal.api.model.OMaticMachine] - [Trockner] Starting state Machine: 2023-03-11 14:49:28
	Zeile  769: 2023-03-11 14:52:58.588 [INFO ] [al.handler.OMaticMachineThingHandler] - [Trockner] State Machine completed time:  3m 30s, energy(measured): 0.0, energy(estimated): 0.00175

Even I configured a treshold of 100. Or do I have a misunderstanding?

UID: omatic:machine:b1c1e0e647
label: State Machine - Trockner
thingTypeUID: omatic:machine
configuration:
  cost: 0.1
  dateFormat: YYYY-MM-dd HH:mm:ss
  energyInputItem: MQTT_Thing_Zigbee2MQTT_Zig6_Plug__Energy
  name: Trockner
  activeThreshold: 100
  timerDelay: 50
  idleTime: 180
  powerInputItem: MQTT_Thing_Zigbee2MQTT_Zig6_Plug__Power
location: HWR

again this error that i cannot troubleshootā€¦any idea @Seaside ?

[ERROR] [al.handler.OMaticMachineThingHandler] - Failed to parse value from event: {"type":"UnDef","value":"UNDEF"} payload: {"type":"UnDef","value":"UNDEF"} stringValue: UNDEF

what can i check on settings side to solve this?

What version of openHAB are you using?
It would be helpful if you could enable debug log and give me some output.

BR S

Hallo Seaside,

thank you ver much for your great binding.
Can you please supply a version for openhab 4.0.0? I have tried both version from marketplace und BETA 2 from this thread. But i cannot add a thing with both versions.

Best Regards Thilo

Hi!
Yes I will add a 4.0.0 version at some point.I donā€™t have that much information yet, more than Iā€™m myself using the binding and will switch to 4.0.0 in near future.

/S

I have built an openHAB 4.0.0 version, you have to install it manually if you want to test it out

2 Likes

Thank you very much. I have deployed the Version in addons Folder. All seems to be working.

1 Like

sorry for late answer, but finally i had time to check logs setting to DEBUG mode.
here you can find openhab.log
openhab.log (390.8 KB)
let me know if can help you more.

thanks!

ps. iā€™m using

openHAB 4.0.0-SNAPSHOT - Build #3432
RPI3b
omatic binding 4.0.0.202304191948

Sorry for late response. So I guess Quantity type does not seem to work.
A quick fix is to use a numeric type, you could create a new numeric item, create a rule that posts the value when the quantity type is updated to the new numeric item.

I will try to see If I can fix it in the code, but donā€™t have a time frame of when, Iā€™m working on 4.0 migration of my system and have somewhat limited time.

/S

Do you have any plan to release it for 4.0.4

I get errors like:

[ERROR] [c.internal.OMaticThingHandlerFactory] - bundle org.openhab.binding.omatic:4.0.0.202304191948 (239)[org.openhab.binding.omatic.internal.OMaticThingHandlerFactory(309)] : Error during instantiation of the implementation object
java.lang.IllegalArgumentException: argument type mismatch
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]

Will take a look.

hello and congratulations on your work, everything seems to be working fine to me, except that it doesnā€™t tell me the costs (I set 0.13 in the field). However, I cannot change the states in the page widget with the following expression:

=(items.Lavatrice_State_State.state  === 'off') ? 'OFF'   : (items.Lavatrice_State_State.state  === 'idle') ? 'PAUSA'    : (items.Lavatrice_State_State.state  === 'completed') ? 'COMPLETED' : (items.Lavatrice_State_State.state  === 'active')  ?  'FINISHED'  :  'ACTIVE'

I also inserted, in the metadata of the article STATE, the description of the mapping as written at the beginning of the post, but nothing, it remains ACTIVE
any help?
Thank you

Not working any more with the latest release openHAB 4.1.2. When adding the thing:
image

It definitely works in 4.1.2 and 4.2.
Usually you can create things again when you remove the binding and reinstall it.

Hi Iā€™m seeing an empy page as well, the same as the screen snip from asdfsafd a few posts above and Iā€™m also on OH 4.1.2
This is the first time I have installed this binding and have tried a restart and reboot but no luck.

Craig

Still not working. BTW: Iā€™m using the Docker installation on a Synology. Log says

Could not determine bundle name from url: https://github.com/seaside1/omatic/releases/download/org.openhab.binding.omatic-3.x.x-BETA1/org.openhab.binding.omatic-3.x.x-BETA1.jar

I removed the binding, downloaded the latest release for openHAB 4 from here: Releases Ā· seaside1/omatic Ā· GitHub and copied the jar into the addons folder.

This is working now.

1 Like

Same error after migrating to 4.2.1 and Bullseye (may have had error before - hadnā€™t been paying attention, but saw it in the log after migrating. Fixed it with the .jar file