matt-sullivan / raspipool-mqtt-io-config

mqtt_io config for pool acid pump and sensors
0 stars 1 forks source link

Hi Matt, #1

Open cperricos opened 1 year ago

cperricos commented 1 year ago

I have raspipool configures and would like to access the sensors and pumps via MQTT so that i can run raspipool on the main HA instance in the house. Will your code work for this? And is there any documentation i could read?

Many thanks Cos

matt-sullivan commented 1 year ago

Hi Cos, sorry for the delay I only just noticed your message.

The general concept based on mqtt-io should work, but I'm not sure my code will be much use to you. I do use sensors and pumps on a remote raspberry pi using mqtt to talk to home assistant (on another pi) running scripts based on raspipool code. I'm using custom sensor electronics and wrote a python script to report ph and orp via mqtt: https://github.com/matt-sullivan/raspipool-sensor-board/blob/main/software-python/update_home_assistant_pool_sensors.py.

I wrote that python script before I was aware of mqtt-io. I use mqtt-io for relay outputs and if I was doing it again I'd use it for sensor inputs too.

cperricos commented 1 year ago

Thank you so much Matt - much appreciated.

On Jan 1, 2023 at 12:04 PM, <Matt Sullivan @.***)> wrote:

Hi Cos, sorry for the delay I only just noticed your message.

The general concept based on mqtt-io should work, but I'm not sure my code will be much use to you. I do use sensors and pumps on a remote raspberry pi using mqtt to talk to home assistant (on another pi) running scripts based on raspipool code. I'm using custom sensor electronics and wrote a python script to report ph and orp via mqtt: https://github.com/matt-sullivan/raspipool-sensor-board/blob/main/software-python/update_home_assistant_pool_sensors.py (https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmatt-sullivan%2Fraspipool-sensor-board%2Fblob%2Fmain%2Fsoftware-python%2Fupdate_home_assistant_pool_sensors.py&data=05%7C01%7C%7Cdda2ce5c069f4f8370bb08daebf05fe8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638081714875863282%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rqnugSbmORS8uBvqIF5bhgrIUzN3hGfqRx2VtwyO0Dc%3D&reserved=0).

I wrote that python script before I was aware of mqtt-io. I use mqtt-io for relay outputs and if I was doing it again I'd use it for sensor inputs too.

— Reply to this email directly, view it on GitHub (https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmatt-sullivan%2Fraspipool-mqtt-io-config%2Fissues%2F1%23issuecomment-1368427577&data=05%7C01%7C%7Cdda2ce5c069f4f8370bb08daebf05fe8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638081714875863282%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BtTuF5J13jGCF6Mr7A6dgnkkjo1%2B5pVSmLCruS%2Fqp0M%3D&reserved=0), or unsubscribe (https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGLBCTYWZT2DKORISF5XVBLWQFXF3ANCNFSM6AAAAAARYBWWEM&data=05%7C01%7C%7Cdda2ce5c069f4f8370bb08daebf05fe8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638081714875863282%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=G9ymg4eEnpK19tdIFlPUwFycUdNeFThFPtRLAZkt5Tw%3D&reserved=0). You are receiving this because you authored the thread.Message ID: @.***>