Skip to content

Commit

Permalink
Merge pull request snaptec#2832 from okaegi/smart606
Browse files Browse the repository at this point in the history
shelly mini gen3...
  • Loading branch information
LKuemmel authored Apr 9, 2024
2 parents 81216c6 + 37eafc6 commit 2a0161c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/modules/smarthome/shelly/watt.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def totalPowerFromShellyJson(answer: Any, workchan: int) -> int:
aktpower = int(answer['em:0']['c_act_power'])
else:
aktpower = int(answer['em:0']['total_act_power'])
elif ("SNPM-001PCEU16" in model):
elif ("PM-001PCEU16" in model):
# "SNPM-001PCEU16" (gen 2) und "S3PM-001PCEU16" (gen 3)
aktpower = int(answer['pm1:0']['apower'])
else:
aktpower = int(answer[sw]['apower'])
Expand Down

0 comments on commit 2a0161c

Please sign in to comment.