jcgoette / hi_mama_homeassistant Goto Github PK
View Code? Open in Web Editor NEWThis custom integration provides sensors for HiMama data points.
License: MIT License
This custom integration provides sensors for HiMama data points.
License: MIT License
I would like to use the integration you have created but I can't figure out the child ID
I tried 0 and 1 with no luck. If it's a UUID or something I'm not sure where to find it. Any advise would be great.
Thanks
needs refactor
for h2 in response_h2:
h2_text = h2.get_text(strip=True)
h2_next_siblings = h2.next_sibling.contents
# TODO: needs refactor
if "Preview" in h2_text:
child_dict["At Daycare"] = True
if "Preview" not in h2_text:
if "Report" in h2_text:
if i == 0:
2867e48f45ab941cf9dfad7657430cb2979048fb
move to binary_sensor
"""Query HiMama for data."""
pymama_data = pymama_query(self._email, self._password, self._child_id)
pymama_latest = pymama_data.get("Latest")
# TODO: move to binary_sensor
pymama_latest["At Daycare"] = pymama_data.get("At Daycare")
return pymama_latest
39d75dacff7498a59505d4f3d87484da43ae9313
when data points (e.g., mood, notes) are not documented frequently, they may fall off dict, and therefore not end up in HA on restart
needs refactor
response = BeautifulSoup(response, "html.parser")
response_h2 = response.find_all("h2")
for i2, h2 in enumerate(response_h2):
h2_text = h2.get_text(strip=True)
h2_next_siblings = h2.next_sibling.contents
# TODO: needs refactor
if i == 0 and i2 == 0:
child_dict["At Daycare"] = True if "Preview" in h2_text else False
if "Preview" not in h2_text:
if "Report" in h2_text:
if i == 0:
ccf7eb59152b4f6bb47c201dc0208a993268637b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.