openScale

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
User avatar
Varazir
Posts: 482
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

openScale

Post by Varazir »

Hello,

Have anyone used openScale ?

It looks like this in the MQTT but nothing comes up in Domoticz.

Image and

Image
Raspberry PI 4 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: openScale

Post by waltervl »

Please post the complete config payload as text. There is a copy icon next to "Value" to copy it in MQTT Explorer
And I am not sure Domoticz supports device configs (with in it multiple components)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Varazir
Posts: 482
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: openScale

Post by Varazir »

Not sure if it's going to be valid anymore as the app stoped working with the scale.
Spoiler: show

Code: Select all

{
	"device": {
		"name": "openScale",
		"manufacturer": "olie.xdev",
		"identifiers": "openscale"
	},
	"origin": {
		"name": "openScale sync",
		"sw_version": "0.4.4-oss",
		"support_url": "https://github.com/oliexdev/openScale-sync"
	},
	"components": {
		"openscale_weight": {
			"name": "Weight",
			"platform": "sensor",
			"device_class": "weight",
			"unit_of_measurement": "kg",
			"value_template": "{{ value_json.weight | default(none) }}",
			"unique_id": "openscale_weight"
		},
		"openscale_fat": {
			"name": "Body fat",
			"platform": "sensor",
			"unit_of_measurement": "%",
			"value_template": "{{ value_json.fat | default(none) }}",
			"unique_id": "openscale_fat"
		},
		"openscale_muscle": {
			"name": "Muscle",
			"platform": "sensor",
			"unit_of_measurement": "%",
			"value_template": "{{ value_json.muscle | default(none) }}",
			"unique_id": "openscale_muscle"
		},
		"openscale_water": {
			"name": "Total body water",
			"platform": "sensor",
			"device_class": "moisture",
			"unit_of_measurement": "%",
			"value_template": "{{ value_json.water | default(none) }}",
			"unique_id": "openscale_water"
		},
		"openscale_measurement_date": {
			"name": "Measurement date",
			"platform": "sensor",
			"entity_category": "diagnostic",
			"device_class": "timestamp",
			"value_template": "{{ value_json.date | default(none) }}",
			"unique_id": "openscale_date"
		},
		"openscale_measurement_id": {
			"name": "Measurement id",
			"platform": "sensor",
			"entity_category": "diagnostic",
			"value_template": "{{ value_json.id | default(none) }}",
			"unique_id": "openscale_id"
		}
	},
	"state_topic": "openScaleSync/measurements/last"
}
Spoiler: show

Code: Select all

{
	"date": "2026-01-07T10:58+0100",
	"fat": 0.0,
	"id": 1,
	"muscle": 0.0,
	"water": 0.0,
	"weight": 95.0
}
Raspberry PI 4 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
Varazir
Posts: 482
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: openScale

Post by Varazir »

Maybe better buying a new scale. I would one that the RPi can read direct and translate to MQTT or custom use plugin.
Don't like to have an app that need to be running on my phone.
Raspberry PI 4 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: openScale

Post by waltervl »

It looks like Domoticz does not support these kind of Config topics.
You could try to create a config topic manually with MQTT explorer for the scale.
The MQTT part is in the App or does the scale sends data to MQTT?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Varazir
Posts: 482
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: openScale

Post by Varazir »

waltervl wrote: Wednesday 07 January 2026 11:59 It looks like Domoticz does not support these kind of Config topics.
You could try to create a config topic manually with MQTT explorer for the scale.
The MQTT part is in the App or does the scale sends data to MQTT?
You mean MQTT mapper ? I guess I could do that.

It's https://play.google.com/store/apps/deta ... e.sync.oss app that syncs data from the main app.
I just read on the github for the app that there are a issue with just my scale. https://github.com/oliexdev/openScale/issues/1246
Raspberry PI 4 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: openScale

Post by waltervl »

Varazir wrote: Wednesday 07 January 2026 13:15
waltervl wrote: Wednesday 07 January 2026 11:59 It looks like Domoticz does not support these kind of Config topics.
You could try to create a config topic manually with MQTT explorer for the scale.
The MQTT part is in the App or does the scale sends data to MQTT?
You mean MQTT mapper ? I guess I could do that.
With MQTTMapper is also an option, but when you send With MQTT Explorer just a different (retained) MQTT config topic message that is compliant with Domoticz it will create the device(s). https://www.home-assistant.io/integrati ... -discovery
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Varazir
Posts: 482
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: openScale

Post by Varazir »

waltervl wrote: Wednesday 07 January 2026 13:27
Varazir wrote: Wednesday 07 January 2026 13:15
waltervl wrote: Wednesday 07 January 2026 11:59 It looks like Domoticz does not support these kind of Config topics.
You could try to create a config topic manually with MQTT explorer for the scale.
The MQTT part is in the App or does the scale sends data to MQTT?
You mean MQTT mapper ? I guess I could do that.
With MQTTMapper is also an option, but when you send With MQTT Explorer just a different (retained) MQTT config topic message that is compliant with Domoticz it will create the device(s). https://www.home-assistant.io/integrati ... -discovery
Never done that with MQTT Explorer
So as long as the device it create it will be able to read the values each time they are updated ?
Raspberry PI 4 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: openScale

Post by waltervl »

Yes and when you send it as a retained MQTT message it will also be available when Domoticz restarts. You also have to delete the retained message from the MQTT server when you want to remove the device from Domoticz, else it will re-appear.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Varazir
Posts: 482
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: openScale

Post by Varazir »

waltervl wrote: Wednesday 07 January 2026 18:59 Yes and when you send it as a retained MQTT message it will also be available when Domoticz restarts. You also have to delete the retained message from the MQTT server when you want to remove the device from Domoticz, else it will re-appear.
Do you have an example?
Don't understand what to do
Raspberry PI 4 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: openScale

Post by waltervl »

Sorry, the examples are in the home assitent llink I mentioned before. I do not use MQTT and even MQTT AD.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
FlyingDomotic
Posts: 463
Joined: Saturday 27 February 2016 0:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: openScale

Post by FlyingDomotic »

If you wish to do that with MqttMapper, where's an example reading weight:

Code: Select all

{
    "Scale weight": {
        "topic": "openScaleSync/measurements/last",
        "type": 93, "subtype": 1,
        "mapping": {"item": "weight"}
    }
}
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest