Busch-Jaeger Free@Home

Thanks, after a reboot autodiscovery works again. Point 2 successfully tested.

Hi,
doesn’t you have an answer to the question about the thing file?
does your binding only works with autodiscovery?
Many thanks for the whole work.
Regards

It is possible to create things manually from Paper UI, so do not see why it shouldn’t work with things file.

However, I do not know how to set up correctly, I use autodiscovery from Paper UI.

I’ve got my system configured only with .things/.items files. Here is how I use it:

freeathome.things:

Bridge freeathome:bridge:sysap "SysApName" @ "Room" [ host="1.2.3.4", ipAddress="1.2.3.4", port="5280", login="login", password="password", log_dir="/tmp/", log_enabled=false, dummy_things_enabled=false ] {
        Thing switch switchThing "Lightswitch" @ "Room" [ deviceId="ABB123456789", channelId="ch0000", dataPointId="idp0000", dataPointIdUpdate="odp0000" ]
        Thing dimmer dimmerThing "Dimmer" @ "Room" [ deviceId="ABB123456789", channelId="ch0000", dataPointIdSwitch="idp0000", dataPointIdFade="idp0001", dataPointIdValue="idp0002", dataPointIdSwitchUpdate="odp0000", dataPointIdValueUpdate="odp0001" ]
        Thing raffstore raffstoreThing "Raffstore" @ "Room" [ DeviceId="ABB123456789", ChannelId="ch0000", InputIdComplete="idp0000", InputIdPercentage="idp0002", InputIdStepwise="idp0001", OutputIdPercentage="odp0001" ]
        Thing thermostat thermostatThing "Thermostat" @ "Room" [ deviceId="ABB123456789", channelId="ch0000", dataPointIdSwitch="idp0012", dataPointIdSwitchUpdate="odp0008", dataPointIdTarget="idp0016", dataPointIdTargetUpdate="odp0006", dataPointIdEcoUpdate="odp0009", dataPointIdEco="idp0011", dataPointIdRoomUpdate="odp0010" ]
        Thing weather weatherstationThing "Weatherstation" @ "Room" [ deviceId="ABB123456789", channelIdRain="ch0000", dataPointIdIllumination="odp0001", channelIdTemp="ch0002", dataPointIdWind="odp0003", dataPointIdTemp="odp0001", dataPointIdRain="odp0000", channelIdWind="ch0003", channelIdIllumination="ch0000" ]
}

freeathome.items:

Switch lightswitch "Light" { channel="freeathome:switch:sysap:switchThing:fh_switch_channel" }
Switch dimmerSwitch "Dimmer Switch"  { channel="freeathome:dimmer:sysap:dimmerThing:dimmer_switch" }
Dimmer dimmerDimmer "Dimmer" { channel="freeathome:dimmer:sysap:dimmerThing:dimmer_value" }

Rollershutter rollershutter "Rollershutter" { channel="freeathome:raffstore:sysap:raffstoreThing:complete" }
Rollershutter rollershutterStep "Rollershutter Steps" { channel="freeathome:raffstore:sysap:raffstoreThing:stepwise" }
Dimmer rollershutterPercent "Rollershutter Percent" { channel="freeathome:raffstore:sysap:raffstoreThing:percentage" }

Number weatherstationTemperature "Weatherstation Temperature" { channel="freeathome:weather:sysap:weatherstationThing:weather_temperature" }
Number weatherstationWind "Weatherstation Wind" { channel="freeathome:weather:sysap:weatherstationThing:weather_wind" }
Number weatherstationSun "Weatherstation Sun" { channel="freeathome:weather:sysap:weatherstationThing:weather_illumination" }
Switch weatherstationRain "Weatherstation Rain" { channel="freeathome:weather:sysap:weatherstationThing:weather_rain" }

Number thermostatTemperature "Thermostat Temperature" { channel="freeathome:thermostat:sysap:thermostatThing:therm_room_temp" }
Number thermostatSetTemperature "Thermostat Set Temperature" { channel="freeathome:thermostat:sysap:thermostatThing:therm_target_temp" }
Switch thermostatHeat "Thermostat Heating" { channel="freeathome:thermostat:sysap:thermostatThing:therm_switch" }
Switch thermostatEco "Thermostat Eco Mode" { channel="freeathome:thermostat:sysap:thermostatThing:therm_eco_switch" }

Hope that helps,
Stefan

Dear Stian, thank you very much for your great work. I have two questions:

  1. Would it be possible to change the logging behaviour of this binding. Right now messages from IN (tinyxmppd1058738): <message … are logged to syslog. Which bombs the log :slight_smile: I checked the source and known configs, but did not find any hint where to change this.

  2. Right now I am using this binding to optimize my heating. I know from the sysAp export object functionality, that the “Thermostat” provides some more outputs, suchs as “odp013” provides the relative actuation of the heating actor. It would be super nice, if I could get this info :slight_smile: in OH

Best,
Steffen

To take the last point first: Just created a new version to implement heating state / actuator state. Please feel free to test and report any errors/misbehaviour.

  • odp0011: Retrieve heating state (set up as on/off switch, read only)
  • odp0013: Retrieve heating actuator state (set up as a dimmer (0-100), read only)

F@H 2.5.5-SNAPSHOT

Regarding logging, I am a bit uncertain as you are referring to syslog/console log, and here you will see the complete XMPP stream from your SysAp. And XMPP is mainly handled by an external library. Assume you are running OH from a PC or Mac? This information is not logged in regular OH logs.

Perfect, I will just try it. Regarding the logging.
I have things installed on a raspi:
via ssh tail -f /var/log/syslog shows me lots of the following lines.:
Apr 27 19:40:12 raspberrypi karaf[13069]: IN (tinyxmppd1075749): <message id=“stz1079163” from="mrha@busch-jaeger.de"…

You are correct these lines look like the complete XMPP stream. Events.log or openhab.log are free from this. The quesion is, why is the XMPP stream logged to syslog?

Best and thx for your fast response!
Steffen


Last plot in list shows the new heating actor status. Nice!

Thanks.

But for me it is not working.

May you be able to show me/us the sitemap for this items?

Hi FlyingEaglE!

What exactly is not working? Which error messages are you getting (e.g. log entries)? What do you see in PaperUI in the things and items sections?

Cheers,
Stefan

There are no log-entries with errors or someting like that.
I think i am making something wrong … maybe in sitemap.

What does your openhab.log say after “Refreshing model ‘freeathome.things’” or after “Refreshing model ‘freeathome.items’”?

What things have you configured? What items have you configured?

The sitemap itself is nothing fancy and works like any other item:

myhome.sitemap:

sitemap myhome label="Home" {
    Switch item=lightswitch
    Switch item=rollershutter
    Text item=weatherstationTemperature
    Text item=weatherstationRain label="Rain [%d]"
}

What are this three types for ?

Rollershutter rollershutter "Rollershutter" { channel="freeathome:raffstore:sysap:raffstoreThing:complete" }
Rollershutter rollershutterStep "Rollershutter Steps" { channel="freeathome:raffstore:sysap:raffstoreThing:stepwise" }
Dimmer rollershutterPercent "Rollershutter Percent" { channel="freeathome:raffstore:sysap:raffstoreThing:percentage" }

You didn’t used all o them only rollershutter …

(Until now I have only 4 of the rollershutter modules)

I compared your things with my things and I recognized that I missed IpAddress … now it is working … thanks a lot.

Hello,
I am new to Openhab. It is runing on my Ubuntu 14 VM. I run Openhab 2.5 and the binding F@H 2.5.5-SNAPSHOT.
I succeeded adding a switch and a dimmer in my BasicUI.
I also have a 8/8 Sensor/Switch actor(6251/8.8). I can find the 8 swiches in the Inbox (ch0010-ch000F).

But not the 8 binary sensors.
I have my window sensors (open/close) connected to the binary channels and I would like to use them in Openhab.
I tried to add them manually but without success.
The actor appears with B007 in inbox.
The binary sensors seem to be ch0000-ch0007.

Can someone help me to get the binary sensors work?

Have you had a look at Post 291 to try to create the binary sensor manually from Paper UI?

Sorry,
the deciveID is B008 not B007.

This ist one of the 8 switches found in the inbox. They are working.

But this is not working.

How can I identify idp/odp values. Is this only possible by ABB development program? I do not have a account.

Ah, ok, then I understand better.

Have you also tried creating (manually) a Wndow sensor for your binary? E.g. ch0000 / odp0000 / odp0001?

If still not working, we would need to find the correct idp/odp for the binary. Could either be found using web developer tools for your browser while logging in to your Sysap. You could see all messages happening on the bus (although encrypted), and you would need to identify the correct device / response. Alternatively, as the best option, would be the ABB developer program / using Postman software.

i just upgraded my system access point from 2.1.7 to 2.5.
so my connection is not working anymore.
what do i have to do, to make it work again?
Could not find a working info.
Thanks a lot,
Andreas

Maybe same here, additionaly I rebooted my system incl. change of IP-Adress of my OH-Inst.

Well, little details/logs to go by…

Which OH version are you running? Have you been using the Paper UI installed version of the binding? If so, you would need to uninstall this version.

Then you could have tried the approach described further above in this thread, which is confirmed to work for SysAp 2.5.0 / OH 2.5.4 Release Build (summarised below):

  • ssh into OpenHab service
  • Stop OpenHab service: sudo systemctl stop openhab2.service
  • Remove old F@H jar file from your openhab2-addons folder (if present)
  • Remove tmp files: sudo rm -rf /var/lib/openhab2/tmp/*
  • Remove cache files: sudo rm -rf /var/lib/openhab2/cache/*
  • Remove backup files: sudo rm -rf /var/lib/openhab2/jsondb/backup/*
  • Remove cache: sudo openhab-cli clean-cache
  • Restart OpenHab service: sudo reboot
  • Recommended to update OH to 2.5.4 (if not already done)
  • Download and add jar file to your openhab2-addons folder: F@H 2.5.5-SNAPSHOT
  • If not able to establish connection, try rebooting OH once again
  • If still having problems to get your things ONLINE, enter openhab/karaf console and run
bundle:restart org.openhab.binding.freeathome