I am trying to integrate my watermeter in HA (virtualenv on Pi3). I have a Itron pulsesensor Cyble. This is connected with an S0 Pulse Counter module (http://www.smartmeterdashboard.nl/webshop). Now i am looking to get the right sensor data in HA.
When i do a cat /dev/ttyACM0, i do see a output like:
ID:24705:I:10:M1:0:0:M2:0:0:M3:0:0:M4:0:0:M5:0:0
So the sensor works.
In configuration.yaml i tried:
platform: serial
serial_port: /dev/ttyACM0
This is creating the sensor, but i cannot get the right formatting.
HI robmarkcole.
Why do i need a python script? isn’t i can directly template it with value_template ?
I am not a python expert, the domoticz script is lua.
would be great if someone could help with it.
Data record (repeated every interval):
For S0PCM-5: ID:a:I:b:M1:c:d:M2:e:f:M3:g:h:M4:i:j:M5:k:l
For S0PCM-2: ID:a:I:b:M1:c:d:M2:e:f
Legenda:
a -> Unique ID of the S0PCM
b -> interval between two telegrams in seconds, this is set in the firmware at 10 seconds.
c/e/g/i/k -> number of pulses in the last interval of register 1/2/3/4/5
d/f/h/j/l/ -> number of pulses since the last start-up of register 1/2/3/4/5
Found out that i can create extra sensors with the value_template command. I only need to split the following string with the template.
ID:24705:I:10:M1:0:0:M2:0:0:M3:0:0:M4:0:0:M5:0:0
The first is the ID of the unit. not needed.
Second I:xx is not needed (is the 10 sec interval)
M1:x:y
M1, M2, M3, M4, M5 are each a sensor.
x= not needed (pulse count from last interval)
y= the value witch is needed for each (M1 - M5)
Would love the create a template for deviding this string in seperate sensors.
Thanks!
Hi Do you know anything about Water Flow sensors, I have a water flow meter setup with MQTT, I would like to expose it to HA to give me daily/monthly litres. The issue I’m having is i have no clue how to expose it to HA. currently it only shows on MQTT Tasomota counter either pulse or timer.
Pitty, because spending 80+40 euro on this possible solution it is a bit high. My coding skills aren’t that great yet, to make a custom component for it. ualex73 (utmachine).
BTW the pulse coding and serial output is stable and correct? Ifso - it could still be an option, because playing with other stuff with a simple sensor, doesn’t seem to be stable (person opinion) ;-(
Yes, without some formatting the pulse data isn’t useful. Ok, when i get to this type of automation (my list is still long enough), i will check if i can make a custom component for it.
Hi @Jorei,
I’m interested to setup the S0 pulse meter within the current version of Home Assistant. I’m running HA on Hassio. How to setup your component? Where do I need to copy files to?
I did a lot of reading and testing to try and get this working, but HASS.io completely hangs during startup when I enable this custom component. The error log is:
2020-03-19 12:31:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-03-19 12:31:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for volkswagencarnet which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-03-19 12:31:59 WARNING (MainThread) [homeassistant.components.discovery] Please remove homekit from your discovery.enable configuration as it is now enabled by default
2020-03-19 12:31:59 WARNING (MainThread) [homeassistant.components.discovery] Please remove apple_tv from your discovery.enable configuration as it is now enabled by default
2020-03-19 12:31:59 WARNING (MainThread) [homeassistant.components.discovery] Please remove denonavr from your discovery.enable configuration as it is now enabled by default
2020-03-19 12:31:59 WARNING (MainThread) [homeassistant.components.discovery] Please remove harmony from your discovery.enable configuration as it is now enabled by default
2020-03-19 12:32:01 ERROR (MainThread) [homeassistant.components.climate] The zwave platform for the climate integration does not support platform setup. Please remove it from your config.
2020-03-19 12:32:01 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for s0pcm which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
I did go through the code, but did not find anything out of the ordinary
The original author does not respond (yet)
Is anyone of you using this component with succes?
My initial goal was to add the s0pcm sensor as feature to home-assitant. However, unfortunately could not find the time for this. Instead created a separate repository for the custom (sensor) component with file structure for adding it as custom component to home-assistant, see:
Remark: do not forget to add the following to configuration.yaml
Hi Jorie, Thanks for uploading your custom_component to Github! I’m going to try this later this week.
Do you also use the S0 Pulse Counter Module with 5 inputs from SmartMeterDashboard.nl?