Hi! I would like to integrate my OVMS data in my Home Assistant HassIO. Im conected to my MQTT SErver but i dont know how to declare the sensors of the "topics" os the messages that OVMS publish.
I´m trying to run but its not working. I dnkt know what im doing wrong.
Step 1: copy this code to my configuration.yaml
step 2: change the "x" to my ID vehicle
Step 3: Save configuration.yaml and reboot my HA.
Step 4: founded errors in my Config validating
oskillarribera, that was from my sensors.yaml file. If you're putting it into your configuration.yaml, you have to have a sensors section that this code belongs under.
I answer myself. to make it work I have to add one more line of code. (qos
In such a way that it looks like this
I answer myself. to make it work I have to add one more line of code.
In such a way that it looks like this
- platform: mqtt
name: Odómetro
state_topic: "ovms/ovms/x/metric/v/p/odometer"
unit_of_measurement: "Km."
qos: 1
This is what I am using, directly from my sensors.yaml, minus the replacement of my vehicle ID with 'x' below.
This tells me the state of charge as reported by OVMS
### Smart battery state of charge
- platform: mqtt
name: SOC
state_topic: "ovms/soc"
unit_of_measurement: "%"
This tells me if the OVMS sees the current state of the vehicle as "charging"
### OVMS is it charging?
- platform: mqtt
name: Charging
state_topic: "ovms/OVMS/x/metric/v/c/charging"
Where x after OVMS is your vehicle ID. I have my MQTT server set up on the same machine as my HomeAssistant and it works fine.
I´m trying to run but its not working. I dnkt know what im doing wrong.
Step 1: copy this code to my configuration.yaml
step 2: change the "x" to my ID vehicle
Step 3: Save configuration.yaml and reboot my HA.
Step 4: founded errors in my Config validating
oskillarribera, that was from my sensors.yaml file. If you're putting it into your configuration.yaml, you have to have a sensors section that this code belongs under.
Jake
It would be very nice to have a home assistant plugin, usign the HTTP api.
I run home assistant myself, so would prioritise this. Howerver, the HTTP API needs some extensions made firstly, to make it truly useful for this.