Skip to content

Conversation

@SANSTONE
Copy link
Contributor

…oiler_6

Link to picture pull request: TODO

@Koenkk Koenkk force-pushed the master branch 10 times, most recently from bf7848c to da8e480 Compare October 16, 2025 18:07
meta: {
tuyaDatapoints: [
[1, "switch_1", tuya.valueConverter.onOff],
[21, "cur_current", tuya.valueConverterBasic.scale(0, 30000, 0, 30000)],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the cur_ prefix for all

e.switch(),
e.enum("level", ea.STATE_SET, ["T0", "T30", "T60", "T90", "T120", "TON"]).withDescription("LEVEL"),
e.numeric("countdown", ea.STATE_SET).withValueMin(0).withValueMax(7200).withUnit("s").withDescription("countdown"),
e.numeric("cur_current", ea.STATE).withUnit("mA").withDescription("Current"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use, e.current(), e.voltage(), e.power() here. Make sure to correct the current divisor (tuya.valueConverterBasic.scale(0, 30000, 0, 30000)) accordingly (A is expected not mA)

extend: [tuya.modernExtend.tuyaBase({dp: true, forceTimeUpdates: true})],
exposes: [
e.switch(),
e.enum("level", ea.STATE_SET, ["T0", "T30", "T60", "T90", "T120", "TON"]).withDescription("LEVEL"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not quite clear to me what this does, could you extend the description?

],
meta: {
tuyaDatapoints: [
[1, "switch_1", tuya.valueConverter.onOff],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[1, "switch_1", tuya.valueConverter.onOff],
[1, "state", tuya.valueConverter.onOff],

Otherwise I don't expect it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants