Hop til indhold
IHC-User.dk

Pauli Anttila

Members
  • Antal indlæg

    52
  • Medlem siden

  • Senest besøgt

  • Days Won

    1

Pauli Anttila last won the day on May 29

Pauli Anttila had the most liked content!

Om Pauli Anttila

  • Rang
    Member

Seneste besøgende på profilen

Blokken med seneste besøgende er deaktiveret, og bliver ikke vist til andre

  1. Pauli Anttila

    openHAB2 IHC binding

    @EjvindHald, it works like you have configured it to work . When ever Number item receive a command (1, 2, 3, 4), binding send 1000ms "pulse" to 11390475 resource. When pulseWidth parameter is defined, binding send ON command, wait 1000ms and send OFF command. ON and OFF commands are converted automatically to IHC resource value type. Normally, pulse is used with boolean resource (IHC binary input), but in your case IHC resource value is numeric, therefore binding converts ON command to value 100 and OFF command to value 0. So ultimately binding send value 100 (ON), sleep 1000ms and then send value 0 (OFF). I can't remember why I have selected value 100 when ON command is converted to numeric resource value as conversion functions are taken from OH1 binding. Most probably the reason was that Dimmer item types, value 100 present the full brightness. I guess you want to send a item value rather than generate a pulse, so you shouldn't define pulseWidth in this case. Type number-channel : ihc2number "IHC vent" [resourceId=11390475, direction="WriteOnly"] //vent Then binding send item value (1, 2, 3, 4) to IHC resource, which then match you OH1 configuration ihc="<0xadd90b,>[*:0xadce0b]"
  2. Pauli Anttila

    openHAB2 IHC binding

    If you want that number channel react to all commands, you ignore the whole commandToReact parameter. If you want that channel just react to number 5 then defined so. So commandToReact is exactly the command which you send to items. If pulseWidth is defined, then binding don't send the item value but generate the pulse.
  3. Pauli Anttila

    openHAB2 IHC binding

    Just updated the link to latest binding version. I have made many breaking changes to the binding. I removed pulse output channel as now every channel can send pulse if pulseWidth parameter is defined. Every channel also have now commandToReact parameter which can be used to filter commands. So following should be now possible Type switch-channel : ihcoutput "IHC output" [ resourceId=1736539, direction="ReadOnly" ] Type switch-channel : ihcinput1 "IHC input 1" [ resourceId=2448474, direction="WriteOnly", pulseWidth=1000, commandToReact="ON" ] Type switch-channel : ihcinput2 "IHC input 2" [ resourceId=2448218, direction="WriteOnly", pulseWidth=1000, commandToReact="OFF" ] I have not test new version very well, so there could be bugs.
  4. Pauli Anttila

    openHAB2 IHC binding

    Yes, this is how it works as trigger parameter is not yet implemented
  5. Pauli Anttila

    openHAB2 IHC binding

    Well, my idea was to introduce trigger parameter to pulse output channel, where you can choose when pulse is send (ON->OFF, OFF->ON, Both) Then following should work. Type switch-channel : ihcoutput "IHC output" [ resourceId=1736539, direction="ReadOnly" ] Type pulse-output-channel : ihcinput1 "IHC input 1" [ resourceId=2448474, direction="WriteOnly", pulseLength=1000, trigger="ON" ] Type pulse-output-channel : ihcinput2 "IHC input 2" [ resourceId=2448218, direction="WriteOnly", pulseLength=1000, trigger="OFF" ]
  6. Pauli Anttila

    openHAB2 IHC binding

    OK, reason why it doesn't work is that currently pulse output channel only send pulse when state changes from off to on. So if I extended the pulse output channel so that pulse can be configured to send also when state changes from on to off, it most probably work fine then. OpenHAB support multi channel linking and it doesn't have any black magic behind. When item receive a command, openHAB send command to every channel linked to the item. When channels are updated, item state is updated as well. IHC binding channels support direction configuration parameter, so if ReadOnly is enabled, IHC binding doesn't send any commands from item to configured IHC resource. If IHC binding receive update from IHC controller, channel is updated. If WriteOnly is enabled, binding just send commands to IHC controller, but doesn't update the channel state when update is received from IHC controller. So direction works exactly like < and > operators in version 1 binding.
  7. Pauli Anttila

    openHAB2 IHC binding

    @EjvindHald, I think following should work fine? Channels: Type switch-channel : ihcoutput "IHC output" [ resourceId=2845531, direction="ReadOnly" ] //output Type pulse-output-channel : ihcinput "IHC input" [ resourceId=1417818, direction="WriteOnly", pulseLength=1000 ] //input Items: Switch IHC2Spisebord "Spisebord" { channel="ihc:controller:haldIHC:ihcoutput", channel="ihc:controller:haldIHC:ihcinput" }
  8. Pauli Anttila

    openHAB2 IHC binding

    @EjvindHald, could you post your test items and rules?
  9. Pauli Anttila

    openHAB2 IHC binding

    @EjvindHald, Currently only one resource Id per channel is supported. It could be challenging to model this in openHAB2. What is the real use case behind this and do you (or anyone else) have many items which use this kind configuration. This functionality can always be imitated by several channels, virtual items and rules.
  10. Pauli Anttila

    openHAB2 IHC binding

    I have made lot of improvements the binding and now all features which I planned to implement is implemented. I updated the first post, where is a link to latest jar file and also link to the documentation (draft). I have made some breaking modifications to the binding, so you might need to remove existing thing and add it again. I really appreciate all help in documentation side (more detailed descriptions and examples, etc) as I don't need any documentation myself, so it's purely for your purposes
  11. Pauli Anttila

    openHAB2 IHC binding

    Thanks Mikkel
  12. Pauli Anttila

    openHAB2 IHC binding

    Does anyone have idea what is the scale (min, max, etc) of the battery level and signal strength for wireless devices?
  13. Pauli Anttila

    openHAB2 IHC binding

    Items can't be created as a thing. Which screenshot you are referring? I have created channels which can be then linked to the items. Every channel also have a data type, e.g. Switch, which can be then linked to Switch item.
  14. Pauli Anttila

    openHAB2 IHC binding

    You can see full channel links e.g. from Paper UI. In my example (test-switch), item definition is Switch testSwitch { channel="ihc:controller:elko:test-switch" }
  15. Pauli Anttila

    openHAB2 IHC binding

    You can add channels manually from Paper UI Add e.g. switch channel Which will then look like following Or you can manage things and channels via things file (e.g. ihc.things) ihc:controller:elko [ ip="192.168.1.2", username="openhab", password="openhab", timeout=5000, loadProjectFile=true, createChannelsAutomatically=false ] { Channels: Type switch-channel : my_test_switch "My Test Switch" [ resourceId=3988827 ] Type contact-channel : my_test_contact "My Test Contact" [ resourceId=3988827 ] Type number-channel : my_test_number "My Test Number" [ resourceId=3988827 ] } which will look like following
×

Important Information

Privatlivspolitik og We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.