Giter Club home page Giter Club logo

Comments (6)

GermanBluefox avatar GermanBluefox commented on July 2, 2024

c43bdf6

from iobroker.pimatic.

GermanBluefox avatar GermanBluefox commented on July 2, 2024

Please test.

from iobroker.pimatic.

fennsen64 avatar fennsen64 commented on July 2, 2024

THX for the very fast fix.

Just installed the update and it seems to work (I can see all devices and switch them from ioBroker). Great work!! If this check out to be stable I can get rid off a lot of scripts here and pimatic-rules pushing states between/from pimatic and/to ioBroker (implemented as MQTT as today while this interfaces hasn't exist).

Is it planned to also include pure variables here as a second class beside the devices (of course not active)? This would be really great because a lot of my rules are based on 'logical' or expression variables.
THX again

from iobroker.pimatic.

fennsen64 avatar fennsen64 commented on July 2, 2024

Ok, after some more testings: switching (switch devices) from ioBroker to pimatic doesn't work always when using VIS widgets.

There seems to be an issue with the different formats of boolean's (on, off, true, false 0, 1)

The 'translated pimatic' value in ioBroker objects for a switch device is 'off(false) / on(true)'. But in pimatic this boolean seems not to be interpreted right when I switch such a device from ioBroker:
Pimatix log:
error [pimatic]: Exprected state to be boolean, was: 0
error [pimatic]: Exprected state to be boolean, was: 1

This happens when I switch via VIS (jqui Radiobutton - labeled 'AN/AUS'). But I guess this is not an issue of the label - more an issue with the generic mapping.

Similar 'Givalabs iButton on/off (only tested these two variants for now) works.

Therefore I assume that there should be a 'common' mapping/way for transition of boolean values when giving back boolean values to pimatic.

Other way round (switching in pimatic -> updates value in ioBroker correctly) and directly changing in the object list in ioBroker Admin is working normally

from iobroker.pimatic.

GermanBluefox avatar GermanBluefox commented on July 2, 2024

Please check new version: https://github.com/ioBroker/ioBroker.pimatic/blob/master/main.js#L58

from iobroker.pimatic.

fennsen64 avatar fennsen64 commented on July 2, 2024

Great.
After update to 1.3 it also works with the jqui Radiobutton.
Thanks!!

from iobroker.pimatic.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.