thanks for the tutorial.
I’m almost getting there.
I get “[sudo] password for openhabian” when i try to run the scripts.
I’m new to openhab and tried the standard password “passwd”, no success
also tried password “openhabian” but then i get output “(standard_in) 1: illegal character: ^M”
That is the default…
You could also try pi:raspberry . Is is possibly a keyboard/language setting? Ive come across a few posts on the forum about different language keyboards running into this problem (QUERTY vs. QUERTZ?). If you have just done fresh install it wouldnt be too much to stsrt over with a new .img and try again. Good luck!
keyboard problems are only present if you are physically working on the RPi. I’d strongly suggest to work from a PC via SSH. This way you do also not encounter the keyboard problem.
illegal character: ^M" is one of the classics of Linux problems when you are working with different operation systems. See here for what to do: https://stackoverflow.com/a/2658955
@Bagunda the temp value output of the script is a string. I am not aware of a way around this with the original script, but I’m sure it’s possible.
There are several examples on the forum of how to convert/cast/parse the String to a Number/Decimal, such as:
I have followed my own tutorial a few times (fresh installs) and receive a working setup each time. If you find a more efficient way of implementing this using Number items please reply with your code and I’d be happy to update the tutorial.
hello, i know that this is a fairly old post now, but i’m having difficulty with this script. i can the the UI happening but cannot work out how to get it to read the temp sensors. any help on this would be most appreciated.
Great tutorial, thanks. Has anyone successfully connected an AM2301 censor through 1-wire? I’ve gone through the steps and I see the /sys/bus/w1 directory but it only contains w1_bus_master subdirectory and nothing with sensor ID’s. Anyone know where to look?
P.S. Adafruit DHT reads the temperature and humidity fine.
AM2301 sensors are not Dallas OneWire sensors, they use their own protocol. I am building up the selection of modules for MQTTany and plan to include one to provide access to DHT/AM23 sensors over MQTT as well as Dallas OneWire sensors.
Hi, yes I also understand that something is wrong in those lines… that’s why I would like examples of working config files because it’s not clear when to use ’ signs and when not… if you make it more dummy proof more people will use your code…
I’m working on it, but currently the program is about 4 months old and I have 2 users that I know of, only one of which is using the OneWire module. I don’t have a lot of feedback to go on.
Please open an issue on github as this forum is for openhab support only. Post your config file, or at least the OneWire section and we can sort out your problem and discuss improvements to the documentation further.
Hi,
could you please provide an example file (mqttany.xml) for providing onewire DS18B20-signals to bus?
I think, your mqttany would be THE perfect tool for GPIO I/O - but your abstract documentation is unfortunately not “dummy proof”…
Please: just provide some (working) lines of code, how to output any ‘28-…’.
Thanks in advance!
…because - for me - Tasmota is much more reliable and I am going to de-centralize some important smart actions (point–to–point from gpio via mqttany via broker to tasmota).
Nevertheless I want to read these values in openhab too.
So the best way for me is: not installing thousands of bindings for each “thing”, but installing (and understanding!) bindings only essential openhab-bindings.
I have CAT5 Cables in my whole house. 3 loops in each floor. The length of each floor is about 20m.
Is that a problem for the raspberrypi ? should I take the 3,3V from external ?
or is for that kind of project the raspberry pi not possible?
Thanks,
Klaus