Fix hoog/laag tarief indicatie
This commit is contained in:
@@ -67,8 +67,8 @@ class InSyncState < StatePattern::State
|
|||||||
if line.match(/1-0:2.7.0/) # Actueel terug
|
if line.match(/1-0:2.7.0/) # Actueel terug
|
||||||
reading.current_kw_produced = line.split(/1-0:2.7.0\(|\*kW\)/).join.to_f
|
reading.current_kw_produced = line.split(/1-0:2.7.0\(|\*kW\)/).join.to_f
|
||||||
end
|
end
|
||||||
if line.match(/0-0:96.3.10/) # Hoog/laag tarief
|
if line.match(/0-0:96.14.0/) # Hoog/laag tarief
|
||||||
reading.high_tarif = line.split(/0-0:96.3.10\(|\)/).join.eql?("1")
|
reading.high_tarif = line.split(/0-0:96.14.0\(|\)/).join.eql?("0002")
|
||||||
end
|
end
|
||||||
if next_is_gas && line.match(/\(/)
|
if next_is_gas && line.match(/\(/)
|
||||||
next_is_gas = false
|
next_is_gas = false
|
||||||
|
|||||||
Reference in New Issue
Block a user