[SOLVED] Raspberry pi running Openhabian shutdown

Thanks

I have said a before i would love to help people around here, i just don’t know as much as some of the main members who i rely on myself tbh

but that’s how this community should be and already is, its one of the reasons i love Openhab its got a great community unlike alot of other open source softwares

but i’m learning and do offer help on the more simple stuff

@vzorglub
could the original poster have a setting too auto power back on?

as you know i don’t know much about linux yet but windows does have these sort of features so maby the same thing

[EDIT]

I missed the post where it got solved and the windows stuff i was thinking of was restore after power loss and its not lost power just reboot so prob not DM

No, He hab a dev board connected to the pi and it was probably connecting GPIO3 to GND witch causes the pi to boot up.

Coolio, please mark the thread as solved:
hc_292

i haven’t dared learn anything about this yet its on my todo list i know its sensors and inputs ect but thats the scope of that

if i try to learn how too build sensors i will need to know :slight_smile:

As I said before, one step at a time…

1 Like

how hard would it be too add a temp sensor too my pi running oh?

its in a closed cupboard with other computer equipment it gets hot in there especially in this heatwave

would be nice too add a sensor too moniiter internal temps and report to OH for rules ect

maby i could start a learning there :wink:

Google raspberry pi dht22

1 Like

Take a look at this post about using GPIO on raspberry pi.

There is also another guide to using the Pi for Temp and Humidity, if needed let me know.

1 Like

I always feel honoured if someone links to a tutorial of mine :slight_smile:
Anyway, maybe if @Sharpy is also interested in the actual core temp of the raspi processor itself, that is also easy to get in Python like this

cfile='/sys/class/thermal/thermal_zone0/temp'

def read_ctemp_raw():
  c=open(cfile,'r')
  lines=float(c.read())/1000.0
  c.close()
  return lines

While True:
  C =str(read_ctemp_raw())
2 Likes

Thanks everyone for the replys and links i will have a read of them and make a post of my own

@Kees_van_Gelder

i do have a temp reading from the pi it says cpu temp im using the system info binding too get this info

2 Likes

ah yes that will work too. I was under impression though the system info binding only looks at raspi where openhab is installed, but I could be wrong

@Kees_van_Gelder

yes you are right

What I wanted too do was add an external temp sensor too my rpi running OH as im new too all of the sensor Linux rpi stuff I wasent sure if you can add sensors too the system running OH

I don’t want too buy an rpi just for a temp reading

but if I did have a seperate board what is the limit on the amount of temp sensors you could add
I could add my nas, server, the room internal and external temp readings would be nice could also add some more for hdds ect

I was thinking device like rpi with alot of temp sensors attached with quite long wires so they could be placed around the equipment

1 Like

You can do that with an ESP8266 or and arduino and temp sensors in parallel on the i2c bus

So you could add say 10+

I’m still not ready for this yet but Im adding it too my list of things too learn as I’m extremely interested I’m following your advice and trying to not bite off more than I can chew

I’m going too read up more on adding a single temp sensor too my rpi for a general room reading and go from there

1 Like

my fault, somehow I presumed it was a remote RPi.probably coz I had just been working on one :slight_smile:

I think Vincent already answered your other question, albeit that e.g. the popular DS18B20 doesn’t need the I2C bus, but just one pin. Many DS18B20’s (10+) can be attached to that one specific pin, using the OneWire protocol.
that works on ESP8266, Arduino and Raspi

Check this out, https://github.com/rkoshak/sensorReporter

I have used both DS18B20 and AM2302 on my pi, that is also running my openhab. I’ve since moved the sensors to other devices but I think I still have a copy of my set up if you’re interested.

Should I also stop services like INFLUXDB and MQTT after stopping the openhab service and before running sudo power off

No you don’t need to

1 Like

Nice one m8